mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-12-04 00:06:39 +00:00
test: drop two Hub access checks that other tests already cover
This commit is contained in:
@@ -362,13 +362,6 @@ async fn a_workspace_replaces_its_hub_access_list(db: Pool<Postgres>) -> anyhow:
|
||||
};
|
||||
let status = write(DEV, json!({"slack": "write"})).await?.status();
|
||||
assert_eq!(status, 403);
|
||||
let typo = client
|
||||
.post(format!("{ws}/hub_access"))
|
||||
.bearer_auth("SECRET_TOKEN")
|
||||
.json(&json!({ "hubAccess": {} }))
|
||||
.send()
|
||||
.await?;
|
||||
assert_eq!(typo.status(), 422);
|
||||
for (list, stored) in [
|
||||
(json!({"Slack": "read"}), json!({"slack": "read"})),
|
||||
(json!({}), json!({})),
|
||||
|
||||
@@ -82,9 +82,6 @@ async fn lapsed_license_freezes_roles(db: Pool<Postgres>) {
|
||||
sync_global_settings_declarative(&db, &BTreeMap::new(), &slack, &())
|
||||
.await
|
||||
.expect("licensed again");
|
||||
validate_instance_hub_access_write(&db, &serde_json::json!({"slack/x": "read"}))
|
||||
.await
|
||||
.expect_err("a license does not let a malformed list through");
|
||||
LICENSE_KEY_VALID.store(false, Ordering::Relaxed);
|
||||
validate_instance_hub_access_write(&db, &serde_json::json!({"Slack": "read"}))
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user