Skip to content
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

Migrate to Lab Vault Cert for E2E Tests #7085

Merged
merged 37 commits into from
May 11, 2024
Merged

Migrate to Lab Vault Cert for E2E Tests #7085

merged 37 commits into from
May 11, 2024

Conversation

hectormmg
Copy link
Member

@hectormmg hectormmg commented May 8, 2024

This PR:

  • Adds 3p-e2e.yml which defines a OneBranch pipeline to run 3P MSAL JS E2E tests to replace existing GitHub workflows
  • Updates gen_env.sh to use a new PowerShell script called gen_env.ps1 that creates and populates a .env file with E2E Test environment variables (Express session secret, ClientID, TenantID and the absolute path of the client certificate used to authenticate with the Lab App)
  • Updates e2e-test-utils/LabClient to use a CertificateCredential instead of ClientSecretCredential
  • Updates the b2c-user-flows Node sample to use a SESSION_SECRET env variable instead of the AZURE_CLIENT_SECRET

@github-actions github-actions bot added the samples Related to the samples apps for the library. label May 8, 2024
@hectormmg hectormmg changed the title [WIP] Migrate to Lab Vault Cert for E2E Tests Migrate to Lab Vault Cert for E2E Tests May 9, 2024
DEBIAN_FRONTEND: noninteractive
${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/') }}:
sourceBranchName: ${{ replace(variables['Build.SourceBranch'], 'refs/heads/', '') }}
${{ if startsWith(variables['Build.SourceBranch'], 'refs/pull/') }}:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be ${{ if startsWith(variables['System.PullRequest.SourceBranch'], 'refs/pull/') }}: instead?

@hectormmg hectormmg closed this May 10, 2024
@hectormmg hectormmg reopened this May 10, 2024
@hectormmg hectormmg closed this May 10, 2024
@hectormmg hectormmg reopened this May 10, 2024
@hectormmg hectormmg closed this May 10, 2024
@hectormmg hectormmg reopened this May 10, 2024
@hectormmg hectormmg merged commit 63664d9 into dev May 11, 2024
8 checks passed
@hectormmg hectormmg deleted the use-lab-cert branch May 11, 2024 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Related to the samples apps for the library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants