1+
12import { crypto } from "k6/experimental/webcrypto" ;
23import encoding from 'k6/encoding' ;
34import { check } from 'k6' ;
45import http from 'k6/http' ;
56
6- const generateVUs = 500 ;
7- const refreshVUs = 500 ;
8- const identityMapVUs = 500 ;
9- const testDuration = '10m'
7+ const vus = 500 ;
8+ const baseUrl = "http://uid2-integ-opr-use2-alb-1278341514.us-east-2.elb.amazonaws.com" ;
9+
10+ const generateVUs = vus ;
11+ const refreshVUs = vus ;
12+ const identityMapVUs = vus ;
13+ const testDuration = '20m'
14+
15+ const clientSecret = "" ;
16+ const clientKey = "" ;
1017
1118//30 warm up on each
1219// 5 min each
@@ -18,7 +25,6 @@ export const options = {
1825 noConnectionReuse : false ,
1926 scenarios : {
2027 // Warmup scenarios
21-
2228 tokenGenerateWarmup : {
2329 executor : 'ramping-vus' ,
2430 exec : 'tokenGenerate' ,
@@ -67,7 +73,7 @@ export const options = {
6773 duration : testDuration ,
6874 gracefulStop : '0s' ,
6975 startTime : '30s' ,
70- } , /*
76+ } /*,
7177 identityMapLargeBatchSequential: {
7278 executor: 'constant-vus',
7379 exec: 'identityMapLargeBatch',
@@ -114,11 +120,6 @@ for (let key in options.scenarios) {
114120 options . thresholds [ thresholdName ] . push ( 'max>=0' ) ;
115121}
116122
117- // Configs
118- const clientSecret = __ENV . CLIENT_SECRET ;
119- const clientKey = __ENV . CLIENT_KEY ;
120- const baseUrl = __ENV . BASE_URL ;
121-
122123export async function setup ( ) {
123124 var token = await generateRefreshRequest ( ) ;
124125 return {
@@ -137,7 +138,12 @@ export async function setup() {
137138 let decrypt = await decryptEnvelope ( response . body , clientSecret )
138139 return decrypt . body . refresh_token ;
139140 } ;
141+ }
140142
143+ export function handleSummary ( data ) {
144+ return {
145+ 'summary.json' : JSON . stringify ( data ) ,
146+ }
141147}
142148
143149// Scenarios
0 commit comments