-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue regarding the access to user namespaces
- Loading branch information
Hervé Quatremain
committed
Nov 24, 2024
1 parent
5a97e57
commit 04c5f22
Showing
11 changed files
with
218 additions
and
18 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
namespace: infra | ||
name: quay_configuration | ||
version: 2.4.0 | ||
version: 2.5.0 | ||
readme: README.md | ||
authors: | ||
- Hervé Quatremain <[email protected]> | ||
|
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
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
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 |
---|---|---|
|
@@ -114,7 +114,7 @@ | |
that: result['changed'] | ||
fail_msg: The preceding task should have deleted the user account | ||
|
||
- name: Ensure user lvasquez does not exist (check mode) | ||
- name: Ensure user lvasquez does not exist | ||
infra.quay_configuration.quay_user: | ||
username: lvasquez | ||
email: [email protected] | ||
|
@@ -128,4 +128,68 @@ | |
ansible.builtin.assert: | ||
that: result['changed'] | ||
fail_msg: The preceding task should have deleted the user account | ||
|
||
# Expected errors | ||
- name: ERROR EXPECTED Ensure the user exists (host does not exist) | ||
infra.quay_configuration.quay_user: | ||
username: lvasquez | ||
email: [email protected] | ||
state: present | ||
quay_host: http://doesnotexists.local | ||
quay_token: "{{ quay_token }}" | ||
validate_certs: false | ||
ignore_errors: true | ||
register: result | ||
|
||
- name: Ensure that the task failed (host does not exist) | ||
ansible.builtin.assert: | ||
that: result['failed'] | ||
fail_msg: The preceding task should have failed (host does not exist) | ||
|
||
- name: ERROR EXPECTED Ensure the user exists (cannot connect) | ||
infra.quay_configuration.quay_user: | ||
username: lvasquez | ||
email: [email protected] | ||
state: present | ||
quay_host: https://locahost:12345 | ||
quay_token: "{{ quay_token }}" | ||
validate_certs: false | ||
ignore_errors: true | ||
register: result | ||
|
||
- name: Ensure that the task failed (cannot connect to the API) | ||
ansible.builtin.assert: | ||
that: result['failed'] | ||
fail_msg: The preceding task should have failed (cannot connect) | ||
|
||
- name: ERROR EXPECTED Ensure the user exists (SSL validation) | ||
infra.quay_configuration.quay_user: | ||
username: lvasquez | ||
email: [email protected] | ||
state: present | ||
quay_host: "{{ quay_host }}" | ||
quay_token: "{{ quay_token }}" | ||
ignore_errors: true | ||
register: result | ||
|
||
- name: Ensure that the task failed (SSL validation) | ||
ansible.builtin.assert: | ||
that: result['failed'] | ||
fail_msg: The preceding task should have failed (SSL validation) | ||
|
||
- name: ERROR EXPECTED Ensure the user exists (credentials) | ||
infra.quay_configuration.quay_user: | ||
username: lvasquez | ||
email: [email protected] | ||
state: present | ||
quay_host: "{{ quay_host }}" | ||
quay_token: "AABBCCDDEEFFGGHH" | ||
validate_certs: false | ||
ignore_errors: true | ||
register: result | ||
|
||
- name: Ensure that the task failed (wrong credentials) | ||
ansible.builtin.assert: | ||
that: result['failed'] | ||
fail_msg: The preceding task should have failed (wrong credentials) | ||
... |
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
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