Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ fi


# Running only smoke test cases by default or value passed through TEST_FOCUS env variable. To run different test packages add/remove path from focus argument or TEST_FOCUS variable
ginkgo -v -progress -r -stream -nodes=${NUM_NODES} --focus="${TEST_TO_RUN}" ${topdir}/test -- -commit-hash=${COMMIT_HASH} -operator-image=${PRIVATE_SPLUNK_OPERATOR_IMAGE} -splunk-image=${PRIVATE_SPLUNK_ENTERPRISE_IMAGE}
ginkgo -v -progress -r -stream -keepGoing -nodes=${NUM_NODES} --focus="${TEST_TO_RUN}" ${topdir}/test -- -commit-hash=${COMMIT_HASH} -operator-image=${PRIVATE_SPLUNK_OPERATOR_IMAGE} -splunk-image=${PRIVATE_SPLUNK_ENTERPRISE_IMAGE}
10 changes: 10 additions & 0 deletions test/testenv/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,16 @@ func (d *Deployment) deployCR(name string, cr runtime.Object) (runtime.Object, e
return cr, nil
}

// UpdateCR method to update existing CR spec
func (d *Deployment) UpdateCR(cr runtime.Object) error {

err := d.testenv.GetKubeClient().Update(context.TODO(), cr)
if err != nil {
return err
}
return nil
}

// DeploySingleSiteCluster deploys a lm and indexer cluster (shc optional)
func (d *Deployment) DeploySingleSiteCluster(name string, indexerReplicas int, shc bool) error {

Expand Down
3 changes: 3 additions & 0 deletions test/testenv/testenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ const (

// MonitoringConsolePod Montioring Console Statefulset Template
MonitoringConsolePod = "splunk-%s-monitoring-console-%d"

// SecretObject Secret object Template
SecretObject = "splunk-%s-secret"
)

var (
Expand Down