Skip to content

Instantly share code, notes, and snippets.

@sbeliakou
Created March 14, 2021 00:42
Show Gist options
  • Save sbeliakou/11044f7959c092804f6572478b71e396 to your computer and use it in GitHub Desktop.
Save sbeliakou/11044f7959c092804f6572478b71e396 to your computer and use it in GitHub Desktop.
Cloning into 'viachaslau_karpau'...
name: viachaslau_karpau, master/1bbf9f1 @ 2021-03-13 19:55:31 +0000
2021/03/14 00:29:52 config: tests/tomcat.yml
2021/03/14 00:29:52 verbosity: 2
2021/03/14 00:29:52 -----------------------------------------------------------------------------------
2021/03/14 00:29:52 Running '1.1 Tomcat', 1..16 tests
2021/03/14 00:29:52 -----------------------------------------------------------------------------------
2021/03/14 00:30:01 ✓ [1.1 Tomcat] => playbook lint (ansible-lint) (1), 5.897s
2021/03/14 00:30:02 ✓ [1.1 Tomcat] => playbook syntax check (--syntax-check) (1), 1.568s
2021/03/14 00:32:09 ✓ [1.1 Tomcat] => apply playbook (3), 2m6.462s
2021/03/14 00:32:09 ✓ [1.1 Tomcat] => service process should run after rollout (2), 591ms
2021/03/14 00:32:12 ✗ [1.1 Tomcat] -> responds 200
2021/03/14 00:32:12 Result: exit status 1
2021/03/14 00:32:12 Output:
(run, /tmp/students-1/viachaslau_karpau/day1/1.1) => docker exec app-server curl -s -f localhost:8080
rc: 7
output: ''
CMD Failed: docker exec app-server curl -s -f localhost:8080
2021/03/14 00:32:42 ✓ [1.1 Tomcat] => idempotency check (3), 29.88s
2021/03/14 00:32:50 ✓ [1.1 Tomcat] => should run after 2nd apply (2), 7.848s
2021/03/14 00:32:51 ✓ [1.1 Tomcat] => shouldn't restart (3), 333ms
2021/03/14 00:32:51 ✓ [1.1 Tomcat] => service is enabled (1), 219ms
2021/03/14 00:32:51 ✓ [1.1 Tomcat] => 'tomcat_user' variable set as required (1), 111ms
2021/03/14 00:32:51 ✓ [1.1 Tomcat] => 'tomcat_group' variable set as required (1), 153ms
2021/03/14 00:35:29 ✓ [1.1 Tomcat] => service is running under non-priviliged user as per tomcat_user/tomcat_group (1), 2m37.496s
2021/03/14 00:35:29 ✓ [1.1 Tomcat] => 'tomcat_url' variable set as required (1), 46ms
2021/03/14 00:35:29 ✗ [1.1 Tomcat] -> 'tomcat_home' variable set as required
2021/03/14 00:35:29 Result: exit status 1
2021/03/14 00:35:29 Output:
2021/03/14 00:38:21 ✓ [1.1 Tomcat] => can install into different home (1), 2m52.635s
2021/03/14 00:40:11 ✓ [1.1 Tomcat] => can apply under non-root user (3), 1m49.977s
2021/03/14 00:40:12 -----------------------------------------------------------------------------------
2021/03/14 00:40:12 Tests Summary:
2021/03/14 00:40:12 14 (of 16) tests passed, 2 tests failed; rated as 88.89%
2021/03/14 00:40:12
2021/03/14 00:40:12 Time Spent: 10m19.623s
2021/03/14 00:40:12 -----------------------------------------------------------------------------------
name: viachaslau_karpau, master/1bbf9f1 @ 2021-03-13 19:55:31 +0000
2021/03/14 00:40:12 config: tests/webapp.yml
2021/03/14 00:40:12 verbosity: 2
2021/03/14 00:40:12 -----------------------------------------------------------------------------------
2021/03/14 00:40:12 Running '1.2 WebApp', 1..21 tests
2021/03/14 00:40:12 -----------------------------------------------------------------------------------
2021/03/14 00:40:18 ✓ [1.2 WebApp] => playbook lint (ansible-lint) (1), 3.753s
2021/03/14 00:40:19 ✓ [1.2 WebApp] => playbook syntax check (--syntax-check) (1), 708ms
2021/03/14 00:40:35 ✓ [1.2 WebApp] => apply plybook (2), 16.637s
2021/03/14 00:40:36 ✓ [1.2 WebApp] => 'webapp-server' is running (2), 170ms
2021/03/14 00:40:36 ✓ [1.2 WebApp] => service responds 200 (2), 170ms
2021/03/14 00:40:52 ✓ [1.2 WebApp] => playbook idempotency check (2), 16.528s
2021/03/14 00:40:52 ✓ [1.2 WebApp] => service shouldn't restart (2), 174ms
2021/03/14 00:40:53 ✓ [1.2 WebApp] => service should run after 2nd apply (2), 155ms
2021/03/14 00:40:53 ✓ [1.2 WebApp] => service is enabled (1), 164ms
2021/03/14 00:41:11 ✓ [1.2 WebApp] => can use 'student_first_name/student_last_name' variables (1), 18.605s
2021/03/14 00:41:32 ✓ [1.2 WebApp] => can set custom port (1), 20.241s
2021/03/14 00:41:32 ✓ [1.2 WebApp] => use 'checksum' when downloading WebApp binary (get_url) (1), 25ms
2021/03/14 00:41:32 ✓ [1.2 WebApp] => service is running under 'webapp-server:webapp-server' (1), 536ms
2021/03/14 00:41:32 ✓ [1.2 WebApp] => app/service user has no password set (1), 191ms
2021/03/14 00:41:32 ✓ [1.2 WebApp] => playbook has no hardcoded 'webapp_user' (1), 27ms
2021/03/14 00:41:32 ✓ [1.2 WebApp] => playbook has no hardcoded 'webapp_group' (1), 24ms
2021/03/14 00:41:56 ✓ [1.2 WebApp] => can use 'webapp_user/webapp_group' variables (1), 23.737s
2021/03/14 00:42:16 ✓ [1.2 WebApp] => can install into different home dir (1), 20.151s
2021/03/14 00:42:16 ✓ [1.2 WebApp] => can use different source url (1), 9ms
2021/03/14 00:42:39 ✓ [1.2 WebApp] => can apply under non-root user (1), 23.082s
2021/03/14 00:42:39 ✓ [1.2 WebApp] => playbook has 'handlers' (1), 12ms
2021/03/14 00:42:40 -----------------------------------------------------------------------------------
2021/03/14 00:42:40 Tests Summary:
2021/03/14 00:42:40 21 (of 21) tests passed, 0 tests failed; rated as 100.00%
2021/03/14 00:42:40
2021/03/14 00:42:40 Time Spent: 2m27.804s
2021/03/14 00:42:40 -----------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment