File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ type Credential struct {
15
15
Type CredentialType `json:"type"`
16
16
Env map [string ]string `json:"env"`
17
17
Ephemeral bool `json:"ephemeral,omitempty"`
18
+ CheckParam string `json:"checkParam"`
18
19
ExpiresAt * time.Time `json:"expiresAt"`
19
20
RefreshToken string `json:"refreshToken"`
20
21
}
Original file line number Diff line number Diff line change @@ -1716,6 +1716,7 @@ func TestCredentials(t *testing.T) {
1716
1716
Type : CredentialTypeTool ,
1717
1717
Env : map [string ]string {"ENV" : "testing" },
1718
1718
RefreshToken : "my-refresh-token" ,
1719
+ CheckParam : "my-check-param" ,
1719
1720
})
1720
1721
require .NoError (t , err )
1721
1722
@@ -1732,6 +1733,7 @@ func TestCredentials(t *testing.T) {
1732
1733
require .Contains (t , cred .Env , "ENV" )
1733
1734
require .Equal (t , cred .Env ["ENV" ], "testing" )
1734
1735
require .Equal (t , cred .RefreshToken , "my-refresh-token" )
1736
+ require .Equal (t , cred .CheckParam , "my-check-param" )
1735
1737
1736
1738
// Delete
1737
1739
err = g .DeleteCredential (context .Background (), "testing" , name )
You can’t perform that action at this time.
0 commit comments