v0.24.0 cli long and short options, http sink viewer and new logo
This commit is contained in:
1 parent
bf410e1225
commit
9e86d7999d
42 files changed
+786
-404
No files matched your search
+1
-8
@@ -42,7 +42,7 @@ func writeCredentials(t *testing.T, path string, users ...string) *authz.Credent
|
||||
func TestAddUserCreatesPrivateFilesWithAMatchingVerifier(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
creds, pass := filepath.Join(dir, "users.toml"), filepath.Join(dir, "edge-01.pass")
|
||||
code, stdout, stderr := runAuthTest(t, "add-user", "-credentials", creds, "-user", "edge-01", "-password-file", pass)
|
||||
code, stdout, stderr := runAuthTest(t, "add-user", "--credentials", creds, "-u", "edge-01", "--password-file", pass)
|
||||
if code != 0 || stdout != "" {
|
||||
t.Fatalf("exit %d, stdout %q, stderr: %s", code, stdout, stderr)
|
||||
}
|
||||
@@ -185,13 +185,6 @@ func TestRemoveUserRefusesTheLastUser(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestAuthCommandHelpPrintsAuthUsage(t *testing.T) {
|
||||
code, _, stderr := runAuthTest(t, "add-user", "-h")
|
||||
if code != 0 || !strings.Contains(stderr, "Usage: lw auth add-user -credentials FILE") {
|
||||
t.Fatalf("exit %d, stderr: %s", code, stderr)
|
||||
}
|
||||
}
|
||||
|
||||
// The login is posted to the -url given plus /auth: a link-local URL keeps
|
||||
// its zone escaped, not turned into one that no longer parses
|
||||
func TestTokenLogsInAtTheURLGiven(t *testing.T) {
|
||||
|
||||
Reference in new issue
Block a user