Created
July 21, 2017 17:03
-
-
Save jbgo/58752844d80d4c09b6e327021569dacb to your computer and use it in GitHub Desktop.
test results
This file contains 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
[nadroj:/opt/ansible/test/runner (fix_ec2_group_rules)⚡] ➔ ./ansible-test integration ec2_group | |
Running ec2_group integration test role | |
[WARNING]: The `junit_xml` python module is not installed. Disabling the `junit` callback plugin. | |
PLAY [amazon] *********************************************************************************************************************************************************************** | |
TASK [Gathering Facts] ************************************************************************************************************************************************************** | |
ok: [localhost] | |
TASK [ec2_group : test failure with no parameters] ********************************************************************************************************************************** | |
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "one of the following is required: name,group_id"} | |
...ignoring | |
TASK [ec2_group : assert failure with no parameters] ******************************************************************************************************************************** | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test failure with only name] ************************************************************************************************************************************** | |
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Must provide description when state is present."} | |
...ignoring | |
TASK [ec2_group : assert failure with only name] ************************************************************************************************************************************ | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test failure with only description] ******************************************************************************************************************************* | |
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "one of the following is required: name,group_id"} | |
...ignoring | |
TASK [ec2_group : assert failure with only description] ***************************************************************************************************************************** | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test failure with empty description (AWS API requires non-empty string desc)] ************************************************************************************* | |
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Must provide description when state is present."} | |
...ignoring | |
TASK [ec2_group : assert failure with empty description] **************************************************************************************************************************** | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
**hTASK** [ec2_group : test valid region parameter] ************************************************************************************************************************************** | |
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NoCredentialsError: Unable to locate credentials | |
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Error in describe_security_groups: Unable to locate credentials"} | |
...ignoring | |
TASK [ec2_group : assert valid region parameter] ************************************************************************************************************************************ | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test environment variable EC2_REGION] ***************************************************************************************************************************** | |
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NoCredentialsError: Unable to locate credentials | |
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Error in describe_security_groups: Unable to locate credentials"} | |
...ignoring | |
TASK [ec2_group : assert environment variable EC2_REGION] *************************************************************************************************************************** | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test invalid ec2_url parameter] *********************************************************************************************************************************** | |
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "The AWS region must be specified as an environment variable or in the AWS credentials profile."} | |
...ignoring | |
TASK [ec2_group : assert invalid ec2_url parameter] ********************************************************************************************************************************* | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test valid ec2_url parameter] ************************************************************************************************************************************* | |
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "The AWS region must be specified as an environment variable or in the AWS credentials profile."} | |
...ignoring | |
TASK [ec2_group : assert valid ec2_url parameter] *********************************************************************************************************************************** | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test credentials from environment] ******************************************************************************************************************************** | |
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ClientError: An error occurred (AuthFailure) when calling the DescribeSecurityGroups operation: AWS was not able to validate the provided access credentials | |
fatal: [localhost]: FAILED! => {"changed": false, "error": {"code": "AuthFailure", "message": "AWS was not able to validate the provided access credentials"}, "failed": true, "msg": "Error in describe_security_groups: An error occurred (AuthFailure) when calling the DescribeSecurityGroups operation: AWS was not able to validate the provided access credentials", "response_metadata": {"http_headers": {"date": "Fri, 21 Jul 2017 16:49:12 GMT", "server": "AmazonEC2", "transfer-encoding": "chunked"}, "http_status_code": 401, "request_id": "4f8fff09-84d3-4cd4-8f73-e005b5f9a7db", "retry_attempts": 0}} | |
...ignoring | |
TASK [ec2_group : assert ec2_group with valid ec2_url] ****************************************************************************************************************************** | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test credential parameters] *************************************************************************************************************************************** | |
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ClientError: An error occurred (AuthFailure) when calling the DescribeSecurityGroups operation: AWS was not able to validate the provided access credentials | |
fatal: [localhost]: FAILED! => {"changed": false, "error": {"code": "AuthFailure", "message": "AWS was not able to validate the provided access credentials"}, "failed": true, "msg": "Error in describe_security_groups: An error occurred (AuthFailure) when calling the DescribeSecurityGroups operation: AWS was not able to validate the provided access credentials", "response_metadata": {"http_headers": {"date": "Fri, 21 Jul 2017 16:49:14 GMT", "server": "AmazonEC2", "transfer-encoding": "chunked"}, "http_status_code": 401, "request_id": "609e1a04-0ecd-44f6-8947-31744fe1f437", "retry_attempts": 0}} | |
...ignoring | |
TASK [ec2_group : assert credential parameters] ************************************************************************************************************************************* | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test state=absent] ************************************************************************************************************************************************ | |
ok: [localhost] | |
TASK [ec2_group : test state=present (expected changed=true)] *********************************************************************************************************************** | |
changed: [localhost] | |
TASK [ec2_group : assert state=present (expected changed=true)] ********************************************************************************************************************* | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test state=present different description raises error] ************************************************************************************************************ | |
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Group description does not match existing group. ec2_group does not support this case."} | |
...ignoring | |
TASK [ec2_group : assert matching group with non-matching description raises error] ************************************************************************************************* | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test state=present (expected changed=false)] ********************************************************************************************************************** | |
ok: [localhost] | |
TASK [ec2_group : assert state=present (expected changed=false)] ******************************************************************************************************************** | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test state=present for ipv6 (expected changed=true)] ************************************************************************************************************** | |
changed: [localhost] | |
TASK [ec2_group : assert state=present (expected changed=true)] ********************************************************************************************************************* | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test rules_egress state=present for ipv6 (expected changed=true)] ************************************************************************************************* | |
changed: [localhost] | |
TASK [ec2_group : assert state=present (expected changed=true)] ********************************************************************************************************************* | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test state=present for ipv4 (expected changed=true)] ************************************************************************************************************** | |
changed: [localhost] | |
TASK [ec2_group : assert state=present (expected changed=true)] ********************************************************************************************************************* | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : add same rule to the existing group (expected changed=false)] **************************************************************************************************** | |
ok: [localhost] | |
TASK [ec2_group : assert state=present (expected changed=false)] ******************************************************************************************************************** | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test ip rules convert port numbers from string to int (expected changed=true)] ************************************************************************************ | |
changed: [localhost] | |
TASK [ec2_group : assert state=present (expected changed=true)] ********************************************************************************************************************* | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test group rules convert port numbers from string to int (expected changed=true)] ********************************************************************************* | |
changed: [localhost] | |
TASK [ec2_group : assert state=present (expected changed=true)] ********************************************************************************************************************* | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test state=absent (expected changed=true)] ************************************************************************************************************************ | |
changed: [localhost] | |
TASK [ec2_group : assert state=absent (expected changed=true)] ********************************************************************************************************************** | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [ec2_group : test state=absent (expected changed=false)] *********************************************************************************************************************** | |
ok: [localhost] | |
TASK [ec2_group : assert state=absent (expected changed=false)] ********************************************************************************************************************* | |
ok: [localhost] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
PLAY RECAP ************************************************************************************************************************************************************************** | |
localhost : ok=44 changed=7 unreachable=0 failed=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment