Updated documentation. Add new tests for software upgrades.

This commit is contained in:
jefferyfry
2020-08-06 19:49:31 -07:00
parent 7517a48339
commit d589ce2978
16 changed files with 237 additions and 19 deletions

View File

@@ -37,9 +37,7 @@
db_url: "jdbc:postgresql://{{ AWSDeployment.stack_outputs.DBInstancePrivate }}:5432/artifactory"
server_name: "{{ AWSDeployment.stack_outputs.ALBHostName }}"
artifactory_is_primary: true
artifactory_license1: "{{ lookup('env', 'artifactory_license1') }}"
artifactory_license2: "{{ lookup('env', 'artifactory_license2') }}"
artifactory_license3: "{{ lookup('env', 'artifactory_license3') }}"
artifactory_license_file: "{{ lookup('env', 'artifactory_license_file') }}"
groups:
- artifactory
@@ -84,6 +82,11 @@
- { db_name: "xraydb", db_owner: "xray" }
groups: database
- name: Set up test environment file
copy:
src: ../tests/src/test/resources/testenv_tpl.yaml
dest: ../tests/src/test/resources/testenv.yaml
- name: Set up test environment url
replace:
path: ../tests/src/test/resources/testenv.yaml
@@ -140,12 +143,7 @@
- name: Test
hosts: localhost
tasks:
- name: Run tests
shell:
cmd: ./gradlew clean unified_test
chdir: ../tests/
- name: Cleanup and delete stack
cloudformation:
stack_name: "{{ lookup('env', 'stack_name') }}"
region: "us-east-1"
state: "absent"
- name: Run tests
shell:
cmd: ./gradlew clean unified_test
chdir: ../tests/