-
Notifications
You must be signed in to change notification settings - Fork 0
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
tests for opensearch webhook were implemented #691
Conversation
06204ec
to
b67d0f8
Compare
b67d0f8
to
8475d32
Compare
if *old[0] != *new[0] { | ||
return models.ErrImmutableIngestNodes | ||
} |
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.
Do we validate that only 1 or fewer items can be appended to the IngestNodes array while creation?
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.
yes, we have a kubebuilder annotation that sets maxItems
if *old[0] != *new[0] { | ||
return models.ErrImmutableClusterManagedNodes |
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.
Same is here
|
||
ctx := context.Background() | ||
|
||
When("apply a OpenSearch manifest", func() { |
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.
an Opensearch
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.
fixed
prevStringValue := openSearchManifest.Spec.DataCentres[0].ProviderAccountName | ||
testOpenSearchManifest.Spec.DataCentres[0].ProviderAccountName = models.DefaultAccountName | ||
Expect(k8sClient.Create(ctx, &testOpenSearchManifest)).ShouldNot(Succeed()) | ||
testOpenSearchManifest.Spec.DataCentres[0].ProviderAccountName = prevStringValue |
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.
Do we plan to add tests for RIYOA accounts?
RIYOA - run in your own account. It means, that customer will run Instaclustr Products using their own AWS/AZURE/GCP accounts.
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.
this test case is made for ensure that cloudProviderSettings is available only for RIYOA accounts
8475d32
to
d7a6e53
Compare
No description provided.