Skip to content

Commit

Permalink
Merge pull request #14 from UKHomeOffice/improvement/post-deploy-tests
Browse files Browse the repository at this point in the history
Add post deploy tests
  • Loading branch information
joefitter authored Jun 8, 2018
2 parents f511d82 + 347cee8 commit ba4d2b5
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 16 deletions.
13 changes: 13 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,19 @@ pipeline:
environment: dev
event: deployment

post_deploy_test:
image: node:8
secrets:
- npm_auth_token
commands:
- npm install
- npm run test:functional -- --suite smoke
when:
event: deployment
environment:
- dev
- preprod

slack:
image: plugins/slack
secrets:
Expand Down
25 changes: 19 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"homepage": "https://github.com/UKHomeOffice/asl-inspector-ui#readme",
"dependencies": {
"@asl/service": "^2.9.0"
"@asl/service": "^2.9.1"
},
"devDependencies": {
"@ukhomeoffice/asl-functional-testing": "^1.1.0",
Expand Down
11 changes: 2 additions & 9 deletions tests/functional/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,8 @@ module.exports = {
'/establishment/8201',
'/establishment/8201/details',
'/establishment/8201/places'
],
]
// uncomment to save local screenshots
// path: './tests/functional/screenshots',
s3: {
region: 'eu-west-2',
bucket: 'asl-screenshots',
prefix: 'internal-ui',
accessKey: process.env.AWS_ACCESS_KEY,
secret: process.env.AWS_SECRET
}
// path: './tests/functional/screenshots'
}
};

0 comments on commit ba4d2b5

Please sign in to comment.