Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial integration tests for ec2_vpc_dhcp_option #224

Merged
merged 5 commits into from
Jan 18, 2021

Conversation

jillr
Copy link
Contributor

@jillr jillr commented Jan 4, 2021

SUMMARY

Based on work started by s-hertel in #109

ISSUE TYPE
  • New Tests Pull Request
COMPONENT NAME

ec2_vpc_dhcp_option

ADDITIONAL INFORMATION

@jillr
Copy link
Contributor Author

jillr commented Jan 4, 2021

@s-hertel I opened a new PR for this one so you don't have to keep track of merging my changes into your branch as we iterate, let me know if you'd prefer to keep this work in 109!

@jillr jillr requested review from goneri and tremble January 5, 2021 16:12
# FIXME: module/aws randomly returns as a string or list
- dhcp_options.new_options['netbios-node-type'] in ['2', ['2']]
# found I think is false, because the options are different and no id is provided?
- dhcp_options.new_options['domain-name'] == "{{ aws_domain_name }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dhcp_options.new_options['domain-name'] is a list. This is probably the reason why the test fail here. Is this expected?

Copy link
Member

@goneri goneri Jan 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It depends. :) Thanks, I thought I caught all of these.

…ist or string,

those from _info module are reliable.
@jillr
Copy link
Contributor Author

jillr commented Jan 6, 2021

Something is intermittently misbehaving when setting tags, I haven't been able to reproduce it locally yet but it's causing the unstable tests. Will have to dig into this more.

@tremble
Copy link
Contributor

tremble commented Jan 7, 2021

@jillr Given that this is likely the module being unstable rather than the tests being flaky I'd suggest we merge these tests so we have tests for the boto2 based behaviour, and look to move this module over to boto3.

Alternatively you may find that if you pass the ID of the options when setting the tags it's more stable than a 'search' based run.

@jillr jillr requested a review from tremble January 12, 2021 21:52
@ansibullbot
Copy link

@ansibullbot ansibullbot added community_review integration tests/integration plugins plugin (any type) tests tests labels Jan 13, 2021
Copy link
Contributor

@tremble tremble left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're good with these as a starting point. My eyes are glazing over so I'd appreciate if @goneri could take another look too.

Copy link
Member

@goneri goneri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me, I will address the tag problem in another PR.

@goneri goneri merged commit cbcec28 into ansible-collections:main Jan 18, 2021
@jillr jillr deleted the ec2_vpc_dhcp_option_tests branch July 2, 2021 22:48
alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 22, 2022
…ctions#224)

* Port rds_subnet_group to boto3
* Linting fixes
* Add more meaningful error messages, add changelog fragment
* Remove test on mandatory args for state absent

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@c19d479
goneri pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 23, 2022
…ctions#224)

* Port rds_subnet_group to boto3
* Linting fixes
* Add more meaningful error messages, add changelog fragment
* Remove test on mandatory args for state absent

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@c19d479
goneri pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 23, 2022
…ctions#224)

* Port rds_subnet_group to boto3
* Linting fixes
* Add more meaningful error messages, add changelog fragment
* Remove test on mandatory args for state absent

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@c19d479
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
…ctions#224)

* Port rds_subnet_group to boto3
* Linting fixes
* Add more meaningful error messages, add changelog fragment
* Remove test on mandatory args for state absent
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
…ctions#224)

* Port rds_subnet_group to boto3
* Linting fixes
* Add more meaningful error messages, add changelog fragment
* Remove test on mandatory args for state absent
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Oct 24, 2023
…ctions#224)

* Port rds_subnet_group to boto3
* Linting fixes
* Add more meaningful error messages, add changelog fragment
* Remove test on mandatory args for state absent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community_review integration tests/integration plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants