sso-teardown.ts 475 B

123456789101112131415
  1. import { test, type FullConfig } from '@playwright/test';
  2. const { execSync } = require('node:child_process');
  3. const utils = require('../../global-utils');
  4. utils.loadEnv();
  5. test('Keycloak teardown', async () => {
  6. if( process.env.PW_KEEP_SERVICE_RUNNNING === "true" ) {
  7. console.log("Keep Keycloak running");
  8. } else {
  9. console.log("Keycloak stopping");
  10. execSync(`docker compose --profile keycloak --env-file test.env stop Keycloak`);
  11. }
  12. });