Skip to content

Commit

Permalink
blank disks for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpesp committed Mar 16, 2022
1 parent 18d8f33 commit d9ab3e5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions nexus/test-utils/src/resource_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ pub async fn create_instance(
hostname: String::from("the_host"),
network_interfaces:
params::InstanceNetworkInterfaceAttachment::Default,
disks: vec![],
},
)
.await
Expand Down
5 changes: 5 additions & 0 deletions nexus/tests/integration_tests/instances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ async fn test_instances_create_reboot_halt(
hostname: instance.hostname.clone(),
network_interfaces:
params::InstanceNetworkInterfaceAttachment::Default,
disks: vec![],
}))
.expect_status(Some(StatusCode::BAD_REQUEST)),
)
Expand Down Expand Up @@ -577,6 +578,7 @@ async fn test_instance_with_single_explicit_ip_address(
memory: ByteCount::from_mebibytes_u32(4),
hostname: String::from("nic-test"),
network_interfaces: interface_params,
disks: vec![],
};
let response =
NexusRequest::objects_post(client, &url_instances, &instance_params)
Expand Down Expand Up @@ -692,6 +694,7 @@ async fn test_instance_with_new_custom_network_interfaces(
memory: ByteCount::from_mebibytes_u32(4),
hostname: String::from("nic-test"),
network_interfaces: interface_params,
disks: vec![],
};
let response =
NexusRequest::objects_post(client, &url_instances, &instance_params)
Expand Down Expand Up @@ -784,6 +787,7 @@ async fn test_instance_create_delete_network_interface(
memory: ByteCount::from_mebibytes_u32(4),
hostname: String::from("nic-test"),
network_interfaces: params::InstanceNetworkInterfaceAttachment::None,
disks: vec![],
};
let response =
NexusRequest::objects_post(client, &url_instances, &instance_params)
Expand Down Expand Up @@ -966,6 +970,7 @@ async fn test_instance_with_multiple_nics_unwinds_completely(
memory: ByteCount::from_mebibytes_u32(4),
hostname: String::from("nic-test"),
network_interfaces: interface_params,
disks: vec![],
};
let builder =
RequestBuilder::new(client, http::Method::POST, &url_instances)
Expand Down
1 change: 1 addition & 0 deletions nexus/tests/integration_tests/subnet_allocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ async fn create_instance_expect_failure(
memory: ByteCount::from_mebibytes_u32(256),
hostname: name.to_string(),
network_interfaces: params::InstanceNetworkInterfaceAttachment::Default,
disks: vec![],
};

NexusRequest::new(
Expand Down
1 change: 1 addition & 0 deletions nexus/tests/integration_tests/unauthorized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ lazy_static! {
memory: ByteCount::from_gibibytes_u32(16),
hostname: String::from("demo-instance"),
network_interfaces: params::InstanceNetworkInterfaceAttachment::Default,
disks: vec![],
};
}

Expand Down

0 comments on commit d9ab3e5

Please sign in to comment.