openssh-github-keys
openssh-github-keys copied to clipboard
Automated integration tests
The usage of openssh-github-keys
on production environments is sensitive. We need to replicate a production like server using a VM or Docker and configure the SSH daemon with openssh-github-keys
. That way we could safety test openssh-github-keys
with openssh
. There are different approaches for testing this library:
- Testing with vagrant and virtualbox - Setup a VM, build openssh-github-keys, install openssh-server, configure openssh to get the keys through openssh-github-keys, and finally SSH from the host machine (pros: easy to setup, cons: difficult to test it on Travis).
- Testing with Docker - Setup a Docker container, install openssh-server, configure openssh to get the keys through openssh-github-keys, and finally SSH from the host machine (pros: Travis provides support for Docker out of the box).
- Build an Ansible Galaxy that setup and configure openssh-github-keys with openssh-server, and perform an integration tests.