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
1 change: 1 addition & 0 deletions crates/control_plane/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ uuid = { workspace = true }

[dev-dependencies]
slatedb = { workspace = true }
mockall = { version = "0.13.1" }

[lints]
workspace = true
2 changes: 1 addition & 1 deletion crates/control_plane/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub enum ControlPlaneError {
UnsupportedAuthenticationMethod { method: String },

#[snafu(display("Invalid or missing credentials"))]
CredentialsValidationFailed,
InvalidCredentials,

#[snafu(display("Invalid TLS configuration: {source}"))]
InvalidTLSConfiguration {
Expand Down
14 changes: 14 additions & 0 deletions crates/control_plane/src/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ pub struct StorageProfileCreateRequest {
pub validate_credentials: Option<bool>,
}

impl Default for StorageProfileCreateRequest {
fn default() -> Self {
Self {
r#type: CloudProvider::FS,
region: None,
bucket: None,
credentials: None,
sts_role_arn: None,
endpoint: None,
validate_credentials: None,
}
}
}

impl TryFrom<&StorageProfileCreateRequest> for StorageProfile {
type Error = ControlPlaneModelError;

Expand Down
Loading
Loading