Skip to content

Commit b2317f6

Browse files
committed
add endpoints to unauthorized test
1 parent 2a835d3 commit b2317f6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

nexus/tests/integration_tests/endpoints.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ use omicron_test_utils::certificates::CertificateChain;
4242
use semver::Version;
4343
use std::net::IpAddr;
4444
use std::net::Ipv4Addr;
45+
use std::num::NonZeroU32;
4546
use std::str::FromStr;
4647
use std::sync::LazyLock;
4748

@@ -1632,6 +1633,20 @@ pub static VERIFY_ENDPOINTS: LazyLock<Vec<VerifyEndpoint>> =
16321633
),
16331634
],
16341635
},
1636+
VerifyEndpoint {
1637+
url: "/v1/settings",
1638+
visibility: Visibility::Public,
1639+
unprivileged_access: UnprivilegedAccess::ReadOnly,
1640+
allowed_methods: vec![
1641+
AllowedMethod::Get,
1642+
AllowedMethod::Put(
1643+
serde_json::to_value(&params::SiloSettingsUpdate {
1644+
device_token_max_ttl_seconds: NonZeroU32::new(3),
1645+
})
1646+
.unwrap(),
1647+
),
1648+
],
1649+
},
16351650
VerifyEndpoint {
16361651
url: "/v1/users",
16371652
visibility: Visibility::Public,

0 commit comments

Comments
 (0)