diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0725cd1..f63ffe2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,11 +1,12 @@ name: github-action env: - apiKey: "38e53fd821771b102b5bfddc" - apiSecret: "c9fb4b4be583657d952d3d25103b28590811e7b0f43bf8d7d9107b6345ae752f15a21d50" + apiKey: "17367bcc353b421e3b2a51d8" + apiSecret: "f7f1e77340e84a3ed0b8c493fd228a1b75aa1b75d2a42f4855ad230918190a356cbb796b" + testID: "13794733" continuePipeline: "false" showTailLog: "false" - testID: "11132497" - webhookURL: "https://perforcesoftwareinc.webhook.office.com/webhookb2/55a7a621-8da8-4038-b209-c17029acb527@95b666d1-9a75-49ab-95a3-8969fbcdc08c/IncomingWebhook/8df752b059714c00b2c1317b9ea24b4c/b99b43b0-b40d-4401-a0c4-5a30c07badcd" + locations: "azure-east-au-1,ap-south-1" + dedicatedIP: "false" on: push jobs: @@ -23,4 +24,5 @@ jobs: continuePipeline: ${{env.continuePipeline}} showTailLog: ${{env.showTailLog}} testID: ${{env.testID}} - webhookURL: ${{env.webhookURL}} + locations: ${{env.locations}} + dedicatedIP: ${{env.dedicatedIP}} diff --git a/Dockerfile b/Dockerfile index eb96ca7..1339215 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ # Container image that runs your code FROM blazerunner/blazemeter:github -CMD pwsh /Blazemeter-run.ps1 -apikey $env:INPUT_APIKEY -apisecret $env:INPUT_APISECRET -testidinput $env:INPUT_TESTID -showtaillog $env:INPUT_SHOWTAILLOG -createtest $env:INPUT_CREATETEST -testname $env:INPUT_TESTNAME -projectid $env:INPUT_PROJECTID -inputallfiles $env:INPUT_INPUTALLFILES -inputstartfile $env:INPUT_INPUTSTARTFILE -totalusers $env:INPUT_TOTALUSERS -duration $env:INPUT_DURATION -rampup $env:INPUT_RAMPUP -Uploadfilechk $env:INPUT_UPLOADFILECHECK -ContinuePipeline $env:INPUT_CONTINUEPIPELINE -multitests $env:INPUT_MULTITESTS -functionaltest $env:INPUT_FUNCTIONALTEST -modeldata $env:INPUT_MODELDATA -env_variable $env:INPUT_ENVVARIABLE -jmeterproperties $env:INPUT_JMETERPROPERTIES -reportname $env:INPUT_REPORTNAME -note $env:INPUT_NOTES -iterations_config $env:INPUT_ITERATIONSCONFIG -iterations $env:INPUT_ITERATIONS -testRunByTestName $env:INPUT_TESTRUNBYTESTNAME -ignoreSLA $env:INPUT_IGNORESLA -webhookURL $env:INPUT_WEBHOOKURL -enablePublicReportUrl $env:INPUT_ENABLEPUBLICREPORTURL -webhookURLSlack $env:INPUT_WEBHOOKURLSLACK +CMD pwsh /Blazemeter-run.ps1 -apikey $env:INPUT_APIKEY -apisecret $env:INPUT_APISECRET -testidinput +$env:INPUT_TESTID -showtaillog $env:INPUT_SHOWTAILLOG -createtest $env:INPUT_CREATETEST -testname $env:INPUT_TESTNAME -projectid $env:INPUT_PROJECTID -inputallfiles $env:INPUT_INPUTALLFILES -inputstartfile $env:INPUT_INPUTSTARTFILE -totalusers $env:INPUT_TOTALUSERS -duration $env:INPUT_DURATION -rampup $env:INPUT_RAMPUP -Uploadfilechk $env:INPUT_UPLOADFILECHECK -ContinuePipeline $env:INPUT_CONTINUEPIPELINE -multitests $env:INPUT_MULTITESTS -functionaltest $env:INPUT_FUNCTIONALTEST -modeldata $env:INPUT_MODELDATA -env_variable $env:INPUT_ENVVARIABLE -jmeterproperties $env:INPUT_JMETERPROPERTIES -reportname $env:INPUT_REPORTNAME -note $env:INPUT_NOTES -iterations_config $env:INPUT_ITERATIONSCONFIG -iterations $env:INPUT_ITERATIONS -testRunByTestName $env:INPUT_TESTRUNBYTESTNAME -ignoreSLA $env:INPUT_IGNORESLA -webhookURL $env:INPUT_WEBHOOKURL -enablePublicReportUrl $env:INPUT_ENABLEPUBLICREPORTURL -webhookURLSlack $env:INPUT_WEBHOOKURLSLACK -locations $env:INPUT_LOCATIONS -dedicatedIP $env:INPUT_DEDICATEDIP diff --git a/README.md b/README.md index b871568..99d2c63 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,11 @@ This action allows you to run Blazemeter existing test and create a new test. - Used when send microsoft teams notification for blazemeter test status ### `enablePublicReportURL` - Used when send public report url through a microsoft teams notification +### `locations` +- Comma separated location IDs as String. Ex., "asia-east1-a,australia-southeast1-a". All supported locationIDs can be found at https://api.blazemeter.com/performance/#list-of-google-cloud-locations +### `dedicatedIP` +- A boolean value defaulted to **false**. When set to **true**, dedicatedIPs will be used if available. + ## Example **1. Run Existing Test** ``` diff --git a/action.yml b/action.yml index ab83405..e546e10 100644 --- a/action.yml +++ b/action.yml @@ -112,7 +112,15 @@ inputs: webhookURLSlack: description: 'azure team web hook url for slack' required: false - default: 'null' + default: 'null' + locations: + description: 'To define the location on which test will run ' + required: false + default: '' + dedicatedIP: + description: 'To use the dedicatedIP for the selected location' + required: false + default: 'false' runs: using: 'docker' diff --git a/versionToRelease.ini b/versionToRelease.ini index 6483aaa..70ec5df 100644 --- a/versionToRelease.ini +++ b/versionToRelease.ini @@ -1 +1 @@ -release_version = v8.2 +release_version = v8.3