Skip to content

Commit

Permalink
Merge pull request #13 from liangxiao1/xiliang
Browse files Browse the repository at this point in the history
bump to 0.3.0
  • Loading branch information
liangxiao1 committed Dec 12, 2023
2 parents 40f34df + ed2be74 commit dd54d60
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ami_val/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.2.7'
__version__ = '0.3.0'
9 changes: 7 additions & 2 deletions ami_val/tests/test_stage3.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ def test_stage3_check_selinux(test_instance):
'''
out = run_cmd(test_instance, 'uname -r', msg='get kernel version')
if 'SAP' in test_instance.info['name']:
# https://issues.redhat.com/browse/RHEL-11791
# selinux is disabled in sap RHEL-7
test_instance.log.info('SAP AMIs found')
run_cmd(test_instance, 'sudo getenforce',expect_kw='Permissive', msg='check selinux current mode is Permissive(rhbz1960628)')
run_cmd(test_instance, 'sudo cat /etc/sysconfig/selinux',expect_kw='SELINUX=permissive,SELINUXTYPE=targeted', msg='check selinux current setting')
if 'el7' in out:
run_cmd(test_instance, 'sudo cat /etc/sysconfig/selinux',expect_kw='SELINUX=disabled,SELINUXTYPE=targeted', msg='check selinux current setting: RHEL-11791')
else:
run_cmd(test_instance, 'sudo getenforce',expect_kw='Permissive', msg='check selinux current mode is Permissive(rhbz1960628)')
run_cmd(test_instance, 'sudo cat /etc/sysconfig/selinux',expect_kw='SELINUX=permissive,SELINUXTYPE=targeted', msg='check selinux current setting')
if 'el7' not in out and 'el6' not in out:
# el7 and el6 do not have setenforce installed by default, do not try to change its setting
run_cmd(test_instance, 'sudo setenforce Enforcing && getenforce',expect_kw='Enforcing', msg='try to change to enforcing mode')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
include_package_data=True,
#data_files=[('/'+os.path.expanduser("~"), ['cfg/os-tests.yaml']),],
install_requires=['PyYAML', 'tipset >= 0.0.12', 'filelock', 'awscli', 'boto3', 'paramiko-fork', 'Jinja2'],
install_requires=['PyYAML', 'tipset >= 0.0.12', 'filelock', 'awscli', 'boto3', 'paramiko', 'Jinja2'],
license="GPLv3+",
classifiers=[
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
Expand Down

0 comments on commit dd54d60

Please sign in to comment.