Cover HTTP 402 in oauth tests
This commit is contained in:
parent
93642529da
commit
61609db9ef
1 changed files with 9 additions and 0 deletions
|
|
@ -188,6 +188,15 @@ func Test_detectDeviceFlow(t *testing.T) {
|
|||
doFallback: true,
|
||||
wantErr: "",
|
||||
},
|
||||
{
|
||||
name: "402 payment required",
|
||||
args: args{
|
||||
statusCode: 402,
|
||||
values: nil,
|
||||
},
|
||||
doFallback: false,
|
||||
wantErr: "error: HTTP 402",
|
||||
},
|
||||
{
|
||||
name: "400 bad request",
|
||||
args: args{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue