Skip to content

Commit fa2fc7f

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
refactor(oracle-epm): keep API contract tests provider-neutral
1 parent 3f631c6 commit fa2fc7f

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

apps/sim/lib/api/contracts/credentials.test.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44
import { describe, expect, it } from 'vitest'
55
import {
6-
createCredentialBodySchema,
76
updateCredentialByIdBodySchema,
87
workspaceCredentialSchema,
98
} from '@/lib/api/contracts/credentials'
@@ -47,24 +46,3 @@ describe('workspaceCredentialSchema unredacted', () => {
4746
expect(workspaceCredentialSchema.safeParse(credential).success).toBe(false)
4847
})
4948
})
50-
51-
describe('Oracle EPM service-account credential contract', () => {
52-
const valid = {
53-
workspaceId: '00000000-0000-4000-8000-000000000001',
54-
type: 'service_account' as const,
55-
providerId: 'oracle-epm-service-account',
56-
orgId: 'https://epm.example.com/gateway',
57-
clientId: 'integration.user@example.com',
58-
clientSecret: 'password',
59-
}
60-
61-
it('accepts the descriptor-required integration-user fields', () => {
62-
expect(createCredentialBodySchema.safeParse(valid).success).toBe(true)
63-
})
64-
65-
it.each(['orgId', 'clientId', 'clientSecret'] as const)('rejects a missing %s', (field) => {
66-
expect(createCredentialBodySchema.safeParse({ ...valid, [field]: undefined }).success).toBe(
67-
false
68-
)
69-
})
70-
})

0 commit comments

Comments
 (0)