Skip to content

Commit 99d3ddb

Browse files
committed
refine params
1 parent cc3180a commit 99d3ddb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

ci/perf.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import subprocess
22
import argparse
33
import time
4+
import os
45

56

67
nozzle_perf_params = [
@@ -125,12 +126,12 @@ def main():
125126

126127
if args.run == "nozzle":
127128
config = {
128-
"api-endpoint": "http://ghost:9911",
129-
"user": "admin",
130-
"password": "admin",
131-
"splunk-host": "https://localhost:8088",
132-
"splunk-token": "1CB57F19-DC23-419A-8EDA-BA545DD3674D",
133-
"splunk-index": "main",
129+
"api-endpoint": os.environ.get("API_ENDPOINT", "http://trafficcontroller:9911"),
130+
"user": os.environ.get("API_USER", "admin"),
131+
"password": os.environ.get("API_PASSWORD", "admin"),
132+
"splunk-host": os.environ.get("SPLUNK_HOST", "https://heclb1:8088"),
133+
"splunk-token": os.environ.get("SPLUNK_TOKEN", "00000000-0000-0000-0000-000000000000"),
134+
"splunk-index": os.environ.get("SPLUNK_INDEX", "main"),
134135
"duration": args.duration,
135136
}
136137
run_nozzle_perf(config)

0 commit comments

Comments
 (0)