Skip to content

Commit f820512

Browse files
committed
Use environment variable to pass in secret values
1 parent 93db1f7 commit f820512

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

performance-testing/uid2-operator/k6-identity-map.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import http from 'k6/http';
66

77
const vus = 300;
88
// Get Key and Secret from: https://start.1password.com/open/i?a=SWHBRR7FURBBXPZORJWBGP5UBM&v=cknem3yiubq6f2guyizd2ifsnm&i=ywhkqovi4p5wzoi7me4564hod4&h=thetradedesk.1password.com
9-
const baseUrl = "";
10-
const clientSecret = "";
11-
const clientKey = "";
9+
const baseUrl = __ENV.OPERATOR_URL;
10+
const clientSecret = __ENV.CLIENT_SECRET;
11+
const clientKey = __ENV.CLIENT_KEY;
1212
const identityMapVUs = 300;
1313
const identityMapLargeBatchVUs = 10;
1414

performance-testing/uid2-operator/k6-token-generate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import http from 'k6/http';
66

77
const vus = 300;
88
// Get Key and Secret from: https://start.1password.com/open/i?a=SWHBRR7FURBBXPZORJWBGP5UBM&v=cknem3yiubq6f2guyizd2ifsnm&i=ywhkqovi4p5wzoi7me4564hod4&h=thetradedesk.1password.com
9-
const baseUrl = "";
10-
const clientSecret = "";
11-
const clientKey = "";
9+
const baseUrl = __ENV.OPERATOR_URL;
10+
const clientSecret = __ENV.CLIENT_SECRET;
11+
const clientKey = __ENV.CLIENT_KEY;
1212

1313
const generateVUs = vus;
1414
const testDuration = '5m'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
COMMENT=$1
4+
5+
if [ "$#" -ne 1 ]; then
6+
COMMENT=$( date '+%F_%H:%M:%S' )
7+
fi
8+
9+
./start-named-test.sh k6-identity-map.js $COMMENT

performance-testing/uid2-operator/start-generate.sh renamed to performance-testing/uid2-operator/start-token-generate.sh

File renamed without changes.

0 commit comments

Comments
 (0)