File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
import subprocess
2
2
import argparse
3
3
import time
4
+ import os
4
5
5
6
6
7
nozzle_perf_params = [
@@ -125,12 +126,12 @@ def main():
125
126
126
127
if args .run == "nozzle" :
127
128
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") ,
134
135
"duration" : args .duration ,
135
136
}
136
137
run_nozzle_perf (config )
You can’t perform that action at this time.
0 commit comments