Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,30 @@ pipeline {
}
}
}
stage('Integration Tests (SpineRouteLookup)') {
steps {
dir('integration-tests/integration_tests') {
sh label: 'Installing integration test dependencies', script: 'pipenv install --dev --deploy --ignore-pipfile'
// Wait for MHS load balancers to have healthy targets
dir('../../pipeline/scripts/check-target-group-health') {
sh script: 'pipenv install'
// Timeout 13 minutes.
timeout(13) {
waitUntil {
script {
def r = sh script: 'sleep 10; AWS_DEFAULT_REGION=eu-west-2 pipenv run main ${MHS_OUTBOUND_TARGET_GROUP} ${MHS_INBOUND_TARGET_GROUP} ${MHS_ROUTE_TARGET_GROUP}', returnStatus: true
return (r == 0);
}
}
}
}
sh label: 'Running integration tests', script: """
export SKIP_FORWARD_RELIABLE_INT_TEST=true
pipenv run inttests
"""
}
}
}
}
}
stage('Run Integration Tests (SDS API)') {
Expand Down Expand Up @@ -443,6 +467,32 @@ pipeline {
}
}
}

stage('Integration Tests (SDS API)') {
steps {
dir('integration-tests/integration_tests') {
sh label: 'Installing integration test dependencies', script: 'pipenv install --dev --deploy --ignore-pipfile'

// Wait for MHS load balancers to have healthy targets
dir('../../pipeline/scripts/check-target-group-health') {
sh script: 'pipenv install'

timeout(13) {
waitUntil {
script {
def r = sh script: 'sleep 10; AWS_DEFAULT_REGION=eu-west-2 pipenv run main ${MHS_OUTBOUND_TARGET_GROUP} ${MHS_INBOUND_TARGET_GROUP} ${MHS_ROUTE_TARGET_GROUP}', returnStatus: true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we parameterise the "eu-west" AWS_DEFAULT_REGION as well, rather than hard coding it?

return (r == 0);
}
}
}
}
sh label: 'Running integration tests', script: """
export SKIP_FORWARD_RELIABLE_INT_TEST=true
pipenv run inttests
"""
}
}
}
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.component-sds.override.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
outbound:
environment:
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.component.override.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
route:
build:
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.release.image.override.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
inbound:
image: nhsdev/nia-mhs-inbound:${BUILD_TAG}
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
inbound:
image: local/mhs-inbound:${BUILD_TAG}
Expand Down
2 changes: 0 additions & 2 deletions test-scripts/0.0.1/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
inbound:
image: nhsdev/nia-mhs-inbound:0.0.1
Expand Down
2 changes: 0 additions & 2 deletions test-scripts/0.0.2/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
inbound:
image: nhsdev/nia-mhs-inbound:0.0.2
Expand Down
2 changes: 0 additions & 2 deletions test-scripts/1.0.0/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
inbound:
image: nhsdev/nia-mhs-inbound:1.0.0
Expand Down
2 changes: 0 additions & 2 deletions test-scripts/1.0.1/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
inbound:
image: nhsdev/nia-mhs-inbound:1.0.1
Expand Down
2 changes: 0 additions & 2 deletions test-scripts/1.0.2/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
inbound:
image: nhsdev/nia-mhs-inbound:1.0.2
Expand Down
2 changes: 0 additions & 2 deletions test-scripts/1.1.0/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
inbound:
image: nhsdev/nia-mhs-inbound:1.1.0
Expand Down
2 changes: 0 additions & 2 deletions test-scripts/1.1.1/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
inbound:
image: nhsdev/nia-mhs-inbound:1.1.1
Expand Down
2 changes: 0 additions & 2 deletions test-scripts/1.2.0/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
inbound:
image: nhsdev/nia-mhs-inbound:1.2.0
Expand Down
2 changes: 0 additions & 2 deletions test-scripts/1.2.1/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
inbound:
image: nhsdev/nia-mhs-inbound:1.2.1
Expand Down
2 changes: 0 additions & 2 deletions test-scripts/1.2.2/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
inbound:
image: nhsdev/nia-mhs-inbound:1.2.2
Expand Down