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

test: skip public bucket system tests running under VPCSC #595

Merged
merged 4 commits into from
Feb 6, 2019

Conversation

jkwlui
Copy link
Member

@jkwlui jkwlui commented Feb 5, 2019

When running under VPCSC, the process will have no egress access to
public buckets. Skipping these system tests when
GOOGLE_CLOUD_TESTS_IN_VPCSC=true environment variable is set.

This is the same variable used in the Python system-test:
https://github.com/googleapis/google-cloud-python/blob/master/storage/tests/system.py#L37

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 5, 2019
@jkwlui jkwlui requested a review from a team February 5, 2019 22:23
@jkwlui jkwlui self-assigned this Feb 5, 2019
Copy link
Contributor

@callmehiphop callmehiphop left a comment

Choose a reason for hiding this comment

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

LGTM - side note I think you can programmatically skip tests in before hooks by calling this.skip() (it will skip the entire parent describe block);

before(function() {
  if (RUNNING_IN_VPCSC) return this.skip();
});

I think this has the added bonus of showing that the tests were intentionally skipped as opposed to them just being absent.

@jkwlui jkwlui added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 5, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 5, 2019
@jkwlui jkwlui merged commit 6d4687d into master Feb 6, 2019
@stephenplusplus stephenplusplus deleted the skip-vpcsc-noncompatible-tests branch February 26, 2019 14:44
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.

4 participants