Skip to content

Commit

Permalink
tt3798: RFE: Add support for 'locations' & 'dedicatedIP' variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pjain05 committed Jan 5, 2024
1 parent 1edaeb0 commit 99665bc
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -23,4 +24,5 @@ jobs:
continuePipeline: ${{env.continuePipeline}}
showTailLog: ${{env.showTailLog}}
testID: ${{env.testID}}
webhookURL: ${{env.webhookURL}}
locations: ${{env.locations}}
dedicatedIP: ${{env.dedicatedIP}}
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
```
Expand Down
10 changes: 9 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion versionToRelease.ini
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release_version = v8.2
release_version = v8.3

0 comments on commit 99665bc

Please sign in to comment.