Skip to content

Commit

Permalink
fix: Update solr command on e2e tests (#5115)
Browse files Browse the repository at this point in the history
  • Loading branch information
JorTurFer committed Oct 23, 2023
1 parent 2b9eb82 commit 7dab159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/scalers/solr/solr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func testScaleOut(t *testing.T, kc *kubernetes.Clientset) {
func testScaleIn(t *testing.T, kc *kubernetes.Clientset) {
t.Log("--- testing scale in ---")

_, _, err := ExecCommandOnSpecificPod(t, solrPodName, testNamespace, fmt.Sprintf("bin/post -u %s:%s -c %s -d \"<delete><query>*:*</query></delete>\"", solrUsername, solrPassword, solrCollection))
_, _, err := ExecCommandOnSpecificPod(t, solrPodName, testNamespace, fmt.Sprintf("curl -u %s:%s -X POST 'http://localhost:8983/solr/%s/update' --data '<delete><query>*:*</query></delete>' -H 'Content-type:text/xml; charset=utf-8'", solrUsername, solrPassword, solrCollection))
assert.NoErrorf(t, err, "cannot enqueue messages - %s", err)
assert.True(t, WaitForDeploymentReplicaReadyCount(t, kc, deploymentName, testNamespace, minReplicaCount, 60, 3),
"replica count should be %d after 3 minutes", minReplicaCount)
Expand Down

0 comments on commit 7dab159

Please sign in to comment.