Closed eistrati closed 6 years ago
@eistrati please move mapping: './tests/mapping.json'
functionality into a new issue, it should be fixed beside with git diff
issue (in Jenkins)
@ddimitrioglo I've tested and merged the PR. Nevertheless, this issue is not over yet, as testing terraform-demo didn't work (no errors, but didn't pass the tests either).
@ddimitrioglo If terraform plan or terraform apply is skipped, I this we should skip corresponding testing step. What do you think?
@ddimitrioglo Also, if testing step fails, the expected behavior is that whole workflow should stop. It doesn't happen... Here below what happens in reality:
[TERRAFORM]
### 'ec2_dev' returned below output while executing 'terraform plan'
[...]
Terraform show log assertion
1) Test terraform show log should fail if contains "new resource required" keyword
2) Test terraform show log should fail if contains "forces new resource" keyword
0 passing (19ms)
2 failing
[...]
[TERRAFORM]
### 'ec2_dev' skipped executing 'terraform apply'
Running tests in:
- HeadlessChrome 0.0.0 / Mac OS X 10.13.2
[...]
[TERRAFORM]
### 'ec2_dev' skipped executing 'terraform destroy'
🚀 Done.
Test cases with status for recink run terraform
command
e2e component:
Specify test path including test type (e.x. ./tests/e2e)
specify test path including resource directory (e.x. ./tests/e2e/suite/services/rds)
specify test path including e2e tests for particular resource or service (e.x. ./tests/e2e/suite/services/rds.e2e.js)
specify test path including suite directory (e.x. ./tests/e2e/suite/)
specify test path including test directory and link it to the apply state under test config in .recink.yml (e.x. apply: “./tests/“)
specify apply state under terraform config in .recink.yml and set it to false specify valid e2e test path under test config for the same module
specify an invalid tests path including non-existent directory (e.x. ./tests/e2e/non-existent-directory/suite)
specify browser type and mode under e2e component in .recink.yml (e.x. Firefox --headless)
unit component:
@eistrati @ddimitrioglo I would suggest to keep the status "in Review" for the following ticket and lets discuss the described use cases and requirements on our next meeting.
plan: '/path/to/units/'
'/path/to/units/'
"@eistrati please review and provide your feedback
@eistrati @ddimitrioglo FYI I have added separate tickets for the Failed tests https://github.com/MitocGroup/recink/issues/128 https://github.com/MitocGroup/recink/issues/127 https://github.com/MitocGroup/recink/issues/129 https://github.com/MitocGroup/recink/issues/130
Checked.
It should be as simple as configuring
.recink.yml
, similar to below example: