Skip to content

Commit

Permalink
test(optimize): comment out test for Self-Managed
Browse files Browse the repository at this point in the history
This relates to #253
  • Loading branch information
jwulf committed Sep 18, 2024
1 parent 1650115 commit 486759e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/__tests__/optimize/optimize.integration.spec.ts
Original file line number Diff line number Diff line change
@@ -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 () => {
Expand Down

0 comments on commit 486759e

Please sign in to comment.