Class com.ibm.ws.security.social.internal.utils.OpenShiftUserApiUtilsTest

78

tests

0

failures

0

ignored

0.092s

duration

100%

successful

Tests

Test Duration Result
correctJSONTest 0.021s passed
emailDoesNotExistInNameNoDefaultValue 0.002s passed
emailDoesNotExistInNameWithDefaultValue 0.004s passed
emailExistsInUserCorrectType 0.001s passed
emailExistsInUserIncorrectType 0.001s passed
emptyJSONTest 0.001s passed
groupsIsEmpty 0.001s passed
groupsIsNotJsonArray 0.001s passed
jsonResponseStatusIsFailure 0.001s passed
missingUserKeyFromResponse 0s passed
nullJSONTest 0s passed
responseIsNotJSONObject 0.003s passed
statusKeyDoesNotExist 0.001s passed
test_addGroupInfoToResult_noProjectInUserMetadata 0.001s passed
test_addGroupInfoToResult_nullGroupNameAttribute 0.001s passed
test_addGroupInfoToResult_originalResponseIncludesGroups 0.001s passed
test_addGroupInfoToResult_singleCharacterProject 0.001s passed
test_addGroupNameToResponse_emptyGroups 0s passed
test_addGroupNameToResponse_emptyUserMap 0.001s passed
test_addGroupNameToResponse_groupEntryWrongType 0.001s passed
test_addGroupNameToResponse_nonEmptyGroups 0s passed
test_addGroupsFromOriginalApiResponse_arrayEntry 0.001s passed
test_addGroupsFromOriginalApiResponse_missingGroups 0.001s passed
test_addGroupsFromOriginalApiResponse_oneEntry 0s passed
test_createUserApiRequestBody_nonEmptyAccessToken 0s passed
test_createUserApiRequestBody_nullAccessToken 0s passed
test_getBooleanValueFromJson 0s passed
test_getBooleanValueFromJson_emptyJsonResponse 0.001s passed
test_getBooleanValueFromJson_keyValueNotBoolean 0.001s passed
test_getBooleanValueFromJson_missingKey 0s passed
test_getJsonObjectValueFromJson 0s passed
test_getJsonObjectValueFromJson_emptyJsonResponse 0s passed
test_getJsonObjectValueFromJson_keyValueNotJsonObject 0.001s passed
test_getJsonObjectValueFromJson_missingKey 0s passed
test_getProjectName 0.001s passed
test_getProjectName_allColons 0s passed
test_getProjectName_keyMissing 0.001s passed
test_getProjectName_missingProject 0s passed
test_getStatusJsonObjectFromResponse 0.001s passed
test_getStatusJsonObjectFromResponse_emptyResponseObject 0.001s passed
test_getStatusJsonObjectFromResponse_emptyStatusEntry 0.003s passed
test_getStatusJsonObjectFromResponse_failureStatus_includesMessage 0.001s passed
test_getStatusJsonObjectFromResponse_failureStatus_includesMessage_messageNotAString 0s passed
test_getStatusJsonObjectFromResponse_failureStatus_noMessage 0.001s passed
test_getStatusJsonObjectFromResponse_nonEmptyResponseObject_missingStatus 0s passed
test_getStatusJsonObjectFromResponse_statusEntryNonFailureString 0s passed
test_getStatusJsonObjectFromResponse_statusEntryNotJsonObject 0.001s passed
test_getUserApiResponse_nullAccessToken 0.013s passed
test_getUserJsonObjectFromResponse_emptyResponseObject 0s passed
test_getUserJsonObjectFromResponse_responseContainsError 0s passed
test_modifyUsername_missingUsernameAttribute 0.001s passed
test_modifyUsername_nonServiceAccount 0s passed
test_modifyUsername_nullUsernameAttribute 0.001s passed
test_modifyUsername_serviceAccount_groupAndNameMatchPrefix 0.001s passed
test_modifyUsername_serviceAccount_noGroupOrName 0.001s passed
test_modifyUsername_serviceAccount_typical 0.001s passed
test_modifyUsername_usernameAttributeEntryWrongType 0.001s passed
test_modifyUsername_usernameIsEmpty 0s passed
test_readResponseAsJsonObject_emptyJsonResponse 0s passed
test_readResponseAsJsonObject_emptyResponse 0s passed
test_readResponseAsJsonObject_nonJsonResponse 0.001s passed
test_readResponseAsJsonObject_normalJsonResponse 0s passed
test_readResponseAsJsonObject_nullResponse 0s passed
test_readServiceAccountIntrospectResponse_unexpectedStatus 0.001s passed
test_readUserApiResponse_unexpectedStatus 0.001s passed
test_sendServiceAccountIntrospectRequest_emptyServiceAccountToken 0.001s passed
test_sendServiceAccountIntrospectRequest_nonEmptyServiceAccountToken 0.001s passed
test_sendServiceAccountIntrospectRequest_nullServiceAccountToken 0.001s passed
test_sendUserApiRequest_emptyAccessToken 0.001s passed
test_sendUserApiRequest_nonEmptyAccessToken 0.001s passed
test_sendUserApiRequest_nullAccessToken 0.001s passed
userKeyDoesNotExist 0s passed
userNameAttributeIsJunk 0.001s passed
userResponseApiUserEmpty 0.001s passed
usernameAttributeDoesNotExist 0.001s passed
usernameAttributeIncorrectType 0.001s passed
usernameAttributeIncorrectTypeInteger 0.001s passed
usernameAttributeSuccess 0.001s passed

Standard output

    TrConfigZapper.zapTrConfig : start invoke init()
init: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@f69bebf
[WARNING ] CWWKS5464E: JSON Web Token (JWT) consumer functionality might not be available for the social login configuration [null] because the service for the specified social login configuration cannot be found.
[WARNING ] CWWKS5464E: JSON Web Token (JWT) consumer functionality might not be available for the social login configuration [null] because the service for the specified social login configuration cannot be found.
[WARNING ] CWWKS5416W: The outgoing request to [https://some-domain.com/path/token?with=some&query=string] might not succeed because the [client_id] parameter is missing or empty.
[WARNING ] CWWKS5416W: The outgoing request to [https://some-domain.com/path/token] might not succeed because the [client_secret] parameter is missing or empty.
[WARNING ] CWWKS5486W: Tokens cannot be extracted from the response from the [https://some-domain.com/path/token] endpoint. The response map from the endpoint was [null].
[WARNING ] CWWKS5486W: Tokens cannot be extracted from the response from the [https://some-domain.com/path/token] endpoint. The response map from the endpoint was [{key1=value1, key2=value2}].
[WARNING ] CWWKS5487W: The response from the [https://some-domain.com/path/token?with=some&query=string] endpoint was not in the expected JSON format. The error was [Parsing error: org.jose4j.json.internal.json_simple.parser.ParseException: Unexpected token END OF FILE at position 0.]. The response content was [].
[WARNING ] CWWKS5487W: The response from the [https://some-domain.com/path/token] endpoint was not in the expected JSON format. The error was [Parsing error: org.jose4j.json.internal.json_simple.parser.ParseException: Unexpected character (S) at position 0.]. The response content was [Something {not in[ JSON]: format].
registerLoggerHandlerSingleton: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@f69bebf
captureSystemStreams: CurrentCOH is : com.ibm.websphere.ras.CapturedOutputHolder@f69bebf
    TrConfigZapper.zapTrConfig : finished invoke init()
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
-- Trace -------------------------------------------------

Standard error

[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientSecret] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientSecret] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS2351E: The null OpenID Connect client uses the client_secret_post token endpoint authentication method. This authentication method requires a client secret, but a client secret is not configured.
[ERROR   ] This is an exception message.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientSecret] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [authorizationEndpoint] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientSecret] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS2351E: The null OpenID Connect client uses the client_secret_post token endpoint authentication method. This authentication method requires a client secret, but a client secret is not configured.
[ERROR   ] This is an exception message.
[ERROR   ] CWWKS5465E: The context path [Some path] that is specified by the social login web application configuration contains characters that cannot be included in a valid URI path. The social login feature does not work with a context path that is not valid.
[ERROR   ] CWWKS5431E: The social media selection page URL [] that is specified by the social login web application configuration is not a relative path and does not use either the HTTP or HTTPS scheme.
[ERROR   ] CWWKS5431E: The social media selection page URL [ftp://www.ibm.com] that is specified by the social login web application configuration is not a relative path and does not use either the HTTP or HTTPS scheme.
[ERROR   ] CWWKS5430W: The social media selection page URL [/bad/[/URL] that is specified by the social login web application configuration is not a valid URI. The default selection page will be used. CWWKS5417E: An error was encountered while initializing the URI [/bad/[/URL]: Illegal character in path at index 5: /bad/[/URL
[ERROR   ] CWWKS5430W: The social media selection page URL [/good/%/URL] that is specified by the social login web application configuration is not a valid URI. The default selection page will be used. CWWKS5417E: An error was encountered while initializing the URI [/good/%/URL]: Malformed escape pair at index 6: /good/%/URL
[ERROR   ] CWWKS5479E: The configuration attribute [consumerKey] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [consumerSecret] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [consumerSecret] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [consumerSecret] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.