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

cloudwatchlogs_log_group - Tagging support #1233

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Jun 9, 2022

SUMMARY
  • Ensure cloudwatchlogs_log_group returns values defined in RETURN docs
  • Add support for updating tags (including purge_tags)
  • split cloudwatchlogs_log_group tests
  • Add some basic integration tests for cloudwatchlogs_log_group_info
ISSUE TYPE
  • Bugfix Pull Request
  • Feature Pull Request
COMPONENT NAME

cloudwatchlogs_log_group
cloudwatchlogs_log_group_info

ADDITIONAL INFORMATION

@ansibullbot
Copy link

@ansibullbot ansibullbot added WIP Work in progress bug This issue/PR relates to a bug integration tests/integration module module needs_triage plugins plugin (any type) tests tests labels Jun 9, 2022
@github-actions
Copy link

github-actions bot commented Jun 9, 2022

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

@softwarefactory-project-zuul

This comment was marked as outdated.

@gravesm
Copy link
Member

gravesm commented Jun 10, 2022

recheck

@softwarefactory-project-zuul

This comment was marked as resolved.

@tremble tremble force-pushed the tagging/purge_tags/cloudwatchlogs_log_group branch from 1a2d4b2 to 258f4d5 Compare June 10, 2022 15:12
@softwarefactory-project-zuul

This comment was marked as resolved.

@tremble tremble changed the title [WIP] cloudwatchlogs_log_group - Tagging support cloudwatchlogs_log_group - Tagging support Jun 10, 2022
@ansibullbot ansibullbot added community_review and removed WIP Work in progress labels Jun 10, 2022
@tremble tremble force-pushed the tagging/purge_tags/cloudwatchlogs_log_group branch from 258f4d5 to 94f60b2 Compare June 10, 2022 15:51
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

ansible-galaxy-importer FAILURE in 4m 25s (non-voting)
✔️ build-ansible-collection SUCCESS in 4m 43s
✔️ ansible-test-sanity-docker-devel SUCCESS in 10m 28s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 10m 16s
✔️ ansible-test-sanity-docker-stable-2.9 SUCCESS in 12m 43s
✔️ ansible-test-sanity-docker-stable-2.11 SUCCESS in 11m 36s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 10m 15s
✔️ ansible-test-units-community-aws-python38 SUCCESS in 5m 49s
✔️ ansible-test-units-community-aws-python39 SUCCESS in 5m 58s
✔️ ansible-test-splitter SUCCESS in 2m 26s
✔️ integration-community.aws-1 SUCCESS in 5m 45s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED

Copy link
Contributor

@jatorcasso jatorcasso left a comment

Choose a reason for hiding this comment

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

Left some comments - also saw check_mode isnt implemented correctly. I can add an issue & PR for that if you're not already working on it

plugins/modules/cloudwatchlogs_log_group.py Outdated Show resolved Hide resolved
plugins/modules/cloudwatchlogs_log_group.py Outdated Show resolved Hide resolved
plugins/modules/cloudwatchlogs_log_group.py Show resolved Hide resolved
plugins/modules/cloudwatchlogs_log_group.py Show resolved Hide resolved
return dict(log_groups=[log_group], **log_group)


def ensure_tags(client, found_log_group, desired_tags, purge_tags, module):
Copy link
Contributor

Choose a reason for hiding this comment

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

we could probably change the params here to (client, log_group_name, current_tags, desired_tags, purge_tags, module) to avoid passing in the entire found_log_group when we dont need it, but thats probably a preference thing. just a thought

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not bothered either way.

@softwarefactory-project-zuul

This comment was marked as resolved.

Co-authored-by: Joseph Torcasso <87090265+jatorcasso@users.noreply.github.com>
@tremble tremble force-pushed the tagging/purge_tags/cloudwatchlogs_log_group branch from 41a8c2e to 894f21d Compare June 10, 2022 19:49
@tremble
Copy link
Contributor Author

tremble commented Jun 10, 2022

Re check mode, my thought was deal with it later, wanted to try and get this tagging cleanup in place for 4.0.0

A general cleanup of check mode's probably going to be a sizable chunk of work. There's around 50 modules missing support.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

ansible-galaxy-importer FAILURE in 4m 01s (non-voting)
✔️ build-ansible-collection SUCCESS in 4m 42s
✔️ ansible-test-sanity-docker-devel SUCCESS in 11m 04s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 11m 04s
✔️ ansible-test-sanity-docker-stable-2.9 SUCCESS in 13m 00s
✔️ ansible-test-sanity-docker-stable-2.11 SUCCESS in 10m 48s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 10m 34s
✔️ ansible-test-units-community-aws-python38 SUCCESS in 6m 05s
✔️ ansible-test-units-community-aws-python39 SUCCESS in 6m 06s
✔️ ansible-test-splitter SUCCESS in 2m 22s
✔️ integration-community.aws-1 SUCCESS in 5m 55s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED

@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Jun 11, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

ansible-galaxy-importer FAILURE in 5m 37s (non-voting)
✔️ build-ansible-collection SUCCESS in 5m 52s
✔️ ansible-test-sanity-docker-devel SUCCESS in 8m 56s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 9m 31s
✔️ ansible-test-sanity-docker-stable-2.9 SUCCESS in 11m 47s
✔️ ansible-test-sanity-docker-stable-2.11 SUCCESS in 10m 55s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 10m 34s
✔️ ansible-test-units-community-aws-python38 SUCCESS in 6m 44s
✔️ ansible-test-units-community-aws-python39 SUCCESS in 5m 47s
✔️ ansible-test-splitter SUCCESS in 2m 44s
✔️ integration-community.aws-1 SUCCESS in 5m 50s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 3f8d2fc into ansible-collections:main Jun 11, 2022
@tremble tremble deleted the tagging/purge_tags/cloudwatchlogs_log_group branch July 7, 2022 19:23
abikouo pushed a commit to abikouo/community.aws that referenced this pull request Oct 24, 2023
cloudwatchlogs_log_group - Tagging support

SUMMARY

Ensure cloudwatchlogs_log_group returns values defined in RETURN docs
Add support for updating tags (including purge_tags)
split cloudwatchlogs_log_group tests
Add some basic integration tests for cloudwatchlogs_log_group_info

ISSUE TYPE

Bugfix Pull Request
Feature Pull Request

COMPONENT NAME
cloudwatchlogs_log_group
cloudwatchlogs_log_group_info
ADDITIONAL INFORMATION

Reviewed-by: Joseph Torcasso <None>
Reviewed-by: Mark Chappell <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections@3f8d2fc
abikouo pushed a commit to abikouo/community.aws that referenced this pull request Oct 24, 2023
rds/tests: use aurora2 cluster by default

Aurora1 (provisioned and serverless) which comes with MySQL 5.6 will be soon deprecated by AWS.
See: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.MySQL56.EOL.html
This commit also reverses change 8e7ac73.
Closes: ansible-collections#1228

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Mark Chappell <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug community_review integration tests/integration mergeit Merge the PR (SoftwareFactory) module module needs_triage plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants