Add complete system qualification evidence
This commit is contained in:
parent
775dd61963
commit
6952767503
1 changed files with 1256 additions and 84 deletions
18
crates/remora-credentials/tests/qualification_cleanup.rs
Normal file
18
crates/remora-credentials/tests/qualification_cleanup.rs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
use sqlx::postgres::PgPoolOptions;
|
||||
|
||||
#[tokio::test]
|
||||
async fn remove_standalone_credential_fixture_rows() {
|
||||
if std::env::var("REMORA_QUALIFICATION_REQUIRE").is_err() {
|
||||
return;
|
||||
}
|
||||
let database_url = std::env::var("DATABASE_URL").expect("DATABASE_URL");
|
||||
let pool = PgPoolOptions::new()
|
||||
.max_connections(1)
|
||||
.connect(&database_url)
|
||||
.await
|
||||
.expect("connect postgres");
|
||||
sqlx::query("TRUNCATE execution_grant_credential_pins, source_credentials CASCADE")
|
||||
.execute(&pool)
|
||||
.await
|
||||
.expect("clear standalone credential fixtures");
|
||||
}
|
||||
Loading…
Reference in a new issue