-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix e2e test for rabbitmq controller (#241)
Signed-off-by: Xudong Sun <[email protected]>
- Loading branch information
1 parent
cc43b97
commit 1bd7584
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -xeu | ||
|
||
instance=$1 | ||
username=$(kubectl get secret ${instance}-default-user -o jsonpath="{.data.username}" | base64 --decode) | ||
password=$(kubectl get secret ${instance}-default-user -o jsonpath="{.data.password}" | base64 --decode) | ||
service=${instance} | ||
kubectl run perf-test --image=pivotalrabbitmq/perf-test -- --uri "amqp://${username}:${password}@${service}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters