You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TESTING.md
+6-17Lines changed: 6 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,36 +30,25 @@ bundle exec rake
30
30
31
31
### Integration Tests
32
32
33
-
This tests a number of different suites, some of which require special credentials or virtual machine configurations.
34
-
Integration tests are setup to run under test-kitchen:
33
+
This tests a number of different integration test suites using docker containers. They are
34
+
setup to run under test-kitchen:
35
35
36
36
Requirements:
37
37
To run integration testing you need a valid threatstack agent deployment key
38
38
Get your deployment key from the Threat Stack application under "Settings" -> "Applications Keys"
39
39
40
+
**Example:**
40
41
```
41
42
export TS_DEPLOY_KEY=<deploy key>
42
43
export TS_CONFIG_ARGS=['fim.log yes']
43
44
```
44
45
45
-
Vagrant/local integration testing
46
+
Local container integration testing
46
47
---------------
47
-
Vagrant testing through the Kitchen-CI toolset can be done locally. You must have VirtualBox and vagrant installed.
48
+
Container (with docker) testing through the Kitchen-CI toolset can be done locally. You must have
49
+
docker installed. The `.kitchen.yml` file drives the configuration and execution of the tests.
48
50
49
51
To run tests, use the kitchen framework. The following will run all tests:
50
52
```
51
53
bundle exec kitchen test
52
54
```
53
-
54
-
Using ec2 nodes through vagrant
55
-
----------------------------------------
56
-
This approach to integration testing will allow you to use custom nodes, or cloud-specific nodes. (The most common case is Amazon Linux 1 and 2).
57
-
58
-
To test using ec2 instead of VirtualBox nodes, use the `.kitchen.ec2.yml` configuration file. You may need additional environment variables set for those tests (such as `AWS_SECRET_ACCESS_KEY`, `AWS_ACCESS_KEY_ID`, `AWS_SSH_KEY`, `SG_GROUP_IDS`, `SG_SUBNET_ID`, or `IMAGE_OWNER_ID`.
59
-
60
-
You may not need all of those, but you likely need the AWS- ones for native kitchen-ec2 provisioning.
61
-
62
-
To run tests on the EC2 kitchen file, run commands as follows:
63
-
```
64
-
KITCHEN_YAML=".kitchen.ec2.yml" bundle exec kitchen test
0 commit comments