-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from HewlettPackard/add_dev_test
Added Dev acceptance case
- Loading branch information
Showing
15 changed files
with
99 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: acc | ||
name: Acceptance Tests | ||
|
||
on: | ||
# Runs every 2 days once at 3AM | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Dev Acceptance Tests | ||
|
||
on: | ||
# Runs every 2 days once at 3AM | ||
# schedule: | ||
# - cron: '0 21 */2 * *' | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
inputs: | ||
logLevel: | ||
description: 'Log level' | ||
required: true | ||
default: 'warning' | ||
tags: | ||
description: 'Test scenario tags' | ||
# release: | ||
# types: [published] | ||
env: | ||
HPEGL_IAM_SERVICE_URL: ${{ secrets.DEV_HPEGL_IAM_SERVICE_URL }} | ||
HPEGL_TENANT_ID: ${{ secrets.DEV_HPEGL_TENANT_ID }} | ||
HPEGL_USER_SECRET: ${{ secrets.DEV_HPEGL_USER_SECRET }} | ||
HPEGL_USER_ID: ${{ secrets.DEV_HPEGL_USER_ID }} | ||
HPEGL_VMAAS_API_URL: ${{ secrets.DEV_HPEGL_VMAAS_API_URL }} | ||
HPEGL_VMAAS_LOCATION: ${{ secrets.DEV_HPEGL_VMAAS_LOCATION }} | ||
HPEGL_VMAAS_SPACE_NAME: ${{ secrets.DEV_HPEGL_VMAAS_SPACE_NAME}} | ||
TF_ACC: ${{ secrets.TF_ACC }} | ||
jobs: | ||
acc: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
go: [ '1.17' ] | ||
name: Dev Acceptance Tests | ||
steps: | ||
- name: Checkout workspace | ||
uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.17 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install -y wget jq | ||
wget https://releases.hashicorp.com/terraform/1.0.0/terraform_1.0.0_linux_amd64.zip | ||
sudo unzip -fo terraform_1.0.0_linux_amd64.zip -d /usr/local/bin | ||
- name: Install necessary tools | ||
run: make tools | ||
|
||
- name: Run Acceptance test | ||
run: | | ||
TF_ACC_TEST_PATH="$(pwd)/acc-dev-testcases" && make acceptance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
acc: | ||
- config: | | ||
name = "tl_lb_dnd" | ||
name = "tf_lb_DND" | ||
validations: | ||
json.loadBalancer.id: 18 | ||
json.loadBalancer.id: 26 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
acc: | ||
- config: | | ||
name = "default-http-lb-monitor" | ||
lb_id = 18 | ||
lb_id = 26 | ||
validations: | ||
json.loadBalancerMonitor.id: 98 | ||
json.loadBalancerMonitor.id: 156 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
acc: | ||
- config: | | ||
name = "PCE-testLB-Pool" | ||
lb_id = 18 | ||
lb_id = 26 | ||
validations: | ||
json.loadBalancerPool.id: 86 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
acc: | ||
- config: | | ||
name = "default-http-lb-app-profile" | ||
lb_id = 18 | ||
lb_id = 26 | ||
validations: | ||
json.loadBalancerProfile.id: 215 | ||
json.loadBalancerProfile.id: 379 | ||
- config: | | ||
name = "default-cookie-lb-persistence-profile" | ||
lb_id = 18 | ||
lb_id = 26 | ||
validations: | ||
json.loadBalancerProfile.id: 220 | ||
json.loadBalancerProfile.id: 385 | ||
- config: | | ||
name = "default-balanced-server-ssl-profile" | ||
lb_id = 18 | ||
lb_id = 26 | ||
validations: | ||
json.loadBalancerProfile.id: 230 | ||
json.loadBalancerProfile.id: 398 | ||
- config: | | ||
name = "default-balanced-client-ssl-profile" | ||
lb_id = 18 | ||
lb_id = 26 | ||
validations: | ||
json.loadBalancerProfile.id: 227 | ||
json.loadBalancerProfile.id: 393 |
4 changes: 2 additions & 2 deletions
4
acc-dev-testcases/data-sources/load_balancer_ssl_ca_certs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
acc: | ||
- config: | | ||
name = "sample-cert" | ||
name = "test-cert" | ||
validations: | ||
json.certificates.id: 7 | ||
json.certificates.id: 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters