-
Notifications
You must be signed in to change notification settings - Fork 72
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
acc: replace LocalOnly option with Local & Cloud #2387
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default Cloud is switched off except in bundle
What the reason for this?
That just reflects current situation and the kind of tests we have there. |
b1ae401
to
e5eea9b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This is nice.
@@ -0,0 +1,2 @@ | |||
Local = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment here that this is the global configuration for all tests and that tests are only run locally by default and not as integration tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a comment
@@ -1,6 +1,6 @@ | |||
# Since we use existing cluster id value which is not available in cloud envs, we need to stub the request | |||
# and run this test only locally | |||
LocalOnly = true | |||
Cloud = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these layers of override can be difficult to track. Could you add some functionality to see the resolved configuration for a test case or directory as a follow-up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there is an easy way, so you'll have to track those manually. For a given boolean option you only need to know the closest setting though, not the whole chain.
d968bf9
to
8c51b89
Compare
Changes
Instead of LocalOnly with non-composable semantics there are two composable options:
By default Cloud is switched off except in bundle (but not in bundle/variables and bundle/help).
Tests
Using this in #2383 to have test that runs on cloud but not locally.