Skip to content

Commit 6ff1084

Browse files
committed
Merge branch 'feature/dependency_bump' into develop
2 parents 7a10022 + 9b5ce58 commit 6ff1084

File tree

4 files changed

+126
-356
lines changed

4 files changed

+126
-356
lines changed

features/delete_policies.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ Feature: Behaviour of application when performing requests against /v1/policies
4545
When I DELETE "/v1/policies/publisher"
4646
Then the HTTP status code should be "204"
4747

48-
Scenario: [Test #2] DELETE /v1/policies/publisher with invalid JWT token in header - the response status is 403 (forbidden)
48+
Scenario: [Test #2] DELETE /v1/policies/publisher with invalid JWT token in header - the response status is 401
4949
Given I am a publisher user with invalid auth token
5050
When I DELETE "/v1/policies/publisher"
51-
Then the HTTP status code should be "403"
51+
Then the HTTP status code should be "401"
5252

5353
Scenario: [Test #3] DELETE /v1/policies/viewer to fetch a policy having all parameters
5454
Given I am a viewer user

features/get_policies.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ Feature: Behaviour of application when performing requests against /v1/policies
5656
}
5757
"""
5858

59-
Scenario: [Test #2] GET /v1/policies/publisher with invalid JWT token in header - the response status is 403 (forbidden)
59+
Scenario: [Test #2] GET /v1/policies/publisher with invalid JWT token in header - the response status is 401
6060
Given I am a publisher user with invalid auth token
6161
When I GET "/v1/policies/publisher"
62-
Then the HTTP status code should be "403"
62+
Then the HTTP status code should be "401"
6363

6464
Scenario: [Test #3] GET /v1/policies/viewer to fetch a policy having all parameters
6565
Given I am a viewer user

go.mod

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,64 +2,74 @@ module github.com/ONSdigital/dp-permissions-api
22

33
go 1.17
44

5-
replace github.com/spf13/viper => github.com/spf13/viper v1.9.0
5+
replace github.com/spf13/cobra => github.com/spf13/cobra v1.4.0
66

77
require (
8-
github.com/ONSdigital/dp-authorisation/v2 v2.17.0
9-
github.com/ONSdigital/dp-component-test v0.6.3
10-
github.com/ONSdigital/dp-healthcheck v1.2.3
11-
github.com/ONSdigital/dp-mongodb/v3 v3.0.0
12-
github.com/ONSdigital/dp-net v1.2.0
13-
github.com/ONSdigital/log.go/v2 v2.1.0
8+
github.com/ONSdigital/dp-authorisation/v2 v2.19.0
9+
github.com/ONSdigital/dp-component-test v0.7.0
10+
github.com/ONSdigital/dp-healthcheck v1.3.0
11+
github.com/ONSdigital/dp-mongodb/v3 v3.0.2
12+
github.com/ONSdigital/dp-net v1.4.1
13+
github.com/ONSdigital/log.go/v2 v2.2.0
1414
github.com/cucumber/godog v0.12.2
15-
github.com/gofrs/uuid v4.1.0+incompatible
15+
github.com/gofrs/uuid v4.2.0+incompatible
1616
github.com/gorilla/mux v1.8.0
1717
github.com/kelseyhightower/envconfig v1.4.0
1818
github.com/pkg/errors v0.9.1
1919
github.com/smartystreets/goconvey v1.7.2
20-
go.mongodb.org/mongo-driver v1.8.0
20+
go.mongodb.org/mongo-driver v1.9.1
2121
)
2222

2323
require (
2424
github.com/ONSdigital/dp-api-clients-go v1.43.0 // indirect
25-
github.com/ONSdigital/dp-api-clients-go/v2 v2.92.2 // indirect
26-
github.com/ONSdigital/dp-mongodb-in-memory v1.1.0 // indirect
27-
github.com/ONSdigital/dp-net/v2 v2.1.0 // indirect
25+
github.com/ONSdigital/dp-api-clients-go/v2 v2.140.2 // indirect
26+
github.com/ONSdigital/dp-mongodb-in-memory v1.3.1 // indirect
27+
github.com/ONSdigital/dp-net/v2 v2.4.0 // indirect
2828
github.com/ONSdigital/dp-rchttp v1.0.0 // indirect
2929
github.com/ONSdigital/go-ns v0.0.0-20210916104633-ac1c1c52327e // indirect
30+
github.com/aws/aws-sdk-go v1.44.30 // indirect
31+
github.com/chromedp/cdproto v0.0.0-20211126220118-81fa0469ad77 // indirect
32+
github.com/chromedp/chromedp v0.7.6 // indirect
33+
github.com/chromedp/sysutil v1.0.0 // indirect
3034
github.com/cucumber/gherkin-go/v19 v19.0.3 // indirect
3135
github.com/cucumber/messages-go/v16 v16.0.1 // indirect
3236
github.com/davecgh/go-spew v1.1.1 // indirect
3337
github.com/fatih/color v1.13.0 // indirect
3438
github.com/go-stack/stack v1.8.1 // indirect
35-
github.com/golang-jwt/jwt/v4 v4.2.0 // indirect
39+
github.com/gobwas/httphead v0.1.0 // indirect
40+
github.com/gobwas/pool v0.2.1 // indirect
41+
github.com/gobwas/ws v1.1.0 // indirect
42+
github.com/golang-jwt/jwt/v4 v4.4.1 // indirect
3643
github.com/golang/snappy v0.0.4 // indirect
37-
github.com/gopherjs/gopherjs v0.0.0-20220104163920-15ed2e8cf2bd // indirect
44+
github.com/gopherjs/gopherjs v1.17.2 // indirect
3845
github.com/hashicorp/go-immutable-radix v1.3.0 // indirect
3946
github.com/hashicorp/go-memdb v1.3.0 // indirect
4047
github.com/hashicorp/golang-lru v0.5.4 // indirect
4148
github.com/hokaccha/go-prettyjson v0.0.0-20211117102719-0474bc63780f // indirect
49+
github.com/jmespath/go-jmespath v0.4.0 // indirect
50+
github.com/josharian/intern v1.0.0 // indirect
4251
github.com/jtolds/gls v4.20.0+incompatible // indirect
4352
github.com/justinas/alice v1.2.0 // indirect
44-
github.com/klauspost/compress v1.13.6 // indirect
53+
github.com/klauspost/compress v1.15.6 // indirect
4554
github.com/kr/text v0.2.0 // indirect
55+
github.com/mailru/easyjson v0.7.7 // indirect
4656
github.com/mattn/go-colorable v0.1.12 // indirect
4757
github.com/mattn/go-isatty v0.0.14 // indirect
4858
github.com/maxcnunes/httpfake v1.2.4 // indirect
4959
github.com/pmezard/go-difflib v1.0.0 // indirect
50-
github.com/smartystreets/assertions v1.2.1 // indirect
51-
github.com/spf13/afero v1.6.0 // indirect
60+
github.com/smartystreets/assertions v1.13.0 // indirect
61+
github.com/spf13/afero v1.8.2 // indirect
5262
github.com/spf13/pflag v1.0.5 // indirect
53-
github.com/square/mongo-lock v0.0.0-20201208161834-4db518ed7fb2 // indirect
63+
github.com/square/mongo-lock v0.0.0-20220601164918-701ecf357cd7 // indirect
5464
github.com/stretchr/testify v1.7.0 // indirect
5565
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
56-
github.com/xdg-go/scram v1.0.2 // indirect
57-
github.com/xdg-go/stringprep v1.0.2 // indirect
66+
github.com/xdg-go/scram v1.1.1 // indirect
67+
github.com/xdg-go/stringprep v1.0.3 // indirect
5868
github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a // indirect
59-
golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect
60-
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
61-
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
62-
golang.org/x/sys v0.0.0-20220204135822-1c1b9b1eba6a // indirect
69+
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect
70+
golang.org/x/net v0.0.0-20220607020251-c690dde0001d // indirect
71+
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f // indirect
72+
golang.org/x/sys v0.0.0-20220608164250-635b8c9b7f68 // indirect
6373
golang.org/x/text v0.3.7 // indirect
6474
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
6575
)

0 commit comments

Comments
 (0)