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

Fix integration tests on v1 #1069

Merged
merged 1 commit into from May 11, 2022

Conversation

henrymercer
Copy link
Contributor

@henrymercer henrymercer commented May 11, 2022

The GitHub API client coerces fake-server-url to the Dotcom API URL, which means commands like util.getGitHubVersion will call the Dotcom API with the fake-token, resulting in 401s.

We therefore use the Dotcom URL instead and additionally stub util.getGitHubVersion (with the Dotcom URL it's no longer necessary this, but it's good practice).

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

The GitHub API client coerces `fake-server-url` to the Dotcom API URL,
which means commands like `util.getGitHubVersion` will call the Dotcom
API with the `fake-token`, resulting in 401s.

We therefore use the Dotcom URL instead and additionally stub
`util.getGitHubVersion` as a good practice (it's no longer necessary).
@henrymercer henrymercer requested a review from a team as a code owner May 11, 2022 14:54
@henrymercer henrymercer changed the base branch from main to releases/v2 May 11, 2022 14:55
@henrymercer henrymercer merged commit 2f58583 into releases/v2 May 11, 2022
@henrymercer henrymercer deleted the henrymercer/fix-integration-tests-on-v1 branch May 11, 2022 15:48
@github-actions github-actions bot mentioned this pull request May 11, 2022
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants