Skip to content

reorganized mfa totp integration tests #7352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

AngelAngelXie
Copy link
Contributor

@AngelAngelXie AngelAngelXie commented Jun 6, 2023

Reorganized the mfa totp integration tests such that the user that is enrolled for mfa will always be unenrolled at the end of each test.

Ran TOTP MFA integration tests against the backend locally. Intentionally added "expect(2).to.equal(200)" in each test.
Also tried adding the false statement into the beforeEach block that enrolls users before the test.

Used curl command to check the status of the user's MFA enrollment.
Successfully verified that the user is unenrolled from MFA at the end despite different test failures.

@changeset-bot
Copy link

changeset-bot bot commented Jun 6, 2023

⚠️ No Changeset found

Latest commit: d5a79b3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 6, 2023

Size Report 1

Affected Products

  • @firebase/performance

    TypeBase (fe7da7e)Merge (e5169d0)Diff
    browser29.1 kB29.1 kB-1 B (-0.0%)
    esm531.0 kB31.0 kB-1 B (-0.0%)
    main31.5 kB31.4 kB-1 B (-0.0%)
    module29.1 kB29.1 kB-1 B (-0.0%)
  • bundle

    TypeBase (fe7da7e)Merge (e5169d0)Diff
    performance (trace)51.0 kB51.0 kB-1 B (-0.0%)
  • firebase

    TypeBase (fe7da7e)Merge (e5169d0)Diff
    firebase-compat.js773 kB773 kB-1 B (-0.0%)
    firebase-performance-compat.js30.8 kB30.8 kB-1 B (-0.0%)
    firebase-performance-standalone-compat.es2017.js90.1 kB90.1 kB-1 B (-0.0%)
    firebase-performance-standalone-compat.js67.3 kB67.3 kB-1 B (-0.0%)
    firebase-performance.js30.8 kB30.8 kB-1 B (-0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/1MRbrVisEp.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 6, 2023

Size Analysis Report 1

Affected Products

  • @firebase/performance

    • getPerformance

      Size

      TypeBase (fe7da7e)Merge (e5169d0)Diff
      size18.0 kB18.0 kB-1 B (-0.0%)
      size-with-ext-deps50.9 kB50.9 kB-1 B (-0.0%)
    • initializePerformance

      Size

      TypeBase (fe7da7e)Merge (e5169d0)Diff
      size18.2 kB18.2 kB-1 B (-0.0%)
      size-with-ext-deps44.3 kB44.3 kB-1 B (-0.0%)
    • trace

      Size

      TypeBase (fe7da7e)Merge (e5169d0)Diff
      size17.9 kB17.9 kB-1 B (-0.0%)
      size-with-ext-deps43.7 kB43.7 kB-1 B (-0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/kO15b48TbH.html

Copy link

@renkelvin renkelvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great

Copy link
Contributor

@prameshj prameshj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you for doing this!

@AngelAngelXie AngelAngelXie merged commit 713363d into master Jun 9, 2023
@AngelAngelXie AngelAngelXie deleted the Fixing-interdependency-in-mfa-totp-Integration-tests-ax branch June 9, 2023 17:31
AngelAngelXie added a commit that referenced this pull request Jun 12, 2023
@AngelAngelXie AngelAngelXie restored the Fixing-interdependency-in-mfa-totp-Integration-tests-ax branch June 12, 2023 19:07
dwyfrequency pushed a commit that referenced this pull request Jun 16, 2023
* reorganized mfa totp integration tests

* formatted the code

* added await for enroll function calls

* created fakePassword to store password

* fixed typo in mfaUser

* moved fakePassword into integration helpers file
@firebase firebase locked and limited conversation to collaborators Jul 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants