working on pack installation.

This commit is contained in:
2026-02-12 16:49:57 -06:00
parent 966a5af188
commit aa1425365e
18 changed files with 200 additions and 208 deletions

View File

@@ -284,6 +284,7 @@ pub struct PackFixture {
pub meta: serde_json::Value,
pub tags: Vec<String>,
pub runtime_deps: Vec<String>,
pub dependencies: Vec<String>,
pub is_standard: bool,
}
@@ -300,6 +301,7 @@ impl PackFixture {
meta: json!({}),
tags: vec!["test".to_string()],
runtime_deps: vec![],
dependencies: vec![],
is_standard: false,
}
}
@@ -319,6 +321,7 @@ impl PackFixture {
meta: json!({}),
tags: vec!["test".to_string()],
runtime_deps: vec![],
dependencies: vec![],
is_standard: false,
}
}
@@ -359,6 +362,7 @@ impl PackFixture {
meta: self.meta,
tags: self.tags,
runtime_deps: self.runtime_deps,
dependencies: self.dependencies,
is_standard: self.is_standard,
installers: serde_json::json!({}),
};

View File

@@ -358,6 +358,7 @@ async fn test_pack_columns() {
"conf_schema",
"config",
"created",
"dependencies",
"description",
"id",
"is_standard",

View File

@@ -392,6 +392,7 @@ async fn test_pack_transaction_commit() {
meta: json!({}),
tags: vec![],
runtime_deps: vec![],
dependencies: vec![],
is_standard: false,
installers: json!({}),
};
@@ -428,6 +429,7 @@ async fn test_pack_transaction_rollback() {
meta: json!({}),
tags: vec![],
runtime_deps: vec![],
dependencies: vec![],
is_standard: false,
installers: json!({}),
};
@@ -457,6 +459,7 @@ async fn test_pack_invalid_ref_format() {
meta: json!({}),
tags: vec![],
runtime_deps: vec![],
dependencies: vec![],
is_standard: false,
installers: json!({}),
};
@@ -491,8 +494,9 @@ async fn test_pack_valid_ref_formats() {
meta: json!({}),
tags: vec![],
runtime_deps: vec![],
dependencies: vec![],
is_standard: false,
installers: json!({}),
installers: json!({}),
};
let result = PackRepository::create(&pool, input).await;

View File

@@ -79,8 +79,9 @@ impl PermissionSetFixture {
config: json!({}),
meta: json!({}),
runtime_deps: vec![],
dependencies: vec![],
is_standard: false,
installers: json!({}),
installers: json!({}),
};
PackRepository::create(&self.pool, input)
.await
@@ -95,7 +96,7 @@ impl PermissionSetFixture {
login,
display_name: Some("Test User".to_string()),
attributes: json!({}),
password_hash: None,
password_hash: None,
};
IdentityRepository::create(&self.pool, input)
.await

View File

@@ -377,6 +377,7 @@ async fn test_find_by_pack() {
}),
tags: vec!["test".to_string()],
runtime_deps: vec![],
dependencies: vec![],
is_standard: false,
installers: json!({}),
};