GoogleCloudPlatform / java-docs-samples

Java and Kotlin Code samples used on cloud.google.com
https://cloud.google.com/java
Apache License 2.0
1.73k stars 2.82k forks source link

Multiple tests in compute/cloud-client fail with com.google.api.gax.rpc.PermissionDeniedException #9373

Open minherz opened 3 weeks ago

minherz commented 3 weeks ago

Multiple test classes under /compute/cloud-client fail with the error:

Execution com.google.api.gax.rpc.PermissionDeniedException: Operation with name "operation-GUID" failed with status = HttpJsonStatusCode{statusCode=PERMISSION_DENIED} and message = FORBIDDEN

Majority of failures happen in the class setup methods decorated with the @BeforeAll attribute. All these classes are disabled using @Disabled attribute at the class level with the "TODO: fix https://github.com/GoogleCloudPlatform/java-docs-samples/issues/9373" message. The following list of (not full) class names is not complete. Search the folder compute/cloud-client for @Disabled("TODO: string to find all classes.

Examples of the error logs can be found here: test log1, test log2. These logs do not capture errors in all classes.