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
4 changes: 4 additions & 0 deletions scripts/test-core-rpc-docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ def source_inputs():
"services/core/schema",
"contracts/proto",
"services/extensions",
"packages/extore/plugins/commerce",
"deployment/docker",
"deployment/postgres",
"config/legal/templates",
Expand All @@ -322,6 +323,9 @@ def source_inputs():
"LICENSE",
"NOTICE",
"THIRD-PARTY-LICENSES.md",
"packaging/extore-plugin.json",
"packages/extore/LICENSE",
"packages/extore/plugins/commerce/THIRD_PARTY.md",
"services/core/Cargo.toml",
"services/core/Cargo.lock",
"services/core/build.rs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,17 @@ async fn managed70_owner_upgrade_preserves_all_other_data_acl_and_commit_recover
engine_offline_boundary(&request).await;
let rollback = FAIL_AFTER_OAUTH_CAS
.scope(true, upgrade_database(url.as_str(), request.clone()))
.await;
assert!(matches!(
rollback,
Err(UpgradeError::Rejected(
"MANAGED_APPLICATIONS_INJECTED_AFTER_OAUTH_CAS"
))
));
.await
.map(|report| report.status);
assert!(
matches!(
&rollback,
Err(UpgradeError::Rejected(
"MANAGED_APPLICATIONS_INJECTED_AFTER_OAUTH_CAS"
))
),
"managed70 injected rollback result: {rollback:?}"
);
let mut inspect = PgConnection::connect_with(&options).await.unwrap();
assert_eq!(
snapshot_data(&mut inspect, &tables, &sequences)
Expand Down
18 changes: 12 additions & 6 deletions services/core/src/core_schema/upgrade/payment_discounts_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,18 @@ async fn app05_upgrade_engine_66_to67_exact_replay_and_runtime_denial(pool: PgPo
"1".into()
};
engine_offline_boundary(&r).await;
assert!(matches!(
upgrade_database(url.as_str(), wrong_system).await,
Err(UpgradeError::Rejected(
"UPGRADE_DB_SYSTEM_IDENTIFIER_MISMATCH"
))
));
let wrong_system_result = upgrade_database(url.as_str(), wrong_system)
.await
.map(|report| report.status);
assert!(
matches!(
&wrong_system_result,
Err(UpgradeError::Rejected(
"UPGRADE_DB_SYSTEM_IDENTIFIER_MISMATCH"
))
),
"wrong-system upgrade result: {wrong_system_result:?}"
);

engine_offline_boundary(&r).await;
let committed = upgrade_database(url.as_str(), r.clone()).await.unwrap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1039,6 +1039,8 @@ async fn responses_continuity_independent_actual_kill_restart_same_database(pool
json_reply(call(&core, &lab.fixture.key, "independent-restart-root", &body).await)
.await;
assert_active(lab, &id, &root).await;
// The successful HTTP body can precede its performance observation.
native_http::test_support::performance_sample(&lab.fixture.pool, &id).await;
let before = snapshot(&lab.fixture.pool).await;
let old_pid = core.child.id();
core.child.kill().unwrap();
Expand Down