Yair Shkedi
01/18/2023, 10:22 AMimport { Matchers, MessageConsumerPact, asynchronousBodyHandler } from '@pact-foundation/pact';
import { work } from '../../../../../src/amqp/port/update-ds-risk-tag.port';
import * as dsRiskTagsUpdaterService from '../../../../../src/services/risk/tag/ds/ds-risk-tags-updater.service';
const { like } = Matchers;
import * as sinon from 'sinon';
const path = require('path');
describe('"orchestrator - data-catalog" - Msg Contract Test', () => {
const messagePact = new MessageConsumerPact({
consumer: 'orchestrator',
dir: path.resolve(process.cwd(), 'test/unit-tests/contractTests/pacts'),
log: path.resolve(process.cwd(), 'test/unit-tests/contractTests/logs', 'orch-data-catalog-msg-pact.log'),
provider: 'data-catalog-msg',
logLevel: 'info',
});
let sandbox;
before(function () {
sandbox = sinon.createSandbox();
sandbox.stub(dsRiskTagsUpdaterService, 'updateDsRiskTags').resolves();
});
after(function () {
sandbox.restore();
});
it('accepts an update of data source risk tags', () => {
return messagePact
.expectsToReceive('a product event update')
.withContent({
dsName: like('data source name'),
})
.withMetadata({
'content-type': 'application/json',
topic: 'catalog.object.update.ds.risk.object.routingKey',
})
.verify(asynchronousBodyHandler(work));
});
});
I want to upgrade to get new features, but it blocks me to upgrade.Timothy Jones
01/18/2023, 5:06 PMgiven, but I don’t think it is required.Timothy Jones
01/18/2023, 5:06 PMgiven in?)Timothy Jones
01/18/2023, 5:07 PMYair Shkedi
01/18/2023, 5:08 PMYair Shkedi
01/18/2023, 5:09 PMTimothy Jones
01/18/2023, 5:21 PMTimothy Jones
01/18/2023, 5:21 PMTimothy Jones
01/18/2023, 5:21 PMTimothy Jones
01/18/2023, 5:21 PMTimothy Jones
01/18/2023, 5:22 PMTimothy Jones
01/18/2023, 5:22 PMTimothy Jones
01/18/2023, 5:23 PMgiven is what you use to set the stateYair Shkedi
01/18/2023, 5:23 PMYair Shkedi
01/18/2023, 5:24 PMYair Shkedi
01/18/2023, 5:24 PMTimothy Jones
01/18/2023, 5:26 PMTimothy Jones
01/18/2023, 5:26 PMTimothy Jones
01/18/2023, 5:27 PMYair Shkedi
01/18/2023, 9:29 PMTimothy Jones
01/19/2023, 8:40 AMYair Shkedi
01/19/2023, 9:39 AMYair Shkedi
01/19/2023, 9:39 AMTimothy Jones
01/19/2023, 10:38 AMYair Shkedi
01/19/2023, 10:39 AMTimothy Jones
01/19/2023, 10:39 AMYair Shkedi
01/19/2023, 10:40 AMYair Shkedi
01/19/2023, 10:40 AM