Skip to content

Commit

Permalink
Merge pull request #30 from keysight-eggplant/Release_1_0_12
Browse files Browse the repository at this point in the history
Update DAI version support 7.4.0-4
  • Loading branch information
ZiLiangYeoh authored Aug 8, 2024
2 parents b649701 + 23ba4df commit 14127d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 24 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,6 @@ The **DAI Client Secret** can be obtained by go to `http(s):/dai_server_hostname
**[Optional]** The exponential backoff factor between each HTTP request.<br />
**Default:** `0.5`

### `pollInterval`
**[Optional]** The number of seconds to wait between each call to the Eggplant DAI server.<br />
**Default:** `5`

### `testEnvironmentTimeout`
**[Optional]** The timeout in seconds for checking test environment readiness.<br />
**Default:** `15`

### `logLevel`
**[Optional]** The logging level. <br />
**Default:** `INFO`
Expand Down Expand Up @@ -141,9 +133,13 @@ Based on the pipeline .yml configuration, when there is commits or pull request
</thead>
<tbody>
<tr>
<td>7.3.0-3</td>
<td>7.4.0-4</td>
<td><a href="https://github.com/marketplace/actions/eggplant-runner">latest</a></td>
</tr>
<tr>
<td>7.3.0-3</td>
<td><a href="https://github.com/marketplace/actions/eggplant-runner?version=v1.0.10">v1.0.11</a></td>
</tr>
<tr>
<td>7.2.0-4</td>
<td><a href="https://github.com/marketplace/actions/eggplant-runner?version=v1.0.10">v1.0.10</a></td>
Expand Down Expand Up @@ -197,6 +193,9 @@ Hence, we can only do unilateral testing.
- Windows
- MacOS


4. Starting from v1.0.12 (DAI 7.4.0-4) onwards, Inputs `pollInterval` and `testEnvironmentTimeout` were removed. Warnings are expected if inputs are still in the workflow file.

# License

The scripts and documentation in this project are released under the [MIT License](LICENSE)
22 changes: 7 additions & 15 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ inputs:
required: false
type: float
default: 0.5
pollInterval:
description: "The number of seconds to wait between each call to the Eggplant DAI server [default: 5]"
required: false
type: integer
default: 5
testEnvironmentTimeout:
description: "The timeout in seconds for checking test environment readiness [default: 15]"
required: false
type: integer
default: 15
logLevel:
description: "The logging level [default: INFO]"
required: false
Expand Down Expand Up @@ -92,10 +82,10 @@ runs:
fi
echo "CLI_FILENAME=$EXE_FILENAME" >> $GITHUB_ENV
echo "DAI_VERSION=$DAI_VERSION" >> $GITHUB_ENV
echo "DOWNLOAD_URL=https://downloads.eggplantsoftware.com/downloads/EggplantRunner/$EXE_FILENAME" >> $GITHUB_ENV
echo "DOWNLOAD_URL=https://assets.eggplantsoftware.com/EggplantRunner/$EXE_FILENAME" >> $GITHUB_ENV
shell: bash
env:
DAI_VERSION: 7.3.0-3 # AUB-13519_CICD_Junit_file_implementation
DAI_VERSION: 7.4.0-4 # AUB-13519_CICD_Junit_file_implementation

- name: Fetch CLI
if: ${{ inputs.eggplantRunnerPath }}
Expand Down Expand Up @@ -159,8 +149,10 @@ runs:
# Public URL download
mkdir -p "$CLI_DIR"
echo "Downloading $DOWNLOAD_URL..."
code="$(curl -L $DOWNLOAD_URL --write-out %{http_code} --silent --output "$CLI_DIR/$CLI_FILENAME" )"
if [ $code -ne 200 ]; then
code=$(curl -I -s -L "$DOWNLOAD_URL" | awk '/HTTP\/1.1/ {print $2}')
if [ $code -eq 200 ]; then
curl -L "$DOWNLOAD_URL" --silent --output "$CLI_DIR/$CLI_FILENAME"
else
echo "Error: Download failed. Unable to download from url: $DOWNLOAD_URL. Error details: HTTP Error $code"; exit 1;
fi
echo "CLI_PATH=$CLI_DIR/$CLI_FILENAME" >> $GITHUB_ENV
Expand Down Expand Up @@ -211,7 +203,7 @@ runs:
COMMANDSTR+=" --client-id=${{ inputs.clientID }}"
fi
COMMANDSTR+=" --request-timeout=${{ inputs.requestTimeout }} --request-retries=${{ inputs.requestRetries }} --backoff-factor=${{ inputs.backoffFactor }} --poll-interval=${{ inputs.pollInterval }} --test-environment-timeout=${{ inputs.testEnvironmentTimeout }} --log-level=${{ inputs.logLevel }}"
COMMANDSTR+=" --request-timeout=${{ inputs.requestTimeout }} --request-retries=${{ inputs.requestRetries }} --backoff-factor=${{ inputs.backoffFactor }} --log-level=${{ inputs.logLevel }}"
if [ -n "${{ inputs.CACertPath }}" ]; then
if [ ! -e "${{ inputs.CACertPath }}" ]; then
Expand Down

0 comments on commit 14127d1

Please sign in to comment.