Skip to content

Commit

Permalink
fix tests setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gimmyxd committed Jun 27, 2024
1 parent d756dbf commit b3e7a91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions __tests__/integration/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
7 changes: 1 addition & 6 deletions __tests__/topaz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -26,7 +22,6 @@ export class Topaz {

await execute("topaz config info");

await execute("topaz start");
log(`topaz start with ${certsDir}`);

const directoryClient = DirectoryServiceV3({
Expand Down

0 comments on commit b3e7a91

Please sign in to comment.