github.com/kubeshop/testkube@v1.17.23/test/k6/executor-tests/k6-smoke-test.js (about) 1 import http from 'k6/http'; 2 import { check } from 'k6'; 3 4 if (__ENV.K6_ENV_FROM_PARAM != "K6_ENV_FROM_PARAM_value") { 5 throw new Error("Incorrect K6_ENV_FROM_PARAM ENV value"); 6 } 7 8 if (__ENV.K6_SYSTEM_ENV != "K6_SYSTEM_ENV_value") { 9 throw new Error("Incorrect K6_SYSTEM_ENV ENV value"); 10 } 11 12 export default function () { 13 http.get('https://testkube.kubeshop.io/'); 14 }