trying to rework database migrations
This commit is contained in:
@@ -360,6 +360,7 @@ impl PackFixture {
|
||||
tags: self.tags,
|
||||
runtime_deps: self.runtime_deps,
|
||||
is_standard: self.is_standard,
|
||||
installers: serde_json::json!({}),
|
||||
};
|
||||
|
||||
PackRepository::create(pool, input).await
|
||||
|
||||
@@ -393,6 +393,7 @@ async fn test_pack_transaction_commit() {
|
||||
tags: vec![],
|
||||
runtime_deps: vec![],
|
||||
is_standard: false,
|
||||
installers: json!({}),
|
||||
};
|
||||
|
||||
let pack = PackRepository::create(&mut *tx, input).await.unwrap();
|
||||
@@ -428,6 +429,7 @@ async fn test_pack_transaction_rollback() {
|
||||
tags: vec![],
|
||||
runtime_deps: vec![],
|
||||
is_standard: false,
|
||||
installers: json!({}),
|
||||
};
|
||||
|
||||
let pack = PackRepository::create(&mut *tx, input).await.unwrap();
|
||||
@@ -456,6 +458,7 @@ async fn test_pack_invalid_ref_format() {
|
||||
tags: vec![],
|
||||
runtime_deps: vec![],
|
||||
is_standard: false,
|
||||
installers: json!({}),
|
||||
};
|
||||
|
||||
let result = PackRepository::create(&pool, input).await;
|
||||
@@ -489,6 +492,7 @@ async fn test_pack_valid_ref_formats() {
|
||||
tags: vec![],
|
||||
runtime_deps: vec![],
|
||||
is_standard: false,
|
||||
installers: json!({}),
|
||||
};
|
||||
|
||||
let result = PackRepository::create(&pool, input).await;
|
||||
|
||||
@@ -80,6 +80,7 @@ impl PermissionSetFixture {
|
||||
meta: json!({}),
|
||||
runtime_deps: vec![],
|
||||
is_standard: false,
|
||||
installers: json!({}),
|
||||
};
|
||||
PackRepository::create(&self.pool, input)
|
||||
.await
|
||||
|
||||
@@ -378,6 +378,7 @@ async fn test_find_by_pack() {
|
||||
tags: vec!["test".to_string()],
|
||||
runtime_deps: vec![],
|
||||
is_standard: false,
|
||||
installers: json!({}),
|
||||
};
|
||||
|
||||
let pack = PackRepository::create(&pool, pack_input)
|
||||
|
||||
Reference in New Issue
Block a user