diff --git a/test/e2e/cli.spec.ts b/test/e2e/cli.spec.ts index 320ba20..5c8eece 100644 --- a/test/e2e/cli.spec.ts +++ b/test/e2e/cli.spec.ts @@ -7,7 +7,6 @@ import {expectToFail} from '../helpers/expect-to-fail'; interface InvokeCommandOptions { analyticsUrl?: string; - auth?: string; mock: string; providerName?: string; swagger: string; @@ -42,10 +41,6 @@ const invokeCommand = (options: InvokeCommandOptions): Promise => { command += ` --analyticsUrl ${options.analyticsUrl}`; } - if (options.auth) { - command += ` --user ${options.auth}`; - } - if (options.outputDepth) { command += ` --outputDepth ${options.outputDepth}`; } @@ -372,22 +367,6 @@ describe('swagger-mock-validator/cli', () => { ); }, 30000); - it('should make an authenticated request to the provided pact broker url when asked to do so', async () => { - const auth = 'user:pass'; - - await invokeCommand({ - auth, - mock: urlTo('test/e2e/fixtures/pact-broker.json'), - providerName: 'provider-1', - swagger: urlTo('test/e2e/fixtures/swagger-provider.json') - }); - - expect(mockPactBroker.get).toHaveBeenCalledWith( - jasmine.objectContaining({authorization: 'Basic dXNlcjpwYXNz'}), - jasmine.stringMatching('test/e2e/fixtures/pact-broker.json') - ); - }, 30000); - it('should format output objects to depth 0', async () => { const result = await invokeCommand({ mock: 'test/e2e/fixtures/pact-working-consumer.json',