Skip to content

Instantly share code, notes, and snippets.

@sbeliakou
Created March 14, 2021 05:27
Show Gist options
  • Save sbeliakou/044e7c1cec21929639da2140168b6df3 to your computer and use it in GitHub Desktop.
Save sbeliakou/044e7c1cec21929639da2140168b6df3 to your computer and use it in GitHub Desktop.
Cloning into 'aliaksandr_mukhitdzinau'...
name: aliaksandr_mukhitdzinau, master/888572a @ 2021-03-11 08:28:34 +0000
2021/03/14 05:25:45 config: tests/data-rendering.yml
2021/03/14 05:25:45 verbosity: 2
2021/03/14 05:25:45 -----------------------------------------------------------------------------------
2021/03/14 05:25:45 Running '3.1 Data Rendering', 1..4 tests
2021/03/14 05:25:45 -----------------------------------------------------------------------------------
2021/03/14 05:25:46 ✓ [3.1 Data Rendering] => 'data-rendering.yml' playbook syntax check (20), 839ms
2021/03/14 05:25:48 ✓ [3.1 Data Rendering] => playbook rollout - ccl team (50), 2.222s
2021/03/14 05:25:51 ✓ [3.1 Data Rendering] => playbook rollout - pgwy team (1), 2.87s
2021/03/14 05:25:53 ✓ [3.1 Data Rendering] => using loops (loop_control, loop_var, label) (1), 2.283s
2021/03/14 05:25:53 -----------------------------------------------------------------------------------
2021/03/14 05:25:53 Tests Summary:
2021/03/14 05:25:53 4 (of 4) tests passed, 0 tests failed; rated as 100.00%
2021/03/14 05:25:53
2021/03/14 05:25:53 Time Spent: 8.215s
2021/03/14 05:25:53 -----------------------------------------------------------------------------------
name: aliaksandr_mukhitdzinau, master/888572a @ 2021-03-11 08:28:34 +0000
2021/03/14 05:25:53 config: tests/filters.yml
2021/03/14 05:25:53 verbosity: 2
2021/03/14 05:25:53 -----------------------------------------------------------------------------------
2021/03/14 05:25:53 Running '3.1 Working with Filters', 1..3 tests
2021/03/14 05:25:53 -----------------------------------------------------------------------------------
2021/03/14 05:25:57 ✓ [3.1 Working with Filters] => 'filters.yml' playbook linter (1), 3.572s
2021/03/14 05:25:58 ✓ [3.1 Working with Filters] => 'filters.yml' playbook syntax check (1), 854ms
2021/03/14 05:26:01 ✓ [3.1 Working with Filters] => playbook rollout - ccl team (1), 3.232s
2021/03/14 05:26:01 -----------------------------------------------------------------------------------
2021/03/14 05:26:01 Tests Summary:
2021/03/14 05:26:01 3 (of 3) tests passed, 0 tests failed; rated as 100.00%
2021/03/14 05:26:01
2021/03/14 05:26:01 Time Spent: 7.66s
2021/03/14 05:26:01 -----------------------------------------------------------------------------------
name: aliaksandr_mukhitdzinau, master/888572a @ 2021-03-11 08:28:34 +0000
2021/03/14 05:26:01 config: tests/filter-tomcat_url.yml
2021/03/14 05:26:01 verbosity: 2
2021/03/14 05:26:01 -----------------------------------------------------------------------------------
2021/03/14 05:26:01 Running '3.2 Custom Filter "tomcat_url"', 1..4 tests
2021/03/14 05:26:01 -----------------------------------------------------------------------------------
2021/03/14 05:26:05 ✓ [3.2 Custom Filter "tomcat_url"] => testing environment is built (Dockerfile is ok) (1), 4.346s
2021/03/14 05:26:09 ✓ [3.2 Custom Filter "tomcat_url"] => get correct url for tomcat bin (9.0.27) (1), 3.312s
2021/03/14 05:26:11 ✓ [3.2 Custom Filter "tomcat_url"] => get correct url for tomcat bin (8.0.12) (1), 2.591s
2021/03/14 05:26:14 ✓ [3.2 Custom Filter "tomcat_url"] => get correct url for tomcat bin (random version) (1), 2.685s
2021/03/14 05:26:14 -----------------------------------------------------------------------------------
2021/03/14 05:26:14 Tests Summary:
2021/03/14 05:26:14 4 (of 4) tests passed, 0 tests failed; rated as 100.00%
2021/03/14 05:26:14
2021/03/14 05:26:14 Time Spent: 13.263s
2021/03/14 05:26:14 -----------------------------------------------------------------------------------
name: aliaksandr_mukhitdzinau, master/888572a @ 2021-03-11 08:28:34 +0000
2021/03/14 05:26:14 config: tests/filter-tomcat_checksum.yml
2021/03/14 05:26:14 verbosity: 2
2021/03/14 05:26:14 -----------------------------------------------------------------------------------
2021/03/14 05:26:14 Running '3.2 Custom Filter "tomcat_checksum"', 1..4 tests
2021/03/14 05:26:14 -----------------------------------------------------------------------------------
2021/03/14 05:26:18 ✓ [3.2 Custom Filter "tomcat_checksum"] => testing environment is built (Dockerfile is ok) (1), 4.039s
2021/03/14 05:26:22 ✓ [3.2 Custom Filter "tomcat_checksum"] => get tomcat v9.0.27 checksum (1), 4.104s
2021/03/14 05:26:26 ✓ [3.2 Custom Filter "tomcat_checksum"] => get tomcat v8.0.32 checksum (1), 3.189s
2021/03/14 05:26:28 ✓ [3.2 Custom Filter "tomcat_checksum"] => get tomcat v8.0.132 checksum (1), 2.793s
2021/03/14 05:26:29 -----------------------------------------------------------------------------------
2021/03/14 05:26:29 Tests Summary:
2021/03/14 05:26:29 4 (of 4) tests passed, 0 tests failed; rated as 100.00%
2021/03/14 05:26:29
2021/03/14 05:26:29 Time Spent: 14.448s
2021/03/14 05:26:29 -----------------------------------------------------------------------------------
name: aliaksandr_mukhitdzinau, master/888572a @ 2021-03-11 08:28:34 +0000
2021/03/14 05:26:29 config: tests/module-wget.yml
2021/03/14 05:26:29 verbosity: 2
2021/03/14 05:26:29 -----------------------------------------------------------------------------------
2021/03/14 05:26:29 Running '3.2 Custom module "wget"', 1..9 tests
2021/03/14 05:26:29 -----------------------------------------------------------------------------------
2021/03/14 05:26:50 ✓ [3.2 Custom module "wget"] => testing environment is built (Dockerfile is ok) (1), 21.214s
2021/03/14 05:26:58 ✓ [3.2 Custom module "wget"] => should download tomcat tar.gz by src url to dest folder (1), 7.992s
2021/03/14 05:27:01 ✓ [3.2 Custom module "wget"] => should recognize that current state is up to date (1), 3.485s
2021/03/14 05:27:05 ✗ [3.2 Custom module "wget"] -> should update existing file if it's is broken
2021/03/14 05:27:05 Result: exit status 1
2021/03/14 05:27:05 Output:
d3c26bf194af ansible-test "sleep infinity" 29 seconds ago Up 28 seconds test
(run, /tmp/students-3/aliaksandr_mukhitdzinau/day3/3.2) => ansible test -i test, -c docker -m wget -a "src=https://archive.apache.org/dist/tomcat/tomcat-8/v8.0.32/bin/apache-tomcat-8.0.32.tar.gz dest=/tmp/"
rc: 0
output: |
test | SUCCESS => {
 "ansible_facts": {
 "discovered_interpreter_python": "/usr/libexec/platform-python"
 },
 "changed": false,
 "chksum": null,
 "group": null,
 "mode": null,
 "owner": null,
 "src": null
}
Stdout Assertion Failed (Partial, '"changed": true')
2021/03/14 05:27:08 ✗ [3.2 Custom module "wget"] -> existing file doesn't correspond to provided chksum
2021/03/14 05:27:08 Result: exit status 1
2021/03/14 05:27:08 Output:
d3c26bf194af ansible-test "sleep infinity" 33 seconds ago Up 32 seconds test
(run, /tmp/students-3/aliaksandr_mukhitdzinau/day3/3.2) => ansible test -i test, -c docker -m wget -a "src=https://archive.apache.org/dist/tomcat/tomcat-8/v8.0.32/bin/apache-tomcat-8.0.32.tar.gz dest=/tmp/ chksum=md5:98e821d2755ae3f8e6d66536fcdaa1b0"
rc: 2
output: |
test | FAILED! => {
 "ansible_facts": {
 "discovered_interpreter_python": "/usr/libexec/platform-python"
 },
 "changed": false,
 "msg": "Checksums don't match!"
}
CMD Failed:
2021/03/14 05:27:12 ✓ [3.2 Custom module "wget"] => should change ownership if it's required (1), 3.603s
2021/03/14 05:27:15 ✓ [3.2 Custom module "wget"] => should fail on changing ownership to wrong user (1), 3.039s
2021/03/14 05:27:18 ✓ [3.2 Custom module "wget"] => should change access mode if it's required (1), 3.354s
2021/03/14 05:27:22 ✓ [3.2 Custom module "wget"] => should fail if downloaded file doesn't correspond to provided checksum (1), 4.038s
2021/03/14 05:27:22 -----------------------------------------------------------------------------------
2021/03/14 05:27:22 Tests Summary:
2021/03/14 05:27:22 7 (of 9) tests passed, 2 tests failed; rated as 77.78%
2021/03/14 05:27:22
2021/03/14 05:27:22 Time Spent: 53.728s
2021/03/14 05:27:22 -----------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment