-
Notifications
You must be signed in to change notification settings - Fork 194
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
OCM-9780 | test: automated id:65900 install with use-local-credentials will work #2396
base: master
Are you sure you want to change the base?
Conversation
test LGTM, could you explain to me what the flag does just for my own sake? |
@OAharoni-RedHat I believe it just makes it so that when you install a non-sts cluster it will use your AWS credentials from your machine |
@jerichokeyne maybe i'm going to out myself as clueless here but isn't that what it already does? Since we need to set up an |
I'll be honest I'm not completely sure what the difference is. I think the difference is that both will use your local credentials for installing, but this flag makes the cluster use your credentials instead of the osdCcsAdmin credentials. It's apparently something we don't fully support even though it's something we test for 🤷 |
4b586f8
to
15157ec
Compare
It looks like the step for testing vs an STS cluster is missing. It might make sense to split that into a separate negative test case. Also, does the cluster itself describe that it used local credentials in any way? Or is it only evident in the json structure? |
Ah, looks like I forgot that part. I'll have to do some more research into how to do that since it's an error at install time
As far as I know it's only evident in the json |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2396 +/- ##
=======================================
Coverage 29.37% 29.37%
=======================================
Files 161 161
Lines 22350 22350
=======================================
Hits 6566 6566
Misses 15239 15239
Partials 545 545 ☔ View full report in Codecov by Sentry. |
15157ec
to
7d73f4c
Compare
@jfrazierRH I added that negative test case |
/lgtm |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jerichokeyne, jfrazierRH The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@jerichokeyne: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
@@ -1018,6 +1018,19 @@ var _ = Describe("Classic cluster creation validation", | |||
Expect(errorOutput.String()).To(ContainSubstring("etcd encryption cannot be disabled on clusters with FIPS mode")) | |||
}) | |||
|
|||
It("validate use-local-credentials won't work with sts - [id:65900]", |
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.
You need to make sure your cluster is STS here or ?
@@ -536,6 +536,17 @@ var _ = Describe("Healthy check", | |||
} | |||
|
|||
}) | |||
|
|||
It("with use-local-credentials will work - [id:65900]", labels.Runtime.Day1Post, labels.High, |
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.
If you aim at having 2 test cases in the automation, I would split the original test case, so we have 2 case ids
It("with use-local-credentials will work - [id:65900]", labels.Runtime.Day1Post, labels.High, | ||
func() { | ||
By("Check that the cluster was installed with the right profile") | ||
if !profile.ClusterConfig.UseLocalCredentials { |
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.
You could just check that
Expect(jsonData.DigBool("properties", "use_local_credentials")).To(profile.ClusterConfig.UseLocalCredentials)
No need to skip IMO
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Automated id:65900 which tests that a cluster installed with the
--use-local-credentials
flag will install correctlyoutput: