sshaws icon indicating copy to clipboard operation
sshaws copied to clipboard

Add acceptance tests

Open Vidimensional opened this issue 4 years ago • 1 comments

This is a POC of testing made by @toninoes and @vidimensional in the context of FlexyFriday.

Summary

Adds some acceptance tests for sshaws. Those tests are not exhaustive, but they bring an idea on how to test it (and maybe open a discussion).

Those tests use terragrunt/terratest in order to launch a simple EC2 instance that allows us to test the features of sshaws (running the tests may incur on AWS costs).

Further work

  • Add more test cases, specially the actual connection to the instance.
  • Improve performance by grouping and refactoring some calls to terraform output.
  • Make the tests work with TravisCI & SonarCloud.

Vidimensional avatar Jul 22 '22 14:07 Vidimensional

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Jul 22 '22 14:07 sonarqubecloud[bot]