diff --git a/services/tenant-management-service/src/__tests__/acceptance/tenant.controller.acceptance.ts b/services/tenant-management-service/src/__tests__/acceptance/tenant.controller.acceptance.ts index 8d5bb14..0185acc 100644 --- a/services/tenant-management-service/src/__tests__/acceptance/tenant.controller.acceptance.ts +++ b/services/tenant-management-service/src/__tests__/acceptance/tenant.controller.acceptance.ts @@ -171,7 +171,6 @@ describe('TenantController', () => { .get('/tenants') .set('Authorization', token) .expect(STATUS_CODE.OK); - console.log(body); expect(body.length).to.eql(1); expect(body[0].name).to.eql(mockTenant.name); }); diff --git a/services/tenant-management-service/src/services/provisioning.service.ts b/services/tenant-management-service/src/services/provisioning.service.ts index cb1f2e2..9a572de 100644 --- a/services/tenant-management-service/src/services/provisioning.service.ts +++ b/services/tenant-management-service/src/services/provisioning.service.ts @@ -65,15 +65,19 @@ export class ProvisioningService throw new HttpErrors.InternalServerError(); } + const context = randomUUID(); + await this.eventConnector.publish({ type: EventTypes.TENANT_PROVISIONING, tenant: tenant, subscription: subscription, + secret: hmacSecret, + context: context, }); await this.webhookSecretRepo.set(tenant.id, { secret: hmacSecret, - context: randomUUID(), + context: context, }); await this.webhookSecretRepo.expire(