-
Notifications
You must be signed in to change notification settings - Fork 123
CSPL-949: Refactor of secret test cases #298
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
CSPL-949: Refactor of secret test cases #298
Conversation
da80a5a
to
4e3ff93
Compare
9c16114
to
d433760
Compare
d433760
to
1f78f8c
Compare
find ./test -name "*junit.xml" -exec cp {} /tmp/test-results \; | ||
environment: | ||
TEST_FOCUS: "smoke|ingest_search|monitoring_console|smartstore|licensemaster|scaling_test|crcrud|secret" | ||
# TEST_FOCUS: "smoke|ingest_search|monitoring_console|smartstore|licensemaster|scaling_test|crcrud|secret" |
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 need the commented out line?
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 is just for reference I will remove it in future.
environment: | ||
TEST_FOCUS: "smoke|ingest_search|monitoring_console|smartstore|licensemaster|scaling_test|crcrud|secret" | ||
# TEST_FOCUS: "smoke|ingest_search|monitoring_console|smartstore|licensemaster|scaling_test|crcrud|secret" | ||
TEST_FOCUS: "integration" |
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.
Are we able to control which tests we can run with this change?
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 are coming up with keyword to define different test and this is a change in that direction. We should be able to run different test based on keyword.
|
||
Context("Standalone deployment (S1)", func() { | ||
It("ingest_search: can search internal logs for standalone instance", func() { | ||
It("ingest_search,integration: can search internal logs for standalone instance", 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.
Nit: ingest_search, integration
an extra space between the ingest_search and integration?
Similarly in other occurrences below.
|
||
Context("Standalone deployment (S1)", func() { | ||
It("monitoring_console: can deploy a MC with standalone instance and update MC with new standalone deployment", func() { | ||
It("monitoring_console,integration: can deploy a MC with standalone instance and update MC with new standalone deployment", 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.
Nit: Same comment as above.
|
||
Context("Clustered deployment (C3 - clustered indexer, search head cluster)", func() { | ||
It("monitoring_console: MC can configure SHC, indexer instances after scale up and standalone in a namespace", func() { | ||
It("monitoring_console,integration: MC can configure SHC, indexer instances after scale up and standalone in a namespace", 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.
Nit: Same comment as above.
test/smartstore/smartstore_test.go
Outdated
Context("Configure multiple indexes on standlaone deployment using CR Spec", func() { | ||
It("smartstore: Can configure multiple indexes through app", func() { | ||
Context("Standalone Deployment (S1)", func() { | ||
It("smartstore,integration: Can configure multiple indexes through app", 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.
Nit: Same comment as above
test/smartstore/smartstore_test.go
Outdated
Context("Confiugre volume in default settings on standlaone deployment using CR Spec", func() { | ||
It("smartstore: Can configure indexes which use default volumes through app", func() { | ||
Context("Standalone Deployment (S1)", func() { | ||
It("smartstore,integration: Can configure indexes which use default volumes through app", 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.
Nit: Same comment as above
test/smartstore/smartstore_test.go
Outdated
Context("Confiugre indexes and volumes on Indexer Cluster using CR Spec", func() { | ||
It("smartstore: Can configure indexes and volumes on Multisite Indexer Cluster through app", func() { | ||
Context("Multisite Indexer Cluster with Search Head Cluster (M4)", func() { | ||
It("smartstore,integration: Can configure indexes and volumes on Multisite Indexer Cluster through app", 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.
Nit: Same comment as above
func VerifySplunkServerConfSecrets(deployment *Deployment, testenvInstance *TestEnv, verificationPods []string, data map[string][]byte, match bool) { | ||
for _, podName := range verificationPods { | ||
keysToMatch := GetKeysToMatch(podName) | ||
testenvInstance.Log.Info("Verificaton Keys Set", "Pod Name", podName, "Keys To Compare", keysToMatch) |
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.
Nit: Do we need the log for production?
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.
Useful for DEBUG. Autogenerated secrets should not cause any security issues. Online test runs are behind secured credentials anyways.
1f78f8c
to
81c7444
Compare
…ightly integration runs
81c7444
to
2a9e978
Compare
Refactored Secret Test Cases and added support for server.conf secret verification
Passing Test Runs
S1 SVA: secret update is applied to standalone
S1 SVA: Secret Object data is repopulated in secret object on passing empty Data map and new secrets are applied to Splunk Pods
Secret Object is recreated on delete and new secrets are applied to Splunk Pods
C3 SVA : secret update on indexers and search head cluster
M4 SVA: secret update on multisite indexers and search head cluster