Commit Graph

11 Commits (cb2c24fc88426496304fd320a79e2dd02dff520a)

Author SHA1 Message Date
Cristian Le d7eec869c2 Fix the previous tests 3 years ago
Cristian Le f38a72a62b Leftover from previous commit 3 years ago
Mariano Cano 46c1dc80fb Use map[string]struct{} instead of map[string]bool 3 years ago
Mariano Cano aafac179a5 Add test for oidc with preferred usernames. 3 years ago
Mariano Cano 3246a3e81f Add missing test case. 4 years ago
Mariano Cano 0b5fd156e8 Add a third principal on OIDC tokens with the raw local part of the email.
For the email first.last@example.com it will create the principals
  ["firstlast", "first.last", "first.last@example.com"]

Fixes #253, #254
4 years ago
Mariano Cano fa416336a8 Add context to tests. 5 years ago
max furman dccbdf3a90 Introduce generalized statusCoder errors and loads of ssh unit tests.
* StatusCoder api errors that have friendly user messages.
* Unit tests for SSH sign/renew/rekey/revoke across all provisioners.
5 years ago
max furman 414a94b210 Instrument getIdentity func for OIDC ssh provisioner 5 years ago
Mariano Cano ad91842d06 Add test for SanitizeSSHUserPrincipal 5 years ago
Mariano Cano 37f2096dff Add Stringer interface to provisioner.Type.
Add missing file.
5 years ago