Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b114049591 |
@@ -734,20 +734,18 @@ mod tests {
|
|||||||
.await;
|
.await;
|
||||||
|
|
||||||
let store = Arc::new(ClawStore::in_memory().expect("store opens"));
|
let store = Arc::new(ClawStore::in_memory().expect("store opens"));
|
||||||
store
|
|
||||||
.add_account_watch("github", Some(&server.uri()), "acct-1")
|
|
||||||
.expect("account watch lands");
|
|
||||||
let (dispatcher, accounts, notifications) = test_parts(store.clone());
|
let (dispatcher, accounts, notifications) = test_parts(store.clone());
|
||||||
accounts
|
// The store mints the id; the watch row is what names it.
|
||||||
.put(
|
let account = accounts
|
||||||
rhema_identity::AccountDraft::new(
|
.put(rhema_identity::AccountDraft::new(
|
||||||
"forge bot",
|
"forge bot",
|
||||||
"github",
|
"github",
|
||||||
rhema_identity::Secret::new(rhema_identity::SecretKind::Token, "acct-tok"),
|
rhema_identity::Secret::new(rhema_identity::SecretKind::Token, "acct-tok"),
|
||||||
)
|
))
|
||||||
.with_id("acct-1"),
|
|
||||||
)
|
|
||||||
.expect("account lands");
|
.expect("account lands");
|
||||||
|
store
|
||||||
|
.add_account_watch("github", Some(&server.uri()), &account.id)
|
||||||
|
.expect("account watch lands");
|
||||||
let source = ForgeSource::new(&dispatcher, "github", store, accounts, notifications);
|
let source = ForgeSource::new(&dispatcher, "github", store, accounts, notifications);
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
|||||||
Reference in new issue
Block a user