@@ -106,20 +106,34 @@ There is also a test implemented to test whether an unspecified endpoint returns
...
@@ -106,20 +106,34 @@ There is also a test implemented to test whether an unspecified endpoint returns
## Test overview
## Test overview
Test function: TestUrlIntelligenceOK
**Test function:** TestUrlIntelligenceOK
What it does: This function tests if the url-intelligence endpoint returns the expected status code 200 when called as logged in user.
Test function: TestUrlIntelligenceUnauthorized
What it does:
What it does: This function tests if the url intelligence endpoints returns the expected status code 401 (unauthorized) when called without the user log in.
This function tests if the url-intelligence endpoint returns the expected status code 200 when called as logged in user.
What it does: This function tests if the hash intelligence endpoints returns the expected status code 401 (unauthorized) when called without the user log in.
Test function: TestUrlIntelligenceValidOutput
What it does:
What it does:
This function tests if the hash intelligence endpoints returns the expected status code 401 (unauthorized) when called without the user log in.
**Test function:** TestUrlIntelligenceValidOutput
What it does:
* API test to check whether the url-intelligence endpoint returns valid ouput
* API test to check whether the url-intelligence endpoint returns valid ouput
* This test runs multiple tests, and tests the following:
* This test runs multiple tests, and tests the following:
...
@@ -131,7 +145,8 @@ What it does:
...
@@ -131,7 +145,8 @@ What it does:
* If status or content is not set in any of the responses from the intelligence sources both in english and norwegian
* If status or content is not set in any of the responses from the intelligence sources both in english and norwegian