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

Test Infrastructure with Test-Kitchen & Docker + init #50

Merged
merged 14 commits into from
Aug 31, 2016

Conversation

arm4b
Copy link
Member

@arm4b arm4b commented Aug 24, 2016

Adresses #15: Integration Tests

After adding Ubuntu Xenial packages since st2 v1.6, there is need of more advanced testing infrastructure, rather then running Ansible playbooks on single Ubuntu Trusty CircleCI environment.

Main idea is to verify Ansible playbooks against Ubuntu trusty and xenial Docker containers, modified to run with init systems. Add integration tests. Automate entire process with Test-Kitchen and parallelize testing in CI.

  • First Test-Kitchen config
  • Run playbooks against Docker containers with init
  • ubuntu14
  • CircleCI -> Travis CI, because of docker + systemd issue
  • Add ubuntu16 support
  • Run playbooks over U14 U16 environments in parallel
  • First basic Integration Tests (probably another PR)
  • Remove CircleCI
  • Documentation

@arm4b arm4b force-pushed the feature/test-kitchen branch 2 times, most recently from 41db462 to a6c4af9 Compare August 30, 2016 20:11
armab added 5 commits August 31, 2016 00:09
Use alternative approach for downloading the Mongo key, avoiding https://www.mongodb.org/

Actual Ansible error:
> Failed to validate the SSL certificate for www.mongodb.org:443. Make sure your managed systems have a valid CA certificate installed. If the website serving the url uses SNI you need python >= 2.7.9 on your managed machine or you can install the `urllib3`, `pyopenssl`, `ndg-httpsclient`, and `pyasn1` python modules to perform SNI verification in python >= 2.6. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible
This is needed, since `debian wheezy`, `debian jessie`, `ubuntu xenial` packages at the moment are available only in `staging` repos
armab added 4 commits August 31, 2016 15:08
kitchen-sync allows using sftp instead of scp, try to avoid random Travis build error when transferring files.
@arm4b arm4b added RFR and removed WIP labels Aug 31, 2016
@arm4b arm4b merged commit ac83a6f into master Aug 31, 2016
@arm4b arm4b deleted the feature/test-kitchen branch August 31, 2016 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant