Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[1LP][RFR] Check V2_key perms #5598

Merged
merged 4 commits into from
Oct 19, 2017
Merged

Conversation

OpCode1300
Copy link
Contributor

Adding tests for file permissions on appliance

@OpCode1300 OpCode1300 changed the title [WIP] Check V2_key perms [WIPTEST] Check V2_key perms Oct 13, 2017
@dajoRH dajoRH added WIP-testing and removed WIP labels Oct 13, 2017
@OpCode1300 OpCode1300 changed the title [WIPTEST] Check V2_key perms [RFR] Check V2_key perms Oct 13, 2017
@OpCode1300
Copy link
Contributor Author

The failure in 58z is expected as the change has not been back-ported.
https://bugzilla.redhat.com/show_bug.cgi?id=1489556

from cfme.utils import version


@pytest.mark.uncollectif(lambda: version.current_version() < '5.6', reason='Only valid for >5.7')
Copy link
Contributor

Choose a reason for hiding this comment

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

REQUIRED: This line can go, the framework is not valid for 5.6 and below

@pytest.mark.uncollectif(lambda: version.current_version() < '5.6', reason='Only valid for >5.7')
def test_v2_key_permissions(appliance):
"""Verifies that the v2_key has proper permissions"""
stdout = appliance.ssh_client.run_command(
Copy link
Contributor

Choose a reason for hiding this comment

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

You should be able to do

stdout = appliance.ssh_client.run_command(........).output
assert int(stdout) == 400

@psav psav changed the title [RFR] Check V2_key perms [WIP] Check V2_key perms Oct 13, 2017
Copy link
Contributor

@psav psav left a comment

Choose a reason for hiding this comment

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

Also, all tests should have a tier and a requirement

@dajoRH dajoRH added the WIP label Oct 13, 2017
@OpCode1300 OpCode1300 changed the title [WIP] Check V2_key perms [WIPTEST] Check V2_key perms Oct 13, 2017
@dajoRH dajoRH added WIP-testing and removed WIP labels Oct 13, 2017
@OpCode1300 OpCode1300 changed the title [WIPTEST] Check V2_key perms [RFR] Check V2_key perms Oct 16, 2017
@rlbabyuk rlbabyuk changed the title [RFR] Check V2_key perms [1LP][RFR] Check V2_key perms Oct 19, 2017
@mfalesni mfalesni merged commit 2773111 into ManageIQ:master Oct 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants