Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjstone committed Nov 16, 2023
1 parent 1721f7b commit 3055d51
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nexus/db-queries/src/db/datastore/inventory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ impl DataStore {

/// Attempt to read the given collection while limiting queries to `limit`
/// records and returning up to `limit` records.
async fn inventory_collection_read_best_effort(
pub async fn inventory_collection_read_best_effort(
&self,
opctx: &OpContext,
id: Uuid,
Expand Down
9 changes: 9 additions & 0 deletions nexus/tests/integration_tests/endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ use std::str::FromStr;
lazy_static! {
pub static ref HARDWARE_RACK_URL: String =
format!("/v1/system/hardware/racks/{}", RACK_UUID);
pub static ref HARDWARE_UNINITIALIZED_SLEDS: String =
format!("{}/uninitialized-sleds", *HARDWARE_RACK_URL);
pub static ref HARDWARE_SLED_URL: String =
format!("/v1/system/hardware/sleds/{}", SLED_AGENT_UUID);
pub static ref HARDWARE_SWITCH_URL: String =
Expand Down Expand Up @@ -1564,6 +1566,13 @@ lazy_static! {
allowed_methods: vec![AllowedMethod::Get],
},

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

VerifyEndpoint {
url: "/v1/system/hardware/sleds",
visibility: Visibility::Public,
Expand Down
1 change: 0 additions & 1 deletion nexus/tests/output/uncovered-authz-endpoints.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
API endpoints with no coverage in authz tests:
ping (get "/v1/ping")
uninitialized_sled_list (get "/v1/system/hardware/racks/{rack_id}/uninitialized-sleds")
device_auth_request (post "/device/auth")
device_auth_confirm (post "/device/confirm")
device_access_token (post "/device/token")
Expand Down

0 comments on commit 3055d51

Please sign in to comment.