Skip to content

Commit

Permalink
Test different regenerate values with nonexistent keys
Browse files Browse the repository at this point in the history
This commit changes the test task that generates new keys to use each of
the different values for the `regenerate` argument, which will ensure
that the module is capable of generating a key when no previous key
exists regardless of the value of `regenerate`. Previously, the task
would always run with the `partial_idempotence` value, and that obscured
a bug (#597) that would occur when it was set to `fail`. The bug was
fixed in the previous commit.
  • Loading branch information
diazona committed May 1, 2023
1 parent 91d7fd7 commit 4577c21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trivial:
- "openssh_keypair - test creating new keys with all values of ``regenerate``"
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
type: rsa
size: 1024
backend: "{{ backend }}"
regenerate: "{{ item }}"
loop: "{{ regenerate_values }}"
- name: "({{ backend }}) Regenerate - setup password protected keys"
command: 'ssh-keygen -f {{ remote_tmp_dir }}/regenerate-b-{{ item }} -N {{ passphrase }}'
Expand Down

0 comments on commit 4577c21

Please sign in to comment.