From 486759ee1705056c16f6f8e602812531d1532649 Mon Sep 17 00:00:00 2001 From: Josh Wulf Date: Thu, 19 Sep 2024 11:34:46 +1200 Subject: [PATCH] test(optimize): comment out test for Self-Managed This relates to #253 --- .../optimize/optimize.integration.spec.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/__tests__/optimize/optimize.integration.spec.ts b/src/__tests__/optimize/optimize.integration.spec.ts index fceea2ce..fda62f2a 100644 --- a/src/__tests__/optimize/optimize.integration.spec.ts +++ b/src/__tests__/optimize/optimize.integration.spec.ts @@ -1,16 +1,15 @@ -import { promises as fsPromises } from 'fs' - import { OptimizeApiClient } from '../../optimize/lib/OptimizeApiClient' +/** + * Automatically spun up environments for testing do not have data in them for read operations from Optimize. + * So this test 404s as expected. + * It is testing that we can auth correctly, and access the endpoint. + */ +// Test disabled. See: https://github.com/camunda/camunda-8-js-sdk/issues/253 xtest('Can get Dashboards', async () => { const id = '8a7103a7-c086-48f8-b5b7-a7f83e864688' const client = new OptimizeApiClient() - const res = await client.exportDashboardDefinitions([id]) - await fsPromises.writeFile( - 'exported-dashboard.json', - JSON.stringify(res, null, 2) - ) - expect(res).toBeTruthy() + await expect(client.exportDashboardDefinitions([id])).rejects.toThrow('404') }) test('Can get readiness', async () => {