Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-05 02:28:00 +01:00
17 Zeilen
547 B
TypeScript
17 Zeilen
547 B
TypeScript
import { test, type FullConfig } from '@playwright/test';
|
|
|
|
const { execSync } = require('node:child_process');
|
|
const utils = require('./global-utils');
|
|
|
|
utils.loadEnv();
|
|
|
|
test('Keycloak teardown', async () => {
|
|
var kcPath = process.env.KC_SETUP_PATH;
|
|
|
|
if( process.env.KC_KEEP_RUNNNING == "true" ) {
|
|
console.log("Keep Keycloak running");
|
|
} else {
|
|
console.log("Keycloak stopping");
|
|
execSync(`ENV=test KC_SETUP_PATH=${kcPath} docker-compose -f ${kcPath}/docker-compose.yml --project-directory . down`);
|
|
}
|
|
});
|