C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS Class Reference

Public Member Functions

 TestSuite_API_HTTPS ()
 
void BaseTest_Cleanup ()
 
void BaseTest_Initialize ()
 
IAccessToken GetCorrectCredentials ()
 
void Test_API_HTTPS_Server_Active ()
 Ensure that the server shows up as an active analyze re server, even without credentials.
 
void Test_API_HTTPS_Server_AuthenticationRequestedEvent_Exception ()
 
void Test_API_HTTPS_Server_AuthenticationRequestedEvent_GetStream ()
 Test that an authentication error on GetStream expected behaviour.
 
void Test_API_HTTPS_Server_AuthenticationRequestedEvent_HandledEmpty ()
 
void Test_API_HTTPS_Server_AuthenticationRequestedEvent_Invalid ()
 Test an authentication handler incorrectly set up to supply the same invalid credentials on every call - and ensure that this does not result in an infinite loop of automatically retrying requests that request authentication.
 
void Test_API_HTTPS_Server_AuthenticationRequestedEvent_MultipleHandlers ()
 
void Test_API_HTTPS_Server_AuthenticationRequestedEvent_NotHandled ()
 
void Test_API_HTTPS_Server_AuthenticationRequestedEvent_ValidAccessToken ()
 
void Test_API_HTTPS_Server_BasicAuthenticationToken_Empty ()
 
void Test_API_HTTPS_Server_BasicAuthenticationToken_Invalid ()
 
void Test_API_HTTPS_Server_BasicAuthenticationToken_Null ()
 
void Test_API_HTTPS_Server_BasicAuthenticationToken_NullUserNamePassword ()
 
void Test_API_HTTPS_Server_BasicAuthenticationToken_Valid ()
 
void Test_API_HTTPS_Server_CachedCredentialsCleared ()
 Note: Credential caching only works using the AuthenticationRequested event.
 
void Test_API_HTTPS_Server_Credentials_Cached ()
 Note: Credential caching only works using the AuthenticationRequested event.
 
void Test_API_HTTPS_Server_GetAuthenticationStatus_Authenticated ()
 
void Test_API_HTTPS_Server_GetAuthenticationStatus_AuthenticationRequired ()
 
void Test_API_HTTPS_Server_GetAuthenticationStatus_Error ()
 
void Test_API_HTTPS_Server_GetAuthenticationStatus_InvalidCredentials ()
 
void Test_API_HTTPS_Server_GetAuthenticationStatus_NoAuthenticationRequired ()
 
void Test_API_HTTPS_Server_OverrideAuthentication_Invalid_MatchingDefaultAuth ()
 Test that overriding the default authentication credentials with the same bad parameters results in a bad request.
 
void Test_API_HTTPS_Server_OverrideAuthentication_Invalid_NoDefaultAuth ()
 Test that manually specifying incorrect authentication credentials when there are no default credentials configured has the expected behaviour.
 
void Test_API_HTTPS_Server_OverrideAuthentication_Invalid_NotMatchingDefaultAuth ()
 Test that overriding the current default authentication credentials (which are good) with some bad parameters results in a bad request, and a unique message.
 
void Test_API_HTTPS_Server_OverrideAuthentication_Valid ()
 Test that the user can supply credentials without setting the global default authentication settings.
 
void TestSuccessfulRequest ()
 
void TestUnauthorizedRequest (string expectedMessage)
 

Static Public Attributes

static Reflection Reflection
 Shared instance of a class for generating random resources.
 
static Samples Samples
 Shared instance of a class for generating reusable sample resources.
 

Protected Member Functions

void AddCommonTestCleanupAction (Action action)
 
void AddCommonTestInitializeAction (Action action)
 

Static Protected Member Functions

static void BaseClass_Cleanup (Action action)
 
static void BaseClass_Initialize (TestContext context, Action action)
 

Properties

TestContext TestContext [get, set]
 

Detailed Description

Definition at line 24 of file Test_API_HTTPS.cs.

Inheritance diagram for AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS:
AnalyzeReTesting.Base.BaseClientTestSuite AnalyzeReTesting.Base.BaseTestSuite

Constructor & Destructor Documentation

◆ TestSuite_API_HTTPS()

AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.TestSuite_API_HTTPS ( )
inline

Definition at line 31 of file Test_API_HTTPS.cs.

Member Function Documentation

◆ AddCommonTestCleanupAction()

void AnalyzeReTesting.Base.BaseTestSuite.AddCommonTestCleanupAction ( Action  action)
inlineprotectedinherited

Definition at line 80 of file BaseTestSuite.cs.

◆ AddCommonTestInitializeAction()

void AnalyzeReTesting.Base.BaseTestSuite.AddCommonTestInitializeAction ( Action  action)
inlineprotectedinherited

Definition at line 75 of file BaseTestSuite.cs.

◆ BaseClass_Cleanup()

static void AnalyzeReTesting.Base.BaseTestSuite.BaseClass_Cleanup ( Action  action)
inlinestaticprotectedinherited

Definition at line 66 of file BaseTestSuite.cs.

◆ BaseClass_Initialize()

static void AnalyzeReTesting.Base.BaseTestSuite.BaseClass_Initialize ( TestContext  context,
Action  action 
)
inlinestaticprotectedinherited

Definition at line 56 of file BaseTestSuite.cs.

◆ BaseTest_Cleanup()

void AnalyzeReTesting.Base.BaseTestSuite.BaseTest_Cleanup ( )
inlineinherited

Definition at line 46 of file BaseTestSuite.cs.

◆ BaseTest_Initialize()

void AnalyzeReTesting.Base.BaseTestSuite.BaseTest_Initialize ( )
inlineinherited

Definition at line 35 of file BaseTestSuite.cs.

◆ GetCorrectCredentials()

IAccessToken AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.GetCorrectCredentials ( )
inline

Definition at line 387 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_Active()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_Active ( )
inline

Ensure that the server shows up as an active analyze re server, even without credentials.

Definition at line 259 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_AuthenticationRequestedEvent_Exception()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_AuthenticationRequestedEvent_Exception ( )
inline

Definition at line 157 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_AuthenticationRequestedEvent_GetStream()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_AuthenticationRequestedEvent_GetStream ( )
inline

Test that an authentication error on GetStream expected behaviour.

Definition at line 267 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_AuthenticationRequestedEvent_HandledEmpty()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_AuthenticationRequestedEvent_HandledEmpty ( )
inline

Definition at line 149 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_AuthenticationRequestedEvent_Invalid()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_AuthenticationRequestedEvent_Invalid ( )
inline

Test an authentication handler incorrectly set up to supply the same invalid credentials on every call - and ensure that this does not result in an infinite loop of automatically retrying requests that request authentication.

Definition at line 129 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_AuthenticationRequestedEvent_MultipleHandlers()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_AuthenticationRequestedEvent_MultipleHandlers ( )
inline

Definition at line 65 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_AuthenticationRequestedEvent_NotHandled()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_AuthenticationRequestedEvent_NotHandled ( )
inline

Definition at line 139 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_AuthenticationRequestedEvent_ValidAccessToken()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_AuthenticationRequestedEvent_ValidAccessToken ( )
inline

Definition at line 57 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_BasicAuthenticationToken_Empty()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_BasicAuthenticationToken_Empty ( )
inline

Definition at line 100 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_BasicAuthenticationToken_Invalid()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_BasicAuthenticationToken_Invalid ( )
inline

Definition at line 89 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_BasicAuthenticationToken_Null()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_BasicAuthenticationToken_Null ( )
inline

Definition at line 79 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_BasicAuthenticationToken_NullUserNamePassword()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_BasicAuthenticationToken_NullUserNamePassword ( )
inline

Definition at line 111 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_BasicAuthenticationToken_Valid()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_BasicAuthenticationToken_Valid ( )
inline

Definition at line 49 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_CachedCredentialsCleared()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_CachedCredentialsCleared ( )
inline

Note: Credential caching only works using the AuthenticationRequested event.

Definition at line 232 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_Credentials_Cached()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_Credentials_Cached ( )
inline

Note: Credential caching only works using the AuthenticationRequested event.

Definition at line 213 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_GetAuthenticationStatus_Authenticated()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_GetAuthenticationStatus_Authenticated ( )
inline

Definition at line 176 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_GetAuthenticationStatus_AuthenticationRequired()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_GetAuthenticationStatus_AuthenticationRequired ( )
inline

Definition at line 169 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_GetAuthenticationStatus_Error()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_GetAuthenticationStatus_Error ( )
inline

Definition at line 203 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_GetAuthenticationStatus_InvalidCredentials()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_GetAuthenticationStatus_InvalidCredentials ( )
inline

Definition at line 195 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_GetAuthenticationStatus_NoAuthenticationRequired()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_GetAuthenticationStatus_NoAuthenticationRequired ( )
inline

Definition at line 184 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_OverrideAuthentication_Invalid_MatchingDefaultAuth()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_OverrideAuthentication_Invalid_MatchingDefaultAuth ( )
inline

Test that overriding the default authentication credentials with the same bad parameters results in a bad request.

Definition at line 336 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_OverrideAuthentication_Invalid_NoDefaultAuth()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_OverrideAuthentication_Invalid_NoDefaultAuth ( )
inline

Test that manually specifying incorrect authentication credentials when there are no default credentials configured has the expected behaviour.

Definition at line 315 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_OverrideAuthentication_Invalid_NotMatchingDefaultAuth()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_OverrideAuthentication_Invalid_NotMatchingDefaultAuth ( )
inline

Test that overriding the current default authentication credentials (which are good) with some bad parameters results in a bad request, and a unique message.

Definition at line 360 of file Test_API_HTTPS.cs.

◆ Test_API_HTTPS_Server_OverrideAuthentication_Valid()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.Test_API_HTTPS_Server_OverrideAuthentication_Valid ( )
inline

Test that the user can supply credentials without setting the global default authentication settings.

Definition at line 300 of file Test_API_HTTPS.cs.

◆ TestSuccessfulRequest()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.TestSuccessfulRequest ( )
inline

Definition at line 394 of file Test_API_HTTPS.cs.

◆ TestUnauthorizedRequest()

void AnalyzeReTesting.Tests.AnalyzeReAPI.TestSuite_API_HTTPS.TestUnauthorizedRequest ( string  expectedMessage)
inline

Definition at line 399 of file Test_API_HTTPS.cs.

Member Data Documentation

◆ Reflection

Reflection AnalyzeReTesting.Base.BaseClientTestSuite.Reflection
staticinherited

Shared instance of a class for generating random resources.

Definition at line 18 of file BaseClientTestSuite.cs.

◆ Samples

Samples AnalyzeReTesting.Base.BaseClientTestSuite.Samples
staticinherited

Shared instance of a class for generating reusable sample resources.

Definition at line 15 of file BaseClientTestSuite.cs.

Property Documentation

◆ TestContext

TestContext AnalyzeReTesting.Base.BaseTestSuite.TestContext
getsetinherited

Definition at line 20 of file BaseTestSuite.cs.


The documentation for this class was generated from the following file: