Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/preingestion-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ authors.workspace = true
[lib]
name = "carbide_preingestion_manager"

[[test]]
name = "integration"
path = "tests/integration/main.rs"

[dependencies]
bmc-vendor = { path = "../bmc-vendor" }
carbide-api-db = { path = "../api-db" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use carbide_test_harness::test_support::default_config;
use model::site_explorer::{InitialResetPhase, PowerDrainState, PreingestionState};
use rpc::forge::DhcpDiscovery;

mod common;
use crate::common;

#[sqlx_test]
async fn test_preingestion_bmc_upgrade(pool: PgPool) -> Result<(), Box<dyn std::error::Error>> {
Expand Down
21 changes: 21 additions & 0 deletions crates/preingestion-manager/tests/integration/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// Keep the suites in one executable: sqlx-testing's migrated template is process-local.
mod common;
mod host_bmc_firmware;
mod time_sync;
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use carbide_test_harness::test_support::default_config;
use model::site_explorer::{PreingestionState, TimeSyncResetPhase};
use rpc::forge::DhcpDiscovery;

mod common;
use crate::common;

/// Test that when BMC time is in sync, preingestion proceeds normally with firmware checks
#[sqlx_test]
Expand Down
4 changes: 4 additions & 0 deletions crates/site-explorer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ authors.workspace = true
[lib]
name = "carbide_site_explorer"

[[test]]
name = "integration"
path = "tests/integration/main.rs"

[features]
default = []
test-support = []
Expand Down
26 changes: 26 additions & 0 deletions crates/site-explorer/tests/integration/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// Keep the suites in one executable: sqlx-testing's migrated template is process-local.
mod env;
mod health_report;
mod machine_creator;
mod power_shelf;
mod reconcile;
mod site_explorer;
mod switch;
mod zero_dpu;
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ use rpc::forge::DhcpDiscovery;

use crate::env::Env;

mod env;

trait EnvExt {
fn new_power_shelf(
&self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ use rpc::site_explorer::{
};
use tonic::Request;

use crate::env::Env;

mod env;
use crate::env::{self, Env};

const LAST_RUN_MISSING_CREDENTIAL_KEY: &str = "machines/bmc/site/root";
const LAST_RUN_MISSING_CREDENTIAL_CATEGORY: &str = "missing_credentials";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ use rpc::forge::DhcpDiscovery;

use crate::env::Env;

mod env;

fn expected_switch_fixture(
bmc_mac: MacAddress,
nvos_mac: MacAddress,
Expand Down
Loading