Skip to content

Commit

Permalink
test: 💍 update ver for latest rest/sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
sansan committed Nov 12, 2024
1 parent e340444 commit fcb5505
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
4 changes: 2 additions & 2 deletions envs/6.3.0.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CHAIN_IMAGE=polymeshassociation/polymesh:6.3.0-staging-debian
SUBQUERY_INDEXER_IMAGE=polymeshassociation/polymesh-subquery:v15.1.0-alpha.2
SUBQUERY_INDEXER_IMAGE=polymeshassociation/polymesh-subquery:v17.0.1

SUBQUERY_QUERY_IMAGE=onfinality/subql-query:v2.11.0
REST_IMAGE=polymeshassociation/polymesh-rest-api:v5.5.0-alpha.1
REST_IMAGE=polymeshassociation/polymesh-rest-api:v6.1.0-alpha.1
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "Polymath Studios Inc.",
"license": "ISC",
"scripts": {
"test": "yarn test:setup && yarn test:run && yarn test:teardown",
"test": "yarn test:setup && yarn test:run",
"test:setup": "./scripts/setup.sh",
"test:run": "jest --maxWorkers=8",
"test:teardown": "./scripts/teardown.sh",
Expand Down Expand Up @@ -71,7 +71,7 @@
"@polkadot/wasm-crypto": "7.2.2",
"@polymeshassociation/hashicorp-vault-signing-manager": "^3.0.1",
"@polymeshassociation/local-signing-manager": "^3.1.0",
"@polymeshassociation/polymesh-sdk": "24.7.0-alpha.7",
"@polymeshassociation/polymesh-sdk": "26.2.0-alpha.4",
"cross-fetch": "^4.0.0",
"dotenv": "^16.0.3"
},
Expand Down
6 changes: 2 additions & 4 deletions src/__tests__/rest/claims/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ describe('CustomClaim', () => {
});
});

// TODO: re-enable once REST API is updated with latest alpha
it.skip('should list Claims issued by an identity', async () => {
it('should list Claims issued by an identity', async () => {
const result = await restClient.identities.getIssuedClaims(issuerDid);

expect(result).toMatchObject({
Expand All @@ -88,8 +87,7 @@ describe('CustomClaim', () => {
});
});

// TODO: re-enable once REST API is updated with latest alpha
it.skip('should list Claims associated with an identity', async () => {
it('should list Claims associated with an identity', async () => {
const result = await restClient.identities.getAssociatedClaims(targetDid);

expect(result).toMatchObject({
Expand Down
3 changes: 1 addition & 2 deletions src/__tests__/rest/claims/customClaim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ describe('CustomClaim', () => {
});
});

// TODO: re-enable once SDK supports scope retrieval for custom claims
it.skip('should find claim scopes by did', async () => {
it('should find claim scopes by did', async () => {
const result = await restClient.identities.findClaimScopesByDid(targetDid);

expect(result).toMatchObject({
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1509,10 +1509,10 @@
dependencies:
"@polymeshassociation/signing-manager-types" "^3.2.0"

"@polymeshassociation/polymesh-sdk@24.7.0-alpha.7":
version "24.7.0-alpha.7"
resolved "https://registry.yarnpkg.com/@polymeshassociation/polymesh-sdk/-/polymesh-sdk-24.7.0-alpha.7.tgz#dec674869d51eb4090746360b3636db451bd15d1"
integrity sha512-KrqSZOpI43IU6PBRNqUcJEudSz3A0fuOsAFyOrN5YWpIH9K8rEkY+BYEbJXSnyXDEYXULCaAjpgoP0YGTvkmfg==
"@polymeshassociation/polymesh-sdk@26.2.0-alpha.4":
version "26.2.0-alpha.4"
resolved "https://registry.yarnpkg.com/@polymeshassociation/polymesh-sdk/-/polymesh-sdk-26.2.0-alpha.4.tgz#9703c23d20f038569b24dfd1d84193700b8addc4"
integrity sha512-FkXi32kOjnvpglW6sMqF1uN1LuphUErOhUhdrS0UEx+U/ylPVQNJ2xv+oE4h4qsg6tf2wSsMPxlRmNUsLSXp0g==
dependencies:
"@apollo/client" "^3.8.1"
"@polkadot/api" "11.2.1"
Expand Down

0 comments on commit fcb5505

Please sign in to comment.