|
3 | 3 | */ |
4 | 4 | import { describe, expect, it } from 'vitest' |
5 | 5 | import { |
6 | | - createCredentialBodySchema, |
7 | 6 | updateCredentialByIdBodySchema, |
8 | 7 | workspaceCredentialSchema, |
9 | 8 | } from '@/lib/api/contracts/credentials' |
@@ -47,24 +46,3 @@ describe('workspaceCredentialSchema unredacted', () => { |
47 | 46 | expect(workspaceCredentialSchema.safeParse(credential).success).toBe(false) |
48 | 47 | }) |
49 | 48 | }) |
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