-
Notifications
You must be signed in to change notification settings - Fork 53
fix(tests): Skip onprem unsupported policy types #510
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
Conversation
}, | ||
} | ||
|
||
if !buildinfo.OnpremSecure { |
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.
Love this method. I was thinking we would have to separate out these steps into new file. Great job
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.
Awesome!
don't you think this can happen in a real life scenario? if order is not important maybe you want to use TypeSet instead of TypeList here |
@dbonf I've pushed 7ea0555 changing to |
e817f78
to
7ea0555
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.
Great job!
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.
❤️
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.
Thank you @jacalvo!
7ea0555
to
839fbe7
Compare
* Do not run cloud policy types tests with `tf_acc_onprem_secure` tag * Change rules order to fix `TestAccCustomPolicy`: ``` resource_sysdig_secure_custom_policy_test.go:19: Step 2/12 error running import: ImportStateVerify attributes not equivalent. Difference is shown below. The - symbol indicates attributes missing after import. map[string]string{ - "rules.0.name": "Write below etc", + "rules.0.name": "TERRAFORM TEST 6yf1pzvnbf - Terminal Shell", - "rules.1.name": "TERRAFORM TEST 6yf1pzvnbf - Terminal Shell", + "rules.1.name": "Write below etc", } ```
Reverts the order change in the test which is no longer needed.
839fbe7
to
2bd6571
Compare
Do not run cloud policy types tests with
tf_acc_onprem_secure
tagUse TypeSet instead of TypeList for rules