Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
8ca282e2
Commit
8ca282e2
authored
4 years ago
by
Rafael Guterres Jeffman
Browse files
Options
Downloads
Patches
Plain Diff
Modified and added tests to verify correct `salt` update behavior.
parent
4ef4e706
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/vault/test_vault_symmetric.yml
+31
-4
31 additions, 4 deletions
tests/vault/test_vault_symmetric.yml
with
31 additions
and
4 deletions
tests/vault/test_vault_symmetric.yml
+
31
−
4
View file @
8ca282e2
...
@@ -234,14 +234,41 @@
...
@@ -234,14 +234,41 @@
register
:
result
register
:
result
failed_when
:
not result.changed
failed_when
:
not result.changed
-
name
:
Try to change symmetric vault salt, without providing any password
ipavault
:
ipavault
:
ipaadmin_password
:
SomeADMINpassword
ipaadmin_password
:
SomeADMINpassword
name
:
inexistentvault
name
:
symvault
password
:
SomeVAULTpassword
salt
:
MTIzNDU2Nzg5MDEyMzQ1Ngo=
register
:
result
failed_when
:
not result.failed and "Vault `salt` can only change when changing the password." not in result.msg
-
name
:
Try to change symmetric vault salt, without providing `password`
ipavault
:
ipaadmin_password
:
SomeADMINpassword
name
:
symvault
salt
:
MTIzNDU2Nzg5MDEyMzQ1Ngo=
new_password
:
SomeVAULTpassword
new_password
:
SomeVAULTpassword
new_password_file
:
"
{{
ansible_env.HOME
}}/password.txt"
register
:
result
register
:
result
failed_when
:
not result.failed or "parameters are mutually exclusive" not in result.msg
failed_when
:
not result.failed and "Vault `salt` can only change when changing the password." not in result.msg
-
name
:
Try to change symmetric vault salt, without providing `new_password`
ipavault
:
ipaadmin_password
:
SomeADMINpassword
name
:
symvault
salt
:
MTIzNDU2Nzg5MDEyMzQ1Ngo=
password
:
SomeVAULTpassword
register
:
result
failed_when
:
not result.failed and "Vault `salt` can only change when changing the password." not in result.msg
-
name
:
Try to change symmetric vault salt, using wrong password.
ipavault
:
ipaadmin_password
:
SomeADMINpassword
name
:
symvault
password
:
SomeWRONGpassword
new_password
:
SomeWRONGpassword
salt
:
MDEyMzQ1Njc4OTAxMjM0NQo=
register
:
result
failed_when
:
not result.failed
-
name
:
Ensure symmetric vault is absent
-
name
:
Ensure symmetric vault is absent
ipavault
:
ipavault
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment