Skip to content

Commit

Permalink
fix: downgrade @ew-did-registry/did-ipfs-store@0.7.1-alpha.816.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Jun 21, 2023
1 parent 138e671 commit 35711bc
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 243 deletions.
18 changes: 5 additions & 13 deletions e2e/claims.service.e2e.ts
@@ -1,5 +1,4 @@
import jsonwebtoken from 'jsonwebtoken';
import { ChildProcess } from 'child_process';
import {
IRoleDefinitionV2,
IssuerFields,
Expand Down Expand Up @@ -46,10 +45,7 @@ import { ProofVerifier } from '@ew-did-registry/claims';
import { ClaimManager } from '../ethers/ClaimManager';
import { RoleEIP191JWT } from '@energyweb/vc-verification';
import { JwtPayload } from '@ew-did-registry/jwt';
import {
shutdownIpfsCluster,
spawnIpfsCluster,
} from './utils/setUpIpfsCluster';
import { shutDownIpfsDaemon, spawnIpfsDaemon } from './utils/setup-ipfs';

const { namehash, id } = utils;

Expand Down Expand Up @@ -246,7 +242,6 @@ describe('Сlaim tests', () => {
let claimManager: ClaimManager;
let didRegistry: DidRegistry;
let verifiableCredentialsService: VerifiableCredentialsServiceBase;
let cluster: ChildProcess;

beforeEach(async () => {
jest.clearAllMocks();
Expand Down Expand Up @@ -355,12 +350,9 @@ describe('Сlaim tests', () => {
returnSteps: false,
});

cluster = await spawnIpfsCluster();
({ didRegistry, claimsService } = await connectToDidRegistry({
protocol: 'http',
host: 'localhost',
port: '8080',
}));
({ didRegistry, claimsService } = await connectToDidRegistry(
await spawnIpfsDaemon()
));
mockGetAllowedRoles.mockImplementation(async (issuer) => {
const roleDefs = Object.values(roles);
const isRoleIssuerOfRole = await Promise.all(
Expand Down Expand Up @@ -391,7 +383,7 @@ describe('Сlaim tests', () => {
});

afterEach(async () => {
shutdownIpfsCluster(cluster);
await shutDownIpfsDaemon();
});

describe('Role claim tests', () => {
Expand Down

0 comments on commit 35711bc

Please sign in to comment.