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

Add a test to assert on /etc/machine-id permissions for AWS #266

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

atodorov
Copy link
Contributor

@atodorov atodorov commented Aug 9, 2023

Related: RHBZ #2221269

@atodorov atodorov requested a review from narmaku August 9, 2023 07:44
@atodorov
Copy link
Contributor Author

atodorov commented Aug 9, 2023

@narmaku can you tag a new container version once this is approved and merged ? See https://bugzilla.redhat.com/show_bug.cgi?id=2221269#c6

Copy link
Collaborator

@narmaku narmaku left a comment

Choose a reason for hiding this comment

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

Let's use testinfra modules for this. It's the pytest library we use to run tests in remote hosts. Let me know if you need help with that.

test_suite/cloud/test_aws.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@narmaku narmaku left a comment

Choose a reason for hiding this comment

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

Please see my comments in last review. Thanks!

@atodorov atodorov force-pushed the assert_on_machine-id branch 3 times, most recently from 93c277a to f7b5bdd Compare August 10, 2023 13:07
@@ -29,6 +29,15 @@ def instance_data_aws_cli(host, instance_data_aws_web):

@pytest.mark.order(2)
class TestsAWS:
@pytest.mark.pub
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we need to remove this marker since if the change will be present during the builds done by Image Builder, the test should be run.

This marker is used to skip the test case in case what's going to be tested only applies to images that are about to be published, or already published (e.g. Bath/Update ad GA image validations). Examples of "pub" test cases are the ones related to rhui.

Copy link
Collaborator

@narmaku narmaku left a comment

Choose a reason for hiding this comment

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

LGTM!

@narmaku narmaku merged commit 7d54b0d into main Aug 11, 2023
1 check passed
atodorov added a commit to atodorov/osbuild-composer that referenced this pull request Aug 14, 2023
in order to exercise test for RHBZ#2221269. See:
osbuild/cloud-image-val#266
atodorov added a commit to atodorov/osbuild-composer that referenced this pull request Aug 14, 2023
in order to exercise test for RHBZ#2221269. See:
osbuild/cloud-image-val#266

NOTE: changing more than necessary in order to satisfy CI tools
@narmaku narmaku deleted the assert_on_machine-id branch April 18, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants