Compare commits

...

6 commits

Author SHA1 Message Date
atom4git
ce7793f820
Merge aca116d989 into bda85b7453 2024-03-26 15:26:48 +09:00
softwarefactory-project-zuul[bot]
bda85b7453
Merge pull request #541 from saito-hideki/pr/replace_yield
[CI] Replaced yield with yield from for sanity test

SUMMARY
Replaced yield with yield from to address latest sanity test.
ISSUE TYPE

CI Tests Pull Request

COMPONENT NAME

ansible.posix

ADDITIONAL INFORMATION
None
2024-03-26 05:51:09 +00:00
Hideki Saito
ac82f575c6 Replaced yield with yield from to address latest sanity test
Signed-off-by: Hideki Saito <saito@fgrep.org>
2024-03-26 13:54:40 +09:00
softwarefactory-project-zuul[bot]
a356bdd3c4
Merge pull request #540 from saito-hideki/pr/relace_old_fqcn_selogin
[CI] Replaced old selogin FQCN for integration tests

SUMMARY
Some integration test tasks used the old FQCNs of commuinity.general.
This PR will replace old FQCN(community.general.system.selogin)with new cummonity.general.selogin
ISSUE TYPE

CI Tests Pull Request

COMPONENT NAME

ansible.posix.selinux

ADDITIONAL INFORMATION
None
2024-03-26 02:59:55 +00:00
Hideki Saito
4f93234a8b Replaced old selogin FQCN
- FCQN has been changed since comunity.general stable-6

Signed-off-by: Hideki Saito <saito@fgrep.org>
2024-03-26 10:39:34 +09:00
Sergey
aca116d989 Docs/authorized_key: clarify that the path key should probably NOT be set 2023-09-07 11:26:22 -04:00
3 changed files with 10 additions and 10 deletions

View file

@ -28,8 +28,10 @@ options:
required: true required: true
path: path:
description: description:
- Alternate path to the authorized_keys file. - Alternative path to the authorized_keys file.
- When unset, this value defaults to I(~/.ssh/authorized_keys). - The default value is the C(.ssh/authorized_keys) of the home of the user specified in the P(user) parameter.
- Most of the time, it's not necessary to set this key.
- Use the path to your target authorized_keys if you need to explicitly point on it.
type: path type: path
manage_dir: manage_dir:
description: description:

View file

@ -5,7 +5,7 @@
- name: Attempt to add mapping without 'seuser' - name: Attempt to add mapping without 'seuser'
register: selogin_error register: selogin_error
ignore_errors: true ignore_errors: true
community.general.system.selogin: community.general.selogin:
login: seuser login: seuser
- name: Verify failure - name: Verify failure
ansible.builtin.assert: ansible.builtin.assert:
@ -19,7 +19,7 @@
- false - false
- true - true
- false - false
community.general.system.selogin: community.general.selogin:
login: seuser login: seuser
seuser: staff_u seuser: staff_u
- name: New mapping- verify functionality and check_mode - name: New mapping- verify functionality and check_mode
@ -37,7 +37,7 @@
- false - false
- true - true
- false - false
community.general.system.selogin: community.general.selogin:
login: seuser login: seuser
seuser: user_u seuser: user_u
- name: Changed mapping- verify functionality and check_mode - name: Changed mapping- verify functionality and check_mode
@ -55,7 +55,7 @@
- false - false
- true - true
- false - false
community.general.system.selogin: community.general.selogin:
login: seuser login: seuser
state: absent state: absent
- name: Delete mapping- verify functionality and check_mode - name: Delete mapping- verify functionality and check_mode

View file

@ -64,8 +64,7 @@ if sys.version_info >= (3,) and sys.version_info < (3, 4, 4):
# newline that our naive format() added # newline that our naive format() added
data_as_list[-1] = data_as_list[-1][:-1] data_as_list[-1] = data_as_list[-1][:-1]
for line in data_as_list: yield from data_as_list
yield line
def mock_open(mock=None, read_data=''): def mock_open(mock=None, read_data=''):
""" """
@ -93,8 +92,7 @@ if sys.version_info >= (3,) and sys.version_info < (3, 4, 4):
if handle.readline.return_value is not None: if handle.readline.return_value is not None:
while True: while True:
yield handle.readline.return_value yield handle.readline.return_value
for line in _data: yield from _data
yield line
global file_spec global file_spec
if file_spec is None: if file_spec is None: