Skip to content

Conversation

@JesseLovelace
Copy link
Contributor

testDownloadPublicBlobWithoutAuthentication will never pass when running in a restricted VPC, so this gives the option to skip to skip the test by setting the environment variable GOOGLE_CLOUD_TESTS_IN_VPCSC to "true".

This replaces the solution of skipping the test if there's any 403, since that could be a genuine error.

@JesseLovelace JesseLovelace requested a review from frankyn October 16, 2018 22:39
@JesseLovelace JesseLovelace requested a review from a team as a code owner October 16, 2018 22:39
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 16, 2018
Copy link
Contributor

@frankyn frankyn left a comment

Choose a reason for hiding this comment

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

One last nit.

private static final String KMS_KEY_RING_LOCATION = "us";
private static final String KMS_KEY_ONE_NAME = "gcs_kms_key_one";
private static final String KMS_KEY_TWO_NAME = "gcs_kms_key_two";
private static final boolean isVpcTest = System.getenv("GOOGLE_CLOUD_TESTS_IN_VPCSC").equalsIgnoreCase("true");

This comment was marked as spam.

@JesseLovelace JesseLovelace merged commit 7465abd into googleapis:master Oct 17, 2018
@JesseLovelace JesseLovelace mentioned this pull request Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants