Skip to content

Commit

Permalink
pam/integration-tests/ssh: Run tests with noble SSH server and sync g…
Browse files Browse the repository at this point in the history
…olden
  • Loading branch information
3v1n0 committed Nov 18, 2024
1 parent da0fa46 commit d4948a4
Show file tree
Hide file tree
Showing 45 changed files with 4,483 additions and 4,573 deletions.
2 changes: 1 addition & 1 deletion pam/integration-tests/ssh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func testSSHAuthenticate(t *testing.T, sharedSSHd bool) {
t.Skip("Skipping tests with external dependencies as requested")
}

if uv := getUbuntuVersion(t); uv == 0 || uv >= 2404 {
if uv := getUbuntuVersion(t); uv == 0 || uv < 2404 {
require.Empty(t, os.Getenv("GITHUB_REPOSITORY"),
"Golden files needs to be updated to ensure CI runs on Ubuntu %v")
t.Skipf("Skipping SSH tests since they require new golden files for Ubuntu %v", uv)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,101 +1,101 @@
> ssh ${AUTHD_PAM_SSH_USER}@localhost ${AUTHD_PAM_SSH_ARGS}
(user-can-reset2@localhost) == Provider selection ==
== Provider selection ==
1. local
2. ExampleBroker
Choose your provider:
(user-can-reset2@localhost) Choose your provider:
>
────────────────────────────────────────────────────────────────────────────────
> ssh ${AUTHD_PAM_SSH_USER}@localhost ${AUTHD_PAM_SSH_ARGS}
(user-can-reset2@localhost) == Provider selection ==
== Provider selection ==
1. local
2. ExampleBroker
Choose your provider:
(user-can-reset2@localhost) Choose your provider:
> 2
(user-can-reset2@localhost) == Password authentication ==
== Password authentication ==
Enter 'r' to cancel the request and go back to select the authentication method
Gimme your password:
(user-can-reset2@localhost) Gimme your password:
>
────────────────────────────────────────────────────────────────────────────────
> ssh ${AUTHD_PAM_SSH_USER}@localhost ${AUTHD_PAM_SSH_ARGS}
(user-can-reset2@localhost) == Provider selection ==
== Provider selection ==
1. local
2. ExampleBroker
Choose your provider:
(user-can-reset2@localhost) Choose your provider:
> 2
(user-can-reset2@localhost) == Password authentication ==
== Password authentication ==
Enter 'r' to cancel the request and go back to select the authentication method
Gimme your password:
(user-can-reset2@localhost) Gimme your password:
>
(user-can-reset2@localhost) == Password reset ==
== Password reset ==
1. Proceed with password update
2. Skip
Or enter 'r' to go back to choose the provider
Choose action:
(user-can-reset2@localhost) Choose action:
>
────────────────────────────────────────────────────────────────────────────────
> ssh ${AUTHD_PAM_SSH_USER}@localhost ${AUTHD_PAM_SSH_ARGS}
(user-can-reset2@localhost) == Provider selection ==
== Provider selection ==
1. local
2. ExampleBroker
Choose your provider:
(user-can-reset2@localhost) Choose your provider:
> 2
(user-can-reset2@localhost) == Password authentication ==
== Password authentication ==
Enter 'r' to cancel the request and go back to select the authentication method
Gimme your password:
(user-can-reset2@localhost) Gimme your password:
>
(user-can-reset2@localhost) == Password reset ==
== Password reset ==
1. Proceed with password update
2. Skip
Or enter 'r' to go back to choose the provider
Choose action:
(user-can-reset2@localhost) Choose action:
> 1
(user-can-reset2@localhost) == Password reset ==
== Password reset ==
Enter 'r' to cancel the request and go back to choose the provider
Enter your new password (3 days until mandatory):
(user-can-reset2@localhost) Enter your new password (3 days until mandatory):
>
────────────────────────────────────────────────────────────────────────────────
> ssh ${AUTHD_PAM_SSH_USER}@localhost ${AUTHD_PAM_SSH_ARGS}
(user-can-reset2@localhost) == Provider selection ==
== Provider selection ==
1. local
2. ExampleBroker
Choose your provider:
(user-can-reset2@localhost) Choose your provider:
> 2
(user-can-reset2@localhost) == Password authentication ==
== Password authentication ==
Enter 'r' to cancel the request and go back to select the authentication method
Gimme your password:
(user-can-reset2@localhost) Gimme your password:
>
(user-can-reset2@localhost) == Password reset ==
== Password reset ==
1. Proceed with password update
2. Skip
Or enter 'r' to go back to choose the provider
Choose action:
(user-can-reset2@localhost) Choose action:
> 1
(user-can-reset2@localhost) == Password reset ==
== Password reset ==
Enter 'r' to cancel the request and go back to choose the provider
Enter your new password (3 days until mandatory):
(user-can-reset2@localhost) Enter your new password (3 days until mandatory):
>
(user-can-reset2@localhost) Confirm Password:
>
────────────────────────────────────────────────────────────────────────────────
> ssh ${AUTHD_PAM_SSH_USER}@localhost ${AUTHD_PAM_SSH_ARGS}
(user-can-reset2@localhost) == Provider selection ==
== Provider selection ==
1. local
2. ExampleBroker
Choose your provider:
(user-can-reset2@localhost) Choose your provider:
> 2
(user-can-reset2@localhost) == Password authentication ==
== Password authentication ==
Enter 'r' to cancel the request and go back to select the authentication method
Gimme your password:
(user-can-reset2@localhost) Gimme your password:
>
(user-can-reset2@localhost) == Password reset ==
== Password reset ==
1. Proceed with password update
2. Skip
Or enter 'r' to go back to choose the provider
Choose action:
(user-can-reset2@localhost) Choose action:
> 1
(user-can-reset2@localhost) == Password reset ==
== Password reset ==
Enter 'r' to cancel the request and go back to choose the provider
Enter your new password (3 days until mandatory):
(user-can-reset2@localhost) Enter your new password (3 days until mandatory):
>
(user-can-reset2@localhost) Confirm Password:
>
Expand All @@ -115,24 +115,24 @@ Connection to localhost closed.
>
────────────────────────────────────────────────────────────────────────────────
> ssh ${AUTHD_PAM_SSH_USER}@localhost ${AUTHD_PAM_SSH_ARGS}
(user-can-reset2@localhost) == Provider selection ==
== Provider selection ==
1. local
2. ExampleBroker
Choose your provider:
(user-can-reset2@localhost) Choose your provider:
> 2
(user-can-reset2@localhost) == Password authentication ==
== Password authentication ==
Enter 'r' to cancel the request and go back to select the authentication method
Gimme your password:
(user-can-reset2@localhost) Gimme your password:
>
(user-can-reset2@localhost) == Password reset ==
== Password reset ==
1. Proceed with password update
2. Skip
Or enter 'r' to go back to choose the provider
Choose action:
(user-can-reset2@localhost) Choose action:
> 1
(user-can-reset2@localhost) == Password reset ==
== Password reset ==
Enter 'r' to cancel the request and go back to choose the provider
Enter your new password (3 days until mandatory):
(user-can-reset2@localhost) Enter your new password (3 days until mandatory):
>
(user-can-reset2@localhost) Confirm Password:
>
Expand All @@ -153,24 +153,24 @@ Connection to localhost closed.
>
────────────────────────────────────────────────────────────────────────────────
> ssh ${AUTHD_PAM_SSH_USER}@localhost ${AUTHD_PAM_SSH_ARGS}
(user-can-reset2@localhost) == Provider selection ==
== Provider selection ==
1. local
2. ExampleBroker
Choose your provider:
(user-can-reset2@localhost) Choose your provider:
> 2
(user-can-reset2@localhost) == Password authentication ==
== Password authentication ==
Enter 'r' to cancel the request and go back to select the authentication method
Gimme your password:
(user-can-reset2@localhost) Gimme your password:
>
(user-can-reset2@localhost) == Password reset ==
== Password reset ==
1. Proceed with password update
2. Skip
Or enter 'r' to go back to choose the provider
Choose action:
(user-can-reset2@localhost) Choose action:
> 1
(user-can-reset2@localhost) == Password reset ==
== Password reset ==
Enter 'r' to cancel the request and go back to choose the provider
Enter your new password (3 days until mandatory):
(user-can-reset2@localhost) Enter your new password (3 days until mandatory):
>
(user-can-reset2@localhost) Confirm Password:
>
Expand Down
Loading

0 comments on commit d4948a4

Please sign in to comment.