Skip to content

Commit 053e720

Browse files
sownakdependabot[bot]Eengineer1Copilot
authored
fix: support for urlencoded and unencoded resourceName [DEV-5324] (#390)
* fix: support for urlencoded and unencoded resourceName Signed-off-by: Sownak Roy <[email protected]> * build(deps): Bump actions/download-artifact from 4 to 5 (#381) Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 5. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@v4...v5) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sownak Roy <[email protected]> * build(deps): Bump super-linter/super-linter from 7 to 8 (#377) Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter) from 7 to 8. - [Release notes](https://github.com/super-linter/super-linter/releases) - [Changelog](https://github.com/super-linter/super-linter/blob/main/CHANGELOG.md) - [Commits](super-linter/super-linter@v7...v8) --- updated-dependencies: - dependency-name: super-linter/super-linter dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sownak Roy <[email protected]> * build(deps): Bump actions/checkout from 4 to 5 (#383) Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sownak Roy <[email protected]> * build(deps): Bump amannn/action-semantic-pull-request from 5 to 6 (#382) Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from 5 to 6. - [Release notes](https://github.com/amannn/action-semantic-pull-request/releases) - [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/main/CHANGELOG.md) - [Commits](amannn/action-semantic-pull-request@v5...v6) --- updated-dependencies: - dependency-name: amannn/action-semantic-pull-request dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sownak Roy <[email protected]> * build(deps): Bump actions/setup-go from 5 to 6 (#387) Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](actions/setup-go@v5...v6) --- updated-dependencies: - dependency-name: actions/setup-go dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sownak Roy <[email protected]> * build(deps): Bump github.com/onsi/ginkgo/v2 from 2.23.4 to 2.25.3 (#388) Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.23.4 to 2.25.3. - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](onsi/ginkgo@v2.23.4...v2.25.3) --- updated-dependencies: - dependency-name: github.com/onsi/ginkgo/v2 dependency-version: 2.25.3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sownak Roy <[email protected]> * added testcase Signed-off-by: Sownak Roy <[email protected]> * Free-text syntax Co-authored-by: Copilot <[email protected]> --------- Signed-off-by: Sownak Roy <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tasos Derisiotis <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent c52e23a commit 053e720

File tree

13 files changed

+93
-53
lines changed

13 files changed

+93
-53
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616

17-
- uses: actions/setup-go@v5
17+
- uses: actions/setup-go@v6
1818
with:
1919
go-version-file: ./go.mod
2020
cache: true
@@ -40,7 +40,7 @@ jobs:
4040
IMAGE_NAME: ${{ github.repository }}
4141

4242
steps:
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@v5
4444

4545
- name: Set up Docker Buildx
4646
uses: docker/setup-buildx-action@v3

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
security-events: write
2424

2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v5
2727
with:
2828
fetch-depth: 0
2929

30-
- uses: actions/setup-go@v5
30+
- uses: actions/setup-go@v6
3131
with:
3232
go-version-file: ./go.mod
3333
cache: true

.github/workflows/lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717

1818
- name: Run Markdown link check
1919
uses: tcort/github-action-markdown-link-check@v1
@@ -28,9 +28,9 @@ jobs:
2828
runs-on: ubuntu-latest
2929

3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v5
3232

33-
- uses: actions/setup-go@v5
33+
- uses: actions/setup-go@v6
3434
with:
3535
go-version-file: ./go.mod
3636
# cache = false cause there is an open issue related to "File exists" error.
@@ -48,12 +48,12 @@ jobs:
4848
runs-on: ubuntu-latest
4949

5050
steps:
51-
- uses: actions/checkout@v4
51+
- uses: actions/checkout@v5
5252
with:
5353
fetch-depth: 0 # Required to fetch version
5454

5555
- name: Run Super Linter
56-
uses: super-linter/super-linter/slim@v7
56+
uses: super-linter/super-linter/slim@v8
5757
env:
5858
IGNORE_GITIGNORED_FILES: true
5959
DEFAULT_BRANCH: main

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v5
2525

26-
- uses: amannn/action-semantic-pull-request@v5
26+
- uses: amannn/action-semantic-pull-request@v6
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929
with:

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
EXECUTE_RELEASE: ${{ steps.execute-release.outputs.EXECUTE_RELEASE }}
2121

2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424
with:
2525
fetch-depth: 0 # Required to fetch version
2626
persist-credentials: false
@@ -75,12 +75,12 @@ jobs:
7575
if: needs.release-guard.outputs.EXECUTE_RELEASE == 'true'
7676

7777
steps:
78-
- uses: actions/checkout@v4
78+
- uses: actions/checkout@v5
7979
with:
8080
fetch-depth: 0
8181
persist-credentials: false
8282

83-
- uses: actions/setup-go@v5
83+
- uses: actions/setup-go@v6
8484
with:
8585
go-version-file: ./go.mod
8686
cache: true
@@ -115,7 +115,7 @@ jobs:
115115
runs-on: ubuntu-24.04-arm
116116

117117
steps:
118-
- uses: actions/checkout@v4
118+
- uses: actions/checkout@v5
119119
with:
120120
persist-credentials: false
121121

@@ -150,7 +150,7 @@ jobs:
150150
url: https://resolver.cheqd.net
151151

152152
steps:
153-
- uses: actions/checkout@v4
153+
- uses: actions/checkout@v5
154154
with:
155155
persist-credentials: false
156156

.github/workflows/staging.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: doctl registry login --expiry-seconds 600
2727

2828
- name: Download Docker image
29-
uses: actions/download-artifact@v4
29+
uses: actions/download-artifact@v5
3030
with:
3131
name: did-resolver-staging
3232

@@ -52,7 +52,7 @@ jobs:
5252
password: ${{ secrets.GITHUB_TOKEN }}
5353

5454
- name: Download Docker image
55-
uses: actions/download-artifact@v4
55+
uses: actions/download-artifact@v5
5656
with:
5757
name: did-resolver-staging
5858

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616

17-
- uses: actions/setup-go@v5
17+
- uses: actions/setup-go@v6
1818
with:
1919
go-version-file: ./go.mod
2020
cache: true
@@ -34,10 +34,10 @@ jobs:
3434
IMAGE_NAME: ${{ github.repository }}
3535

3636
steps:
37-
- uses: actions/checkout@v4
37+
- uses: actions/checkout@v5
3838

3939
- name: Download Docker image
40-
uses: actions/download-artifact@v4
40+
uses: actions/download-artifact@v5
4141
with:
4242
name: did-resolver-staging
4343

@@ -47,7 +47,7 @@ jobs:
4747
- name: Set up Docker container for test
4848
run: docker compose -f tests/docker-compose-testing.yml up --detach --no-build
4949

50-
- uses: actions/setup-go@v5
50+
- uses: actions/setup-go@v6
5151
with:
5252
go-version-file: ./go.mod
5353
cache: true

go.mod

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,21 @@ require (
1212
github.com/lestrrat-go/jwx v1.2.31
1313
github.com/mr-tron/base58 v1.2.0
1414
github.com/multiformats/go-multibase v0.2.0
15-
github.com/onsi/ginkgo/v2 v2.23.4
16-
github.com/onsi/gomega v1.37.0
15+
github.com/onsi/ginkgo/v2 v2.25.3
16+
github.com/onsi/gomega v1.38.2
1717
github.com/rs/zerolog v1.34.0
1818
github.com/spf13/viper v1.20.1
1919
github.com/swaggo/echo-swagger v1.4.1
2020
github.com/swaggo/swag v1.16.4
2121
github.com/timewasted/go-accept-headers v0.0.0-20130320203746-c78f304b1b09
2222
google.golang.org/grpc v1.74.1
23-
google.golang.org/protobuf v1.36.6
23+
google.golang.org/protobuf v1.36.7
2424
)
2525

2626
require (
2727
cosmossdk.io/api v0.7.6 // indirect
2828
github.com/KyleBanks/depth v1.2.1 // indirect
29+
github.com/Masterminds/semver/v3 v3.4.0 // indirect
2930
github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect
3031
github.com/cosmos/gogoproto v1.7.0 // indirect
3132
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
@@ -67,13 +68,14 @@ require (
6768
github.com/valyala/fasttemplate v1.2.2 // indirect
6869
go.uber.org/automaxprocs v1.6.0 // indirect
6970
go.uber.org/multierr v1.10.0 // indirect
70-
golang.org/x/crypto v0.38.0 // indirect
71+
go.yaml.in/yaml/v3 v3.0.4 // indirect
72+
golang.org/x/crypto v0.41.0 // indirect
7173
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
72-
golang.org/x/net v0.40.0 // indirect
73-
golang.org/x/sys v0.33.0 // indirect
74-
golang.org/x/text v0.25.0 // indirect
74+
golang.org/x/net v0.43.0 // indirect
75+
golang.org/x/sys v0.35.0 // indirect
76+
golang.org/x/text v0.28.0 // indirect
7577
golang.org/x/time v0.11.0 // indirect
76-
golang.org/x/tools v0.31.0 // indirect
78+
golang.org/x/tools v0.36.0 // indirect
7779
google.golang.org/genproto/googleapis/api v0.0.0-20250528174236-200df99c418a // indirect
7880
google.golang.org/genproto/googleapis/rpc v0.0.0-20250528174236-200df99c418a // indirect
7981
gopkg.in/yaml.v2 v2.4.0 // indirect

go.sum

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ cosmossdk.io/api v0.3.1 h1:NNiOclKRR0AOlO4KIqeaG6PS6kswOMhHD0ir0SscNXE=
22
cosmossdk.io/api v0.3.1/go.mod h1:DfHfMkiNA2Uhy8fj0JJlOCYOBp4eWUUJ1te5zBGNyIw=
33
github.com/KyleBanks/depth v1.2.1 h1:5h8fQADFrWtarTdtDudMmGsC7GPbOAu6RVB3ffsVFHc=
44
github.com/KyleBanks/depth v1.2.1/go.mod h1:jzSb9d0L43HxTQfT+oSA1EEp2q+ne2uh6XgeJcm8brE=
5+
github.com/Masterminds/semver/v3 v3.4.0 h1:Zog+i5UMtVoCU8oKka5P7i9q9HgrJeGzI9SA1Xbatp0=
6+
github.com/Masterminds/semver/v3 v3.4.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
57
github.com/cheqd/cheqd-node/api/v2 v2.4.0 h1:JHVMwyhYjCqeHvvCGVUj/n2mejfo7Nikqo8uRzHygdc=
68
github.com/cheqd/cheqd-node/api/v2 v2.4.0/go.mod h1:lyZmUId20A8PW7AbO3/29ElhN5vS0lBeeosZe1sqgSk=
79
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
@@ -103,10 +105,10 @@ github.com/multiformats/go-base36 v0.1.0/go.mod h1:kFGE83c6s80PklsHO9sRn2NCoffoR
103105
github.com/multiformats/go-multibase v0.2.0 h1:isdYCVLvksgWlMW9OZRYJEa9pZETFivncJHmHnnd87g=
104106
github.com/multiformats/go-multibase v0.2.0/go.mod h1:bFBZX4lKCA/2lyOFSAoKH5SS6oPyjtnzK/XTFDPkNuk=
105107
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
106-
github.com/onsi/ginkgo/v2 v2.23.4 h1:ktYTpKJAVZnDT4VjxSbiBenUjmlL/5QkBEocaWXiQus=
107-
github.com/onsi/ginkgo/v2 v2.23.4/go.mod h1:Bt66ApGPBFzHyR+JO10Zbt0Gsp4uWxu5mIOTusL46e8=
108-
github.com/onsi/gomega v1.37.0 h1:CdEG8g0S133B4OswTDC/5XPSzE1OeP29QOioj2PID2Y=
109-
github.com/onsi/gomega v1.37.0/go.mod h1:8D9+Txp43QWKhM24yyOBEdpkzN8FvJyAwecBgsU4KU0=
108+
github.com/onsi/ginkgo/v2 v2.25.3 h1:Ty8+Yi/ayDAGtk4XxmmfUy4GabvM+MegeB4cDLRi6nw=
109+
github.com/onsi/ginkgo/v2 v2.25.3/go.mod h1:43uiyQC4Ed2tkOzLsEYm7hnrb7UJTWHYNsuy3bG/snE=
110+
github.com/onsi/gomega v1.38.2 h1:eZCjf2xjZAqe+LeWvKb5weQ+NcPwX84kqJ0cZNxok2A=
111+
github.com/onsi/gomega v1.38.2/go.mod h1:W2MJcYxRGV63b418Ai34Ud0hEdTVXq9NW9+Sx6uXf3k=
110112
github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M=
111113
github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xlb6rzQu9GuUkc=
112114
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
@@ -172,35 +174,37 @@ go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs=
172174
go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8=
173175
go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=
174176
go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
175-
golang.org/x/crypto v0.38.0 h1:jt+WWG8IZlBnVbomuhg2Mdq0+BBQaHbtqHEFEigjUV8=
176-
golang.org/x/crypto v0.38.0/go.mod h1:MvrbAqul58NNYPKnOra203SB9vpuZW0e+RRZV+Ggqjw=
177+
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
178+
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
179+
golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4=
180+
golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc=
177181
golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb h1:xIApU0ow1zwMa2uL1VDNeQlNVFTWMQxZUZCMDy0Q4Us=
178182
golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc=
179-
golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU=
180-
golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww=
181-
golang.org/x/net v0.40.0 h1:79Xs7wF06Gbdcg4kdCCIQArK11Z1hr5POQ6+fIYHNuY=
182-
golang.org/x/net v0.40.0/go.mod h1:y0hY0exeL2Pku80/zKK7tpntoX23cqL3Oa6njdgRtds=
183-
golang.org/x/sync v0.14.0 h1:woo0S4Yywslg6hp4eUFjTVOyKt0RookbpAHG4c1HmhQ=
184-
golang.org/x/sync v0.14.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
183+
golang.org/x/mod v0.27.0 h1:kb+q2PyFnEADO2IEF935ehFUXlWiNjJWtRNgBLSfbxQ=
184+
golang.org/x/mod v0.27.0/go.mod h1:rWI627Fq0DEoudcK+MBkNkCe0EetEaDSwJJkCcjpazc=
185+
golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE=
186+
golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg=
187+
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
188+
golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
185189
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
186190
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
187191
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
188-
golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw=
189-
golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
190-
golang.org/x/text v0.25.0 h1:qVyWApTSYLk/drJRO5mDlNYskwQznZmkpV2c8q9zls4=
191-
golang.org/x/text v0.25.0/go.mod h1:WEdwpYrmk1qmdHvhkSTNPm3app7v4rsT8F2UD6+VHIA=
192+
golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI=
193+
golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
194+
golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=
195+
golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU=
192196
golang.org/x/time v0.11.0 h1:/bpjEDfN9tkoN/ryeYHnv5hcMlc8ncjMcM4XBk5NWV0=
193197
golang.org/x/time v0.11.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg=
194-
golang.org/x/tools v0.31.0 h1:0EedkvKDbh+qistFTd0Bcwe/YLh4vHwWEkiI0toFIBU=
195-
golang.org/x/tools v0.31.0/go.mod h1:naFTU+Cev749tSJRXJlna0T3WxKvb1kWEx15xA4SdmQ=
198+
golang.org/x/tools v0.36.0 h1:kWS0uv/zsvHEle1LbV5LE8QujrxB3wfQyxHfhOk0Qkg=
199+
golang.org/x/tools v0.36.0/go.mod h1:WBDiHKJK8YgLHlcQPYQzNCkUxUypCaa5ZegCVutKm+s=
196200
google.golang.org/genproto/googleapis/api v0.0.0-20250528174236-200df99c418a h1:SGktgSolFCo75dnHJF2yMvnns6jCmHFJ0vE4Vn2JKvQ=
197201
google.golang.org/genproto/googleapis/api v0.0.0-20250528174236-200df99c418a/go.mod h1:a77HrdMjoeKbnd2jmgcWdaS++ZLZAEq3orIOAEIKiVw=
198202
google.golang.org/genproto/googleapis/rpc v0.0.0-20250528174236-200df99c418a h1:v2PbRU4K3llS09c7zodFpNePeamkAwG3mPrAery9VeE=
199203
google.golang.org/genproto/googleapis/rpc v0.0.0-20250528174236-200df99c418a/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A=
200204
google.golang.org/grpc v1.74.1 h1:1liE5AupsvQAxKhrVPU9yhMEnyjmMi+F6FUmP9EB2ts=
201205
google.golang.org/grpc v1.74.1/go.mod h1:CtQ+BGjaAIXHs/5YS3i473GqwBBa1zGQNevxdeBEXrM=
202-
google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY=
203-
google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
206+
google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A=
207+
google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
204208
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
205209
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
206210
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

tests/integration/rest/resource/query/resource_name/positive_test.go

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"encoding/json"
77
"fmt"
88
"net/http"
9+
"net/url"
910

1011
testconstants "github.com/cheqd/did-resolver/tests/constants"
1112
utils "github.com/cheqd/did-resolver/tests/integration/rest"
@@ -48,6 +49,36 @@ var _ = DescribeTable("Positive: Get Resource with resourceName query", func(tes
4849
},
4950
),
5051

52+
Entry(
53+
"can get resource with a space in resourceName",
54+
utils.PositiveTestCase{
55+
DidURL: fmt.Sprintf(
56+
"http://%s/1.0/identifiers/%s?resourceName=%s",
57+
testconstants.TestHostAddress,
58+
testconstants.UUIDStyleTestnetDid,
59+
url.QueryEscape("Demo Resource"),
60+
),
61+
ResolutionType: testconstants.DefaultResolutionType,
62+
ExpectedJSONPath: "../../../testdata/query/resource_name/unencoded_resource.json",
63+
ExpectedStatusCode: http.StatusOK,
64+
},
65+
),
66+
67+
Entry(
68+
"can get resource with a URL-encoded resourceName query parameter",
69+
utils.PositiveTestCase{
70+
DidURL: fmt.Sprintf(
71+
"http://%s/1.0/identifiers/%s?resourceName=%s",
72+
testconstants.TestHostAddress,
73+
"did:cheqd:testnet:a2fb42df-c092-4c15-8a36-685445c6ce9a",
74+
"Another%20Ecosystem%20Name",
75+
),
76+
ResolutionType: testconstants.DefaultResolutionType,
77+
ExpectedJSONPath: "../../../testdata/query/resource_name/encoded_resource.json",
78+
ExpectedStatusCode: http.StatusOK,
79+
},
80+
),
81+
5182
// TODO: add unit test for testing get resource with an old 16 characters INDY style DID
5283
// and resourceName query parameter.
5384

0 commit comments

Comments
 (0)