Skip to content

Commit

Permalink
fix address lot testing
Browse files Browse the repository at this point in the history
  • Loading branch information
internet-diglett committed Jul 4, 2024
1 parent c5f042b commit 65b25dc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
11 changes: 1 addition & 10 deletions nexus/tests/integration_tests/endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2232,7 +2232,7 @@ pub static VERIFY_ENDPOINTS: Lazy<Vec<VerifyEndpoint>> = Lazy::new(|| {

VerifyEndpoint {
url: &DEMO_ADDRESS_LOT_BLOCKS_URL,
visibility: Visibility::Public,
visibility: Visibility::Protected,
unprivileged_access: UnprivilegedAccess::None,
allowed_methods: vec![
AllowedMethod::Post(
Expand All @@ -2251,15 +2251,6 @@ pub static VERIFY_ENDPOINTS: Lazy<Vec<VerifyEndpoint>> = Lazy::new(|| {
]
},

VerifyEndpoint {
url: &DEMO_ADDRESS_LOT_BLOCKS_URL,
visibility: Visibility::Protected,
unprivileged_access: UnprivilegedAccess::None,
allowed_methods: vec![
AllowedMethod::GetNonexistent
],
},

VerifyEndpoint {
url: &DEMO_LOOPBACK_CREATE_URL,
visibility: Visibility::Public,
Expand Down
13 changes: 13 additions & 0 deletions nexus/tests/integration_tests/unauthorized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,19 @@ static SETUP_REQUESTS: Lazy<Vec<SetupReq>> = Lazy::new(|| {
&*DEMO_SILO_USER_ID_SET_PASSWORD_URL,
],
},
// Create the default Address Lot
SetupReq::Post {
url: &DEMO_ADDRESS_LOTS_URL,
body: serde_json::to_value(&*DEMO_ADDRESS_LOT_CREATE).unwrap(),
id_routes: vec!["/v1/system/networking/address-lot/{id}"],
},
// Create the default Address Lot Block
SetupReq::Post {
url: &DEMO_ADDRESS_LOT_BLOCKS_URL,
body: serde_json::to_value(&*DEMO_ADDRESS_LOT_BLOCK_CREATE)
.unwrap(),
id_routes: vec![],
},
// Create the default IP pool
SetupReq::Post {
url: &DEMO_IP_POOLS_URL,
Expand Down

0 comments on commit 65b25dc

Please sign in to comment.