public class BasicHttpAuthenticationTest extends ComponentBaseTest
ComponentBaseTest.ComponentOperationEnum
Modifier and Type | Field and Description |
---|---|
protected String |
auditAction |
protected static String |
AUTH_FAILED_INVALID_AUTHENTICATION_HEADER |
protected static String |
AUTH_FAILED_INVALID_PASSWORD |
protected static String |
AUTH_FAILED_USER_NOT_FOUND |
protected static String |
AUTH_REQUIRED |
protected static String |
AUTH_SUCCESS |
protected ComponentInstanceReqDetails |
componentInstanceReqDetails |
protected ConsumerDataDefinition |
consumerDataDefinition |
protected ArtifactReqDetails |
deploymentArtifact |
protected ExpectedAuthenticationAudit |
expectedAuthenticationAudit |
protected String |
expectedDownloadResourceUrl |
protected String |
expectedDownloadServiceUrl |
protected String |
HASHED_PASSWORD |
static org.junit.rules.TestName |
name |
protected String |
PASSWORD |
protected ResourceReqDetails |
resourceDetails |
protected String |
SALT |
protected User |
sdncAdminUserDetails |
protected User |
sdncUserDetails |
protected ServiceReqDetails |
serviceDetails |
protected String |
USER |
protected static String |
WWW_AUTHENTICATE |
config, extendTest, extentReport, REPORT_FOLDER, titanGraph
Constructor and Description |
---|
BasicHttpAuthenticationTest() |
Modifier and Type | Method and Description |
---|---|
protected ConsumerDataDefinition |
createConsumer() |
void |
init() |
void |
sendAuthenticatedRequestTest_InvalidHeader() |
void |
sendAuthenticatedRequestTest_passowrdIsNotValidated() |
void |
sendAuthenticatedRequestTest_passwordIsNull() |
void |
sendAuthenticatedRequestTest_passwordValidation_1() |
void |
sendAuthenticatedRequestTest_passwordValidation_2() |
void |
sendAuthenticatedRequestTest_passwordValidation_3() |
void |
sendAuthenticatedRequestTest_success() |
void |
sendAuthenticatedRequestTest_userIsNotProvsioned() |
void |
sendAuthenticatedRequestTest_userIsNull() |
void |
sendAuthenticatedRequestTest_userValidation_1() |
void |
sendAuthenticatedRequestTest_userValidation_2() |
void |
sendAuthenticatedRequestTest_userValidation_3() |
void |
sendAuthenticatedRequestWithoutHeadersTest() |
void |
sendTwoAuthenticatedRequestsTest() |
void |
tearDown() |
protected void |
validateAuditAuthentication(String userName,
String AuthStatus,
ComponentTypeEnum compType) |
afterState, beforeState, openTitan, shutdownTitan, verifyErrorCode
protected static final String AUTH_FAILED_INVALID_AUTHENTICATION_HEADER
protected static final String AUTH_SUCCESS
protected static final String AUTH_FAILED_INVALID_PASSWORD
protected static final String AUTH_FAILED_USER_NOT_FOUND
protected static final String AUTH_REQUIRED
protected static final String WWW_AUTHENTICATE
protected final String USER
protected final String PASSWORD
protected final String SALT
protected final String HASHED_PASSWORD
protected User sdncAdminUserDetails
protected ConsumerDataDefinition consumerDataDefinition
protected ResourceReqDetails resourceDetails
protected ServiceReqDetails serviceDetails
protected User sdncUserDetails
protected ArtifactReqDetails deploymentArtifact
protected ExpectedAuthenticationAudit expectedAuthenticationAudit
protected final String auditAction
protected String expectedDownloadServiceUrl
protected String expectedDownloadResourceUrl
protected ComponentInstanceReqDetails componentInstanceReqDetails
public static org.junit.rules.TestName name
public void sendAuthenticatedRequestTest_success() throws Exception, Exception
Exception
protected void validateAuditAuthentication(String userName, String AuthStatus, ComponentTypeEnum compType) throws Exception
Exception
protected ConsumerDataDefinition createConsumer()
public void sendAuthenticatedRequestWithoutHeadersTest() throws Exception, Exception
Exception
public void sendAuthenticatedRequestTest_userIsNotProvsioned() throws Exception, Exception
Exception
public void sendAuthenticatedRequestTest_userIsNull() throws Exception, Exception
Exception
public void sendAuthenticatedRequestTest_passwordIsNull() throws Exception, Exception
Exception
public void sendAuthenticatedRequestTest_passowrdIsNotValidated() throws Exception, Exception
Exception
public void sendAuthenticatedRequestTest_InvalidHeader() throws Exception, Exception
Exception
public void sendTwoAuthenticatedRequestsTest() throws Exception, Exception
Exception
public void sendAuthenticatedRequestTest_userValidation_1() throws Exception, Exception
Exception
public void sendAuthenticatedRequestTest_userValidation_2() throws Exception, Exception
Exception
public void sendAuthenticatedRequestTest_userValidation_3() throws Exception, Exception
Exception
public void sendAuthenticatedRequestTest_passwordValidation_1() throws Exception, Exception
Exception
public void sendAuthenticatedRequestTest_passwordValidation_2() throws Exception, Exception
Exception
Copyright © 2017. All rights reserved.