Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ cache after one `aster cache login`: it opens your browser, you sign in with
your company account and confirm, and Aster stores a read-only token under
`$XDG_CONFIG_HOME/aster` (else `~/.config/aster`) until it expires. Signed
out, Aster prints one line (`not signed in; run aster cache login`) and
continues with the local cache. See
continues with the local cache. Over SSH or on a devbox, where the browser
cannot reach the CLI, it prints a URL and you paste back a one-time code;
`aster cache logout` signs out everywhere. See
[Reading the cache from a laptop](docs/test-tracking.md#reading-the-cache-from-a-laptop).
The same sign-in reads the flaky, broken, cluster and quarantine data the
dashboard shows: `aster srv flaky`, `aster srv clusters`, `aster srv get <path>`
Expand Down
10 changes: 4 additions & 6 deletions crates/aster-srv/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,13 +575,11 @@ mod tests {
.issue("accounts.google.com:1", "ada@example.com")
.unwrap()
.token;
assert_eq!(
assert!(matches!(
principal(Some(&issuer), &person).await,
Ok(Principal::Person(crate::person::Person {
subject: "accounts.google.com:1".into(),
email: "ada@example.com".into()
}))
);
Ok(Principal::Person(p))
if p.subject == "accounts.google.com:1" && p.email == "ada@example.com"
));
let ci = token(claims("ArchAstro/firstlanding"), "k1");
assert!(matches!(
principal(Some(&issuer), &ci).await,
Expand Down
1 change: 1 addition & 0 deletions crates/aster-srv/src/cache/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ mod tests {
let person = |email: &str| Person {
subject: "accounts.google.com:1".into(),
email: email.into(),
issued_at: 0,
};
let repo = "ArchAstro/firstlanding";
let allow = &config.repositories;
Expand Down
Loading
Loading