-
-
Save sbeliakou/c3e4ff68abe0705caf6d8f6aa794b43c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cloning into 'yaroslav_kurapov'... | |
name: yaroslav_kurapov, master/478cbc8 @ 2021-03-11 21:54:37 +0000 | |
2021/03/14 01:08:28 config: tests/tomcat.yml | |
2021/03/14 01:08:28 verbosity: 2 | |
2021/03/14 01:08:28 ----------------------------------------------------------------------------------- | |
2021/03/14 01:08:28 Running '1.1 Tomcat', 1..16 tests | |
2021/03/14 01:08:28 ----------------------------------------------------------------------------------- | |
2021/03/14 01:08:33 ✓ [1.1 Tomcat] => playbook lint (ansible-lint) (1), 4.018s | |
2021/03/14 01:08:34 ✓ [1.1 Tomcat] => playbook syntax check (--syntax-check) (1), 714ms | |
2021/03/14 01:10:24 ✓ [1.1 Tomcat] => apply playbook (3), 1m49.525s | |
2021/03/14 01:10:24 ✓ [1.1 Tomcat] => service process should run after rollout (2), 207ms | |
2021/03/14 01:10:28 ✓ [1.1 Tomcat] => responds 200 (2), 1.339s | |
2021/03/14 01:10:53 ✓ [1.1 Tomcat] => idempotency check (3), 24.329s | |
2021/03/14 01:10:53 ✓ [1.1 Tomcat] => should run after 2nd apply (2), 194ms | |
2021/03/14 01:10:53 ✓ [1.1 Tomcat] => shouldn't restart (3), 219ms | |
2021/03/14 01:10:53 ✓ [1.1 Tomcat] => service is enabled (1), 161ms | |
2021/03/14 01:10:53 ✓ [1.1 Tomcat] => 'tomcat_user' variable set as required (1), 55ms | |
2021/03/14 01:10:53 ✓ [1.1 Tomcat] => 'tomcat_group' variable set as required (1), 58ms | |
2021/03/14 01:12:45 ✓ [1.1 Tomcat] => service is running under non-priviliged user as per tomcat_user/tomcat_group (1), 1m52.215s | |
2021/03/14 01:12:45 ✓ [1.1 Tomcat] => 'tomcat_url' variable set as required (1), 30ms | |
2021/03/14 01:12:46 ✓ [1.1 Tomcat] => 'tomcat_home' variable set as required (1), 57ms | |
2021/03/14 01:14:50 ✓ [1.1 Tomcat] => can install into different home (1), 2m4.751s | |
2021/03/14 01:16:43 ✓ [1.1 Tomcat] => can apply under non-root user (3), 1m53.01s | |
2021/03/14 01:16:44 ----------------------------------------------------------------------------------- | |
2021/03/14 01:16:44 Tests Summary: | |
2021/03/14 01:16:44 16 (of 16) tests passed, 0 tests failed; rated as 100.00% | |
2021/03/14 01:16:44 | |
2021/03/14 01:16:44 Time Spent: 8m16.447s | |
2021/03/14 01:16:44 ----------------------------------------------------------------------------------- | |
name: yaroslav_kurapov, master/478cbc8 @ 2021-03-11 21:54:37 +0000 | |
2021/03/14 01:16:44 config: tests/webapp.yml | |
2021/03/14 01:16:44 verbosity: 2 | |
2021/03/14 01:16:44 ----------------------------------------------------------------------------------- | |
2021/03/14 01:16:44 Running '1.2 WebApp', 1..21 tests | |
2021/03/14 01:16:44 ----------------------------------------------------------------------------------- | |
2021/03/14 01:16:50 ✓ [1.2 WebApp] => playbook lint (ansible-lint) (1), 3.997s | |
2021/03/14 01:16:51 ✓ [1.2 WebApp] => playbook syntax check (--syntax-check) (1), 700ms | |
2021/03/14 01:16:52 ✗ [1.2 WebApp] -> apply plybook | |
2021/03/14 01:16:52 Result: exit status 1 | |
2021/03/14 01:16:52 Output: | |
[1;35m[WARNING]: Could not match supplied host pattern, ignoring: webapp-server | |
(run, /tmp/students-1/yaroslav_kurapov/day1/1.2) => ansible-playbook webapp-server.yml -i web-server, -v | |
rc: 0 | |
output: | | |
[0;34mNo config file found; using defaults | |
PLAY [Installing Tomcat] ******************************************************* | |
[0;36mskipping: no hosts matched | |
PLAY RECAP ********************************************************************* | |
Stdout Assertion Failed (Partial, 'unreachable=0') | |
2021/03/14 01:16:52 ✗ [1.2 WebApp] -> 'webapp-server' is running | |
2021/03/14 01:16:52 Result: exit status 1 | |
2021/03/14 01:16:52 Output: | |
Unit webapp-server.service could not be found. | |
2021/03/14 01:16:52 ✗ [1.2 WebApp] -> service responds 200 | |
2021/03/14 01:16:52 Result: exit status 1 | |
2021/03/14 01:16:52 Output: | |
(run, /tmp/students-1/yaroslav_kurapov/day1/1.2) => docker exec web-server curl -sL -w %{http_code} localhost:8080 -o/dev/null | |
rc: 7 | |
output: '000' | |
Stdout Assertion Failed (Full mistmatch) | |
2021/03/14 01:16:53 ✗ [1.2 WebApp] -> playbook idempotency check | |
2021/03/14 01:16:53 Result: exit status 1 | |
2021/03/14 01:16:53 Output: | |
[1;35m[WARNING]: Could not match supplied host pattern, ignoring: webapp-server | |
(run, /tmp/students-1/yaroslav_kurapov/day1/1.2) => ansible-playbook webapp-server.yml -i web-server, -v | |
rc: 0 | |
output: | | |
[0;34mNo config file found; using defaults | |
PLAY [Installing Tomcat] ******************************************************* | |
[0;36mskipping: no hosts matched | |
PLAY RECAP ********************************************************************* | |
Stdout Assertion Failed (Partial, 'unreachable=0') | |
2021/03/14 01:16:53 ✗ [1.2 WebApp] -> service shouldn't restart | |
2021/03/14 01:16:53 Result: exit status 1 | |
2021/03/14 01:16:53 Output: | |
(run, /tmp/students-1/yaroslav_kurapov/day1/1.2) => docker exec web-server curl -s -f localhost:8080 | |
rc: 7 | |
output: '' | |
CMD Failed: docker exec web-server curl -s -f localhost:8080 | |
2021/03/14 01:16:54 ✗ [1.2 WebApp] -> service should run after 2nd apply | |
2021/03/14 01:16:54 Result: exit status 1 | |
2021/03/14 01:16:54 Output: | |
(run, /tmp/students-1/yaroslav_kurapov/day1/1.2) => docker exec web-server curl -s -f --connect-timeout 1 localhost:8080 | |
rc: 7 | |
output: '' | |
CMD Failed: docker exec web-server curl -s -f --connect-timeout 1 localhost:8080 | |
2021/03/14 01:16:54 ✗ [1.2 WebApp] -> service is enabled | |
2021/03/14 01:16:54 Result: exit status 1 | |
2021/03/14 01:16:54 Output: | |
Failed to get unit file state for webapp-server.service: No such file or directory | |
(run, /tmp/students-1/yaroslav_kurapov/day1/1.2) => docker exec web-server systemctl is-enabled webapp-server | |
rc: 1 | |
output: '' | |
Stdout Assertion Failed (Full mistmatch) | |
2021/03/14 01:16:55 ✗ [1.2 WebApp] -> can use 'student_first_name/student_last_name' variables | |
2021/03/14 01:16:55 Result: exit status 1 | |
2021/03/14 01:16:55 Output: | |
[1;35m[WARNING]: Could not match supplied host pattern, ignoring: webapp-server | |
(run, /tmp/students-1/yaroslav_kurapov/day1/1.2) => ansible-playbook webapp-server.yml -i web-server, -e student_first_name=Richard -e student_last_name=Caccamise | |
rc: 0 | |
output: | | |
PLAY [Installing Tomcat] ******************************************************* | |
[0;36mskipping: no hosts matched | |
PLAY RECAP ********************************************************************* | |
Stdout Assertion Failed (Partial, 'unreachable=0') | |
2021/03/14 01:16:55 ✗ [1.2 WebApp] -> can set custom port | |
2021/03/14 01:16:55 Result: exit status 1 | |
2021/03/14 01:16:55 Output: | |
grep: webapp-server.conf.j2: No such file or directory | |
Assertion Failed: '' == '' | |
2021/03/14 01:16:55 ✗ [1.2 WebApp] -> use 'checksum' when downloading WebApp binary (get_url) | |
2021/03/14 01:16:55 Result: exit status 1 | |
2021/03/14 01:16:55 Output: | |
2021/03/14 01:16:55 ✗ [1.2 WebApp] -> service is running under 'webapp-server:webapp-server' | |
2021/03/14 01:16:55 Result: exit status 1 | |
2021/03/14 01:16:55 Output: | |
Unit webapp-server.service could not be found. | |
2021/03/14 01:16:55 ✗ [1.2 WebApp] -> app/service user has no password set | |
2021/03/14 01:16:55 Result: exit status 1 | |
2021/03/14 01:16:55 Output: | |
(run, /tmp/students-1/yaroslav_kurapov/day1/1.2) => docker exec web-server cat /etc/shadow | |
rc: 0 | |
output: | | |
root:locked::0:99999:7::: | |
bin:*:17834:0:99999:7::: | |
daemon:*:17834:0:99999:7::: | |
adm:*:17834:0:99999:7::: | |
lp:*:17834:0:99999:7::: | |
sync:*:17834:0:99999:7::: | |
shutdown:*:17834:0:99999:7::: | |
halt:*:17834:0:99999:7::: | |
mail:*:17834:0:99999:7::: | |
operator:*:17834:0:99999:7::: | |
games:*:17834:0:99999:7::: | |
ftp:*:17834:0:99999:7::: | |
nobody:*:17834:0:99999:7::: | |
systemd-network:!!:17960:::::: | |
dbus:!!:17960:::::: | |
sshd:!!:18015:::::: | |
devops:$6$MwvRio2P$HnbdgpQFWeHvNwS70Oc2nJHwAs6wgTlVjjzMak9Tg4F0zgmxDMUwRKV1TaIukyfxQSzM/vWHjvBuV4H2n1gk/0:18019:0:99999:7::: | |
Stdout Assertion Failed (Regexp, 'webapp-server:!!:') | |
2021/03/14 01:16:55 ✗ [1.2 WebApp] -> playbook has no hardcoded 'webapp_user' | |
2021/03/14 01:16:55 Result: exit status 1 | |
2021/03/14 01:16:55 Output: | |
checking webapp-server.service.j2 | |
grep: webapp-server.service.j2: No such file or directory | |
2021/03/14 01:16:55 ✗ [1.2 WebApp] -> playbook has no hardcoded 'webapp_group' | |
2021/03/14 01:16:55 Result: exit status 1 | |
2021/03/14 01:16:55 Output: | |
checking webapp-server.service.j2 | |
grep: webapp-server.service.j2: No such file or directory | |
2021/03/14 01:16:57 ✗ [1.2 WebApp] -> can use 'webapp_user/webapp_group' variables | |
2021/03/14 01:16:57 Result: exit status 1 | |
2021/03/14 01:16:57 Output: | |
web-server | |
f46fc29dcf8bcc2293ab2a94219ca62640a5b187f513d0d61644b2e7832d74d1 | |
[1;35m[WARNING]: Could not match supplied host pattern, ignoring: webapp-server | |
(run, /tmp/students-1/yaroslav_kurapov/day1/1.2) => ansible-playbook webapp-server.yml -i web-server, -e webapp_user=webapp1user -e webapp_group=webapp1group | |
rc: 0 | |
output: | | |
PLAY [Installing Tomcat] ******************************************************* | |
[0;36mskipping: no hosts matched | |
PLAY RECAP ********************************************************************* | |
Stdout Assertion Failed (Partial, 'unreachable=0') | |
2021/03/14 01:16:59 ✗ [1.2 WebApp] -> can install into different home dir | |
2021/03/14 01:16:59 Result: exit status 1 | |
2021/03/14 01:16:59 Output: | |
web-server | |
fc35a8c51e50d525627ec63d241c69f180b0fd1f1e19490b9f009def4d783d49 | |
[1;35m[WARNING]: Could not match supplied host pattern, ignoring: webapp-server | |
(run, /tmp/students-1/yaroslav_kurapov/day1/1.2) => ansible-playbook webapp-server.yml -i web-server, -v -e webapp_home=/opt/webapp-test | |
rc: 0 | |
output: | | |
[0;34mNo config file found; using defaults | |
PLAY [Installing Tomcat] ******************************************************* | |
[0;36mskipping: no hosts matched | |
PLAY RECAP ********************************************************************* | |
Stdout Assertion Failed (Partial, 'failed=0') | |
2021/03/14 01:16:59 ✓ [1.2 WebApp] => can use different source url (1), 7ms | |
2021/03/14 01:17:01 ✗ [1.2 WebApp] -> can apply under non-root user | |
2021/03/14 01:17:01 Result: exit status 1 | |
2021/03/14 01:17:01 Output: | |
web-server | |
af0d00165341f59ca3321c7982765d57d9d55685a9422ed63686c6150a597b7e | |
[1;35m[WARNING]: Could not match supplied host pattern, ignoring: webapp-server | |
(run, /tmp/students-1/yaroslav_kurapov/day1/1.2) => ansible-playbook webapp-server.yml -i web-server, -v -u devops | |
rc: 0 | |
output: | | |
[0;34mNo config file found; using defaults | |
PLAY [Installing Tomcat] ******************************************************* | |
[0;36mskipping: no hosts matched | |
PLAY RECAP ********************************************************************* | |
Stdout Assertion Failed (Partial, 'failed=0') | |
2021/03/14 01:17:01 ✓ [1.2 WebApp] => playbook has 'handlers' (1), 7ms | |
2021/03/14 01:17:02 ----------------------------------------------------------------------------------- | |
2021/03/14 01:17:02 Tests Summary: | |
2021/03/14 01:17:02 4 (of 21) tests passed, 17 tests failed; rated as 14.81% | |
2021/03/14 01:17:02 | |
2021/03/14 01:17:02 Time Spent: 17.748s | |
2021/03/14 01:17:02 ----------------------------------------------------------------------------------- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment