working on pack installation.
This commit is contained in:
@@ -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!({}),
|
||||
};
|
||||
|
||||
@@ -358,6 +358,7 @@ async fn test_pack_columns() {
|
||||
"conf_schema",
|
||||
"config",
|
||||
"created",
|
||||
"dependencies",
|
||||
"description",
|
||||
"id",
|
||||
"is_standard",
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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!({}),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user