Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

build: Fixing tests that use reqheaders improperly#1589

Merged
aeitzman merged 3 commits intogoogleapis:mainfrom
aeitzman:fix_external_account_tests
Jul 11, 2023
Merged

build: Fixing tests that use reqheaders improperly#1589
aeitzman merged 3 commits intogoogleapis:mainfrom
aeitzman:fix_external_account_tests

Conversation

@aeitzman
Copy link
Copy Markdown
Contributor

Fixing tests that are using reqheaders for nock improperly. Quite a few of our tests, especially for externalaccount clients, use reqheaders on the nock interceptors instead of the scope. Nock does not actually check for the request headers if passed to an interceptor, so this changes all of those uses. Also adds nock.cleanAll() for the test files that do not have it already in aftereach().

@aeitzman aeitzman requested a review from a team as a code owner July 11, 2023 20:40
@aeitzman aeitzman requested a review from a team July 11, 2023 20:40
@product-auto-label product-auto-label bot added the size: xl Pull request size is extra large. label Jul 11, 2023
@aeitzman aeitzman requested a review from danielbankhead July 11, 2023 20:40
@aeitzman aeitzman removed the request for review from danielbankhead July 11, 2023 20:40
@aeitzman aeitzman added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 11, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 11, 2023
@sofisl sofisl changed the title fix: Fixing tests that use reqheaders improperly build: Fixing tests that use reqheaders improperly Jul 11, 2023
@aeitzman aeitzman merged commit 1bf3376 into googleapis:main Jul 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants