From b3e7a91d95ed2925310eaa16d3b6c56827653704 Mon Sep 17 00:00:00 2001 From: Gimmy Date: Thu, 27 Jun 2024 10:03:10 +0300 Subject: [PATCH] fix tests setup --- __tests__/integration/index.test.ts | 3 +++ __tests__/topaz.ts | 7 +------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/__tests__/integration/index.test.ts b/__tests__/integration/index.test.ts index 04853cc..ade891a 100644 --- a/__tests__/integration/index.test.ts +++ b/__tests__/integration/index.test.ts @@ -516,6 +516,9 @@ types: expect(response).toEqual({ path: { + "rebac.check": { + allowed: false, + }, "todoApp.DELETE.todos.__id": { allowed: false }, "todoApp.GET.todos": { allowed: true }, "todoApp.GET.users.__userID": { allowed: true }, diff --git a/__tests__/topaz.ts b/__tests__/topaz.ts index 4209b0d..beb2379 100644 --- a/__tests__/topaz.ts +++ b/__tests__/topaz.ts @@ -13,11 +13,7 @@ export const TOPAZ_TIMEOUT = export class Topaz { async start() { await this.backup(); - await execute( - "topaz config new -r ghcr.io/aserto-policies/policy-todo:2.1.0 -n todo -d -f" - ); - - await execute("topaz config use todo"); + await execute("topaz templates install todo -f --no-console"); const certsDir = await this.caCert(); @@ -26,7 +22,6 @@ export class Topaz { await execute("topaz config info"); - await execute("topaz start"); log(`topaz start with ${certsDir}`); const directoryClient = DirectoryServiceV3({