google:fix missing expiration_time field isn't a problem for executables

This commit is contained in:
Ryan Kohler
2022-07-19 13:48:15 -07:00
parent 2104d58473
commit 96eb2344de
2 changed files with 18 additions and 18 deletions

View File

@@ -388,19 +388,6 @@ var failureTests = []struct {
expectedErr: missingFieldError(executableSource, "token_type"),
},
{
name: "Missing Expiration",
testEnvironment: testEnvironment{
envVars: executablesAllowed,
jsonResponse: &executableResponse{
Success: Bool(true),
Version: 1,
TokenType: "urn:ietf:params:oauth:token-type:jwt",
},
},
expectedErr: missingFieldError(executableSource, "expiration_time"),
},
{
name: "Token Expired",
testEnvironment: testEnvironment{
@@ -564,6 +551,19 @@ var successTests = []struct {
},
},
},
{
name: "Missing Expiration",
testEnvironment: testEnvironment{
envVars: executablesAllowed,
jsonResponse: &executableResponse{
Success: Bool(true),
Version: 1,
TokenType: "urn:ietf:params:oauth:token-type:jwt",
IdToken: "tokentokentoken",
},
},
},
}
func TestRetrieveExecutableSubjectTokenSuccesses(t *testing.T) {