Skip to content

Commit

Permalink
Updated test recordings
Browse files Browse the repository at this point in the history
  • Loading branch information
duedares-rvj committed Dec 10, 2024
1 parent aed0774 commit 3ad4800
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions authentication/ciba_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ func TestCIBA_Initiate(t *testing.T) {

// Call the Initiate method of the CIBA manager
resp, err := authAPI.CIBA.Initiate(context.Background(), ciba.Request{
ClientID: mgmtClientID,
ClientSecret: mgmtClientSecret,
ClientID: clientID,
ClientSecret: clientSecret,
Scope: "openid",
LoginHint: map[string]string{
"format": "iss_sub",
Expand All @@ -39,8 +39,8 @@ func TestCIBANegative_Initiate(t *testing.T) {
configureHTTPTestRecordings(t, authAPI)

_, err := authAPI.CIBA.Initiate(context.Background(), ciba.Request{
ClientID: mgmtClientID,
ClientSecret: mgmtClientSecret,
ClientID: clientID,
ClientSecret: clientSecret,
Scope: "openid",
})

Expand All @@ -51,8 +51,8 @@ func TestCIBANegative_Initiate(t *testing.T) {
configureHTTPTestRecordings(t, authAPI)

_, err := authAPI.CIBA.Initiate(context.Background(), ciba.Request{
ClientID: mgmtClientID,
ClientSecret: mgmtClientSecret,
ClientID: clientID,
ClientSecret: clientSecret,
Scope: "openid",
LoginHint: map[string]string{
"format": "iss_sub",
Expand All @@ -69,8 +69,8 @@ func TestCIBANegative_Initiate(t *testing.T) {
configureHTTPTestRecordings(t, authAPI)

_, err := authAPI.CIBA.Initiate(context.Background(), ciba.Request{
ClientID: mgmtClientID,
ClientSecret: mgmtClientSecret,
ClientID: clientID,
ClientSecret: clientSecret,
Scope: "tempID",
LoginHint: map[string]string{
"format": "iss_sub",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ interactions:
- application/json; charset=utf-8
status: 400 Bad Request
code: 400
duration: 394.13825ms
duration: 348.832459ms
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ interactions:
- application/json; charset=utf-8
status: 400 Bad Request
code: 400
duration: 340.789875ms
duration: 350.968333ms
4 changes: 2 additions & 2 deletions test/data/recordings/authentication/TestCIBA_Initiate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ interactions:
trailer: {}
content_length: -1
uncompressed: true
body: '{"auth_req_id":"WQJQFbnCpBr8qHEDxQT4jFBq5ceTei2t9Kfas1CFAEe19odPJYOUCJvZcFy4A2Ki","expires_in":300,"interval":5}'
body: '{"auth_req_id":"XyVW8Z3HHmSXMGYUOhNRK6x7Smti6w_Jb4NEXWeR6FNXl-c6OEMp3n5qPrvqGm6M","expires_in":300,"interval":5}'
headers:
Content-Type:
- application/json; charset=utf-8
status: 200 OK
code: 200
duration: 798.216458ms
duration: 650.248083ms

0 comments on commit 3ad4800

Please sign in to comment.