-
Notifications
You must be signed in to change notification settings - Fork 252
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
Stig ipa #7070
Closed
Closed
Stig ipa #7070
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ def ipa_subid_find(multihost): | |
@pytest.mark.usefixtures('environment_setup', | ||
'subid_generate', | ||
'bkp_cnfig_for_subid_files') | ||
@pytest.mark.tier1 | ||
@pytest.mark.tier4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just for testing, will update once changes in test looks good. |
||
class TestSubid(object): | ||
""" | ||
This is for ipa bugs automation | ||
|
@@ -60,13 +60,20 @@ def test_podmanmap_feature(multihost): | |
2. Should succeed | ||
""" | ||
ipa_subid_find(multihost) | ||
multihost.client[0].run_command(f'su - admin -c "rm -rf /home/admin/.local/share/containers"', raiseonerr=False) | ||
multihost.client[0].run_command(f"podman system migrate", raiseonerr=False) | ||
multihost.client[0].run_command(f"sysctl user.max_user_namespaces=15000", raiseonerr=False) | ||
map1 = "/proc/self/uid_map" | ||
cmd = multihost.client[0].run_command( | ||
f'su - {USER} -c "podman unshare cat {map1}"', raiseonerr=False) | ||
actual_result = cmd.stdout_text.splitlines() | ||
|
||
assert str(uid_start) == actual_result[1].split()[1] | ||
assert str(uid_range) == actual_result[1].split()[2] | ||
#enable_lin = actual_result[0].split()[1] | ||
multihost.client[0].run_command(f'su - admin -c "rm -rf /home/admin/.local/share/containers"', raiseonerr=False) | ||
multihost.client[0].run_command(f"podman system migrate", raiseonerr=False) | ||
multihost.client[0].run_command(f"loginctl enable-linger {actual_result[0].split()[1]}", raiseonerr=False) | ||
map2 = "/proc/self/gid_map" | ||
cmd = multihost.client[0].run_command( | ||
f'su - {USER} -c "podman unshare cat {map2}"', raiseonerr=False) | ||
|
@@ -156,3 +163,4 @@ def test_list_subid_ranges(multihost): | |
assert str(USER) == cmd.stdout_text.split()[1] | ||
assert str(gid_start) == cmd.stdout_text.split()[2] | ||
assert str(gid_range) == cmd.stdout_text.split()[3] | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / CodeQL
Commented-out code Note test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was it here and why is it being removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why it was here.
I removed for two reasons:
If we need to add them better we add with regex but not with
grep command
.