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

LoadP12Credentials test flakes on Windows #14349

Open
dbolduc opened this issue Jun 18, 2024 · 3 comments
Open

LoadP12Credentials test flakes on Windows #14349

dbolduc opened this issue Jun 18, 2024 · 3 comments
Labels
api: storage Issues related to the Cloud Storage API. cpp: flake A test with false positives (failures that are not interesting) type: cleanup An internal cleanup or hygiene concern.

Comments

@dbolduc
Copy link
Member

dbolduc commented Jun 18, 2024

https://github.com/googleapis/google-cloud-cpp/actions/runs/9559232391

[ RUN      ] GoogleCredentialsTest.LoadP12Credentials
D:\a\google-cloud-cpp\google-cloud-cpp\google\cloud\storage\oauth2\google_credentials_test.cc(549): error: Value of: creds
Expected: code is equal to OK and message is anything
  Actual: 40-byte object <90-52 3D-F5 0D-02 00-00 00-CC CC-CC CC-CC CC-CC 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 CC-CC CC-CC CC-CC CC-CC>, whose status is INVALID_ARGUMENT: No private key found in PKCS#12 file (C:\Users\RUNNER~1\AppData\Local\Temp\credentials.p12): Key does not exist.
 (error code 2148073485) error_info={reason=INVALID_ARGUMENT, domain=gcloud-cpp, metadata={gcloud-cpp.source.filename=D:\a\google-cloud-cpp\google-cloud-cpp\google\cloud\internal\win32\parse_service_account_p12_file.cc, gcloud-cpp.version=v2.26.0-rc, gcloud-cpp.source.line=171, gcloud-cpp.source.function=GetKeyFromProvider}}, with a code that isn't equal to OK, but a message that is anything

[  FAILED  ] GoogleCredentialsTest.LoadP12Credentials (206 ms)

The following tests FAILED:
    346 - storage_oauth2_google_credentials_test (Failed)
@dbolduc dbolduc added api: storage Issues related to the Cloud Storage API. type: cleanup An internal cleanup or hygiene concern. cpp: flake A test with false positives (failures that are not interesting) labels Jun 18, 2024
@dbolduc
Copy link
Member Author

dbolduc commented Jul 10, 2024

@coryan
Copy link
Contributor

coryan commented Jul 25, 2024

@teo-tsirpanis
Copy link
Contributor

I've been aware of this issue and will try alternative methods to obtain the private key when I have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. cpp: flake A test with false positives (failures that are not interesting) type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

No branches or pull requests

3 participants