aws-cloudformation / aws-cloudformation-resource-providers-codeartifact

The CloudFormation Resource Provider Package for the AWS CodeArtifact service
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_CodeArtifact.html
Apache License 2.0
27 stars 7 forks source link

Fixing contract tests for version 1.0.11 #51

Closed jonjara closed 3 years ago

jonjara commented 3 years ago

Issue #, if available:

Description of changes: Updating for 1.0.11 of cloudformation-cli and 2.02 of cloudformation-cli-java-plugin

Testing

============================================================================================================== test session starts ===============================================================================================================
platform darwin -- Python 3.7.8, pytest-6.1.0, py-1.9.0, pluggy-0.13.1 -- /usr/local/opt/python@3.7/bin/python3.7
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/Volumes/Unix/workplace/aws-cloudformation-resource-providers-codeartifact/aws-codeartifact-repository/.hypothesis/examples')
Test order randomisation NOT enabled. Enable with --random-order or --random-order-bucket=<bucket_type>
rootdir: /Volumes/Unix/workplace/aws-cloudformation-resource-providers-codeartifact/aws-codeartifact-repository, configfile: ../../../../../private/var/folders/n_/7tmz09ds2gv06hqgr5ry6sr8n8z_lw/T/pytest_78pxge76.ini
plugins: hypothesis-5.36.2, localserver-0.5.0, random-order-1.0.4
collected 16 items

handler_create.py::contract_create_delete PASSED                                                                                                                                                                                           [  6%]
handler_create.py::contract_invalid_create PASSED                                                                                                                                                                                          [ 12%]
handler_create.py::contract_create_duplicate SKIPPED                                                                                                                                                                                       [ 18%]
handler_create.py::contract_create_read_success PASSED                                                                                                                                                                                     [ 25%]
handler_create.py::contract_create_list_success PASSED                                                                                                                                                                                     [ 31%]
handler_delete.py::contract_delete_read PASSED                                                                                                                                                                                             [ 37%]
handler_delete.py::contract_delete_list PASSED                                                                                                                                                                                             [ 43%]
handler_delete.py::contract_delete_update PASSED                                                                                                                                                                                           [ 50%]
handler_delete.py::contract_delete_delete PASSED                                                                                                                                                                                           [ 56%]
handler_delete.py::contract_delete_create SKIPPED                                                                                                                                                                                          [ 62%]
handler_misc.py::contract_check_asserts_work PASSED                                                                                                                                                                                        [ 68%]
handler_read.py::contract_read_without_create PASSED                                                                                                                                                                                       [ 75%]
handler_update.py::contract_update_read_success PASSED                                                                                                                                                                                     [ 81%]
handler_update.py::contract_update_list_success PASSED                                                                                                                                                                                     [ 87%]
handler_update_invalid.py::contract_update_create_only_property PASSED                                                                                                                                                                     [ 93%]
handler_update_invalid.py::contract_update_non_existent_resource PASSED                                                                                                                                                                    [100%]

aws-codeartifact-domain

============================================================================================================== test session starts ===============================================================================================================
platform darwin -- Python 3.7.8, pytest-6.1.0, py-1.9.0, pluggy-0.13.1 -- /usr/local/opt/python@3.7/bin/python3.7
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/Volumes/Unix/workplace/aws-cloudformation-resource-providers-codeartifact/aws-codeartifact-domain/.hypothesis/examples')
Test order randomisation NOT enabled. Enable with --random-order or --random-order-bucket=<bucket_type>
rootdir: /Volumes/Unix/workplace/aws-cloudformation-resource-providers-codeartifact/aws-codeartifact-domain, configfile: ../../../../../private/var/folders/n_/7tmz09ds2gv06hqgr5ry6sr8n8z_lw/T/pytest_fo_rg358.ini
plugins: hypothesis-5.36.2, localserver-0.5.0, random-order-1.0.4
collected 16 items

handler_create.py::contract_create_delete PASSED                                                                                                                                                                                           [  6%]
handler_create.py::contract_invalid_create PASSED                                                                                                                                                                                          [ 12%]
handler_create.py::contract_create_duplicate SKIPPED                                                                                                                                                                                       [ 18%]
handler_create.py::contract_create_read_success PASSED                                                                                                                                                                                     [ 25%]
handler_create.py::contract_create_list_success PASSED                                                                                                                                                                                     [ 31%]
handler_delete.py::contract_delete_read PASSED                                                                                                                                                                                             [ 37%]
handler_delete.py::contract_delete_list PASSED                                                                                                                                                                                             [ 43%]
handler_delete.py::contract_delete_update PASSED                                                                                                                                                                                           [ 50%]
handler_delete.py::contract_delete_delete PASSED                                                                                                                                                                                           [ 56%]
handler_delete.py::contract_delete_create SKIPPED                                                                                                                                                                                          [ 62%]
handler_misc.py::contract_check_asserts_work PASSED                                                                                                                                                                                        [ 68%]
handler_read.py::contract_read_without_create PASSED                                                                                                                                                                                       [ 75%]
handler_update.py::contract_update_read_success PASSED                                                                                                                                                                                     [ 81%]
handler_update.py::contract_update_list_success PASSED                                                                                                                                                                                     [ 87%]
handler_update_invalid.py::contract_update_create_only_property PASSED                                                                                                                                                                     [ 93%]
handler_update_invalid.py::contract_update_non_existent_resource PASSED                                                                                                                                                                    [100%]

=================================================================================================== 14 passed, 2 skipped in 1020.33s (0:17:00) ===================================================================================================
➜  aws-codeartifact-domain git:(prop-2) ✗ pip3 freeze | grep cloudformation
cloudformation-cli==0.1.11
cloudformation-cli-go-plugin==2.0.0
cloudformation-cli-java-plugin==2.0.2
cloudformation-cli-python-plugin==2.1.0

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.