Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add post deploy tests #14

Merged
merged 2 commits into from
Jun 8, 2018
Merged
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
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'
}
};