aplos-nca-saas-sdk 0.0.15__tar.gz → 0.0.16__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/PKG-INFO +1 -1
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/pyproject.toml +1 -1
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/configs/file_upload_config.py +1 -1
- aplos_nca_saas_sdk-0.0.15/src/aplos_nca_saas_sdk/integration_testing/main.py → aplos_nca_saas_sdk-0.0.16/src/aplos_nca_saas_sdk/integration_testing/example_main.py +15 -7
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/integration_test_suite.py +9 -9
- aplos_nca_saas_sdk-0.0.16/src/aplos_nca_saas_sdk/integration_testing/readme.md +205 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/version.py +1 -1
- aplos_nca_saas_sdk-0.0.15/src/aplos_nca_saas_sdk/integration_testing/readme.md +0 -18
- aplos_nca_saas_sdk-0.0.15/src/aplos_nca_saas_sdk/integration_testing/tests/validation_test.py +0 -5
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/.gitignore +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/.pypirc +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/.vscode/launch.json +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/.vscode/settings.json +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/LICENSE +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/README.md +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/devops/pypi/build.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/devops/pypi/readme.md +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/devops/requirements.txt +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/docs/images/API_Configuration_blur.png +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/docs/images/aplos-nca-commandline-cropped.png +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/docs/images/aplos-nca-commandline.png +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/mypy.ini +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/mypy_checks.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/readme.md +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/requirements.txt +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/run-checks.sh +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/__init__.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/configs/_config_base.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/configs/app_settings_config.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/configs/config_sample.json +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/configs/login_config.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/configs/nca_execution_config.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/configs/nca_validation_config.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/files/executions/config1.json +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/files/uploads/input1.csv +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/files/uploads/input1.dat +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/files/uploads/input1.sas7bdat +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/files/uploads/input1.xls +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/files/uploads/input1.xlsx +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/files/uploads/input1.xpt +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/integration_test_base.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/integration_test_configurations.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/integration_test_factory.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/integration_test_response.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/tests/app_configuration_test.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/tests/app_login_test.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/tests/file_upload_test.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/tests/nca_analysis_test.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/integration_testing/tests/nca_analysis_validation_test.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/nca_resources/_api_base.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/nca_resources/aws_cognito.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/nca_resources/aws_s3_presigned_payload.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/nca_resources/aws_s3_presigned_upload.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/nca_resources/nca_analysis.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/nca_resources/nca_app_configuration.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/nca_resources/nca_authenticator.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/nca_resources/nca_endpoints.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/nca_resources/nca_file_download.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/nca_resources/nca_file_upload.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/nca_resources/nca_validations.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/run_analysis_execution.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/sample_files/analysis_files/single_ev/config.json +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/sample_files/analysis_files/single_ev/input.csv +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/sample_files/analysis_files/single_ev/meta_data.json +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/utilities/commandline_args.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/utilities/environment_services.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/utilities/environment_vars.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/utilities/file_utility.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/src/aplos_nca_saas_sdk/utilities/http_utility.py +0 -0
- {aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/tests/__init__.py +0 -0
@@ -11,7 +11,7 @@ from aplos_nca_saas_sdk.integration_testing.configs.login_config import (
|
|
11
11
|
LoginConfig,
|
12
12
|
LoginConfigs,
|
13
13
|
)
|
14
|
-
|
14
|
+
|
15
15
|
from aplos_nca_saas_sdk.utilities.file_utility import FileUtility
|
16
16
|
|
17
17
|
|
@@ -16,19 +16,25 @@ from aplos_nca_saas_sdk.integration_testing.integration_test_configurations impo
|
|
16
16
|
|
17
17
|
|
18
18
|
def main():
|
19
|
-
"""
|
19
|
+
"""This is an example on how you can run the unit tests"""
|
20
20
|
|
21
|
+
# Optionally use our convient Environment Services loader
|
22
|
+
# which can help during intial testings.
|
21
23
|
evs: EnvironmentServices = EnvironmentServices()
|
24
|
+
# see if we have a local .env, .env.uat, etc configured to look up
|
22
25
|
env_file = os.getenv("ENV_FILE")
|
23
26
|
if env_file:
|
24
27
|
# if we have an environment file defined, let's load it
|
25
28
|
evs.load_environment(starting_path=__file__, file_name=env_file)
|
26
29
|
|
30
|
+
# this is where the work begins
|
27
31
|
its: IntegrationTestSuite = IntegrationTestSuite()
|
28
32
|
config: TestConfiguration = TestConfiguration()
|
29
33
|
|
30
|
-
#
|
31
|
-
#
|
34
|
+
# here were going to load a config file that is local, for security purpose
|
35
|
+
# you should store this in SecretsManager, Parameter Store, a secure S3 bucket etc.
|
36
|
+
# the configs typically contain sensitive information like usernames & passwords
|
37
|
+
# so be careful where you store it!
|
32
38
|
config_file = os.path.join(
|
33
39
|
Path(__file__).parent,
|
34
40
|
"configs",
|
@@ -37,14 +43,16 @@ def main():
|
|
37
43
|
# load it so we can see what it looks like
|
38
44
|
config.load(file_path=config_file)
|
39
45
|
|
40
|
-
#
|
41
|
-
# override_config(config)
|
42
|
-
|
46
|
+
# run the tests
|
43
47
|
its.test(test_config=config)
|
44
48
|
|
45
49
|
|
46
50
|
def override_config(config: TestConfiguration):
|
47
|
-
"""
|
51
|
+
"""
|
52
|
+
Override the configuration for the tests.
|
53
|
+
This is some sample code how you can use a combination of a config file
|
54
|
+
and then override the username/password combos using environment vars.
|
55
|
+
"""
|
48
56
|
username = os.getenv("TEST_USERNAME")
|
49
57
|
password = os.getenv("TEST_PASSWORD")
|
50
58
|
host = os.getenv("TEST_HOST")
|
@@ -70,15 +70,15 @@ class IntegrationTestSuite:
|
|
70
70
|
if self.fail_fast:
|
71
71
|
# just break and let the failure routine handle it
|
72
72
|
break
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
73
|
+
finally:
|
74
|
+
test_result["end_time_utc"] = datetime.now(UTC)
|
75
|
+
self.test_results.append(test_result)
|
76
|
+
|
77
|
+
if test_result["success"]:
|
78
|
+
logger.info(f"Test {test.name} succeeded")
|
79
|
+
logger.debug(test_result)
|
80
|
+
else:
|
81
|
+
logger.error(test_result)
|
82
82
|
# find the failures
|
83
83
|
failures = [test for test in self.test_results if len(test["errors"]) > 0]
|
84
84
|
self.__print_results(start_time, failures)
|
@@ -0,0 +1,205 @@
|
|
1
|
+
# Integration Test
|
2
|
+
|
3
|
+
This module runs integration tests against a live environment. The goal is to catch anything before it's deployed.
|
4
|
+
However you can also use this as a learning tool or a base on how to use our API's.
|
5
|
+
|
6
|
+
## Requirements
|
7
|
+
The integration tests will require the following:
|
8
|
+
- A valid user Aplos NCA User Account
|
9
|
+
- A valid subscription
|
10
|
+
|
11
|
+
|
12
|
+
### Users
|
13
|
+
You will need valid user accounts with the appropriate permissions for the endpoints they are executing.
|
14
|
+
|
15
|
+
If you are testing permission bounderies then you should set up multiple users with different permissions.
|
16
|
+
|
17
|
+
|
18
|
+
### Subscriptions
|
19
|
+
Your subscription will control how may executions are allowed for user or tenancy. Make sure you have enough executions. If you need
|
20
|
+
additional executions, please reach-out to your support contact.
|
21
|
+
|
22
|
+
## Running the test
|
23
|
+
See the `example_main.py` for updated examples, but in general you follow the code below to run tests. Also, see the `configs` section below
|
24
|
+
for guidance on defining what is tested.
|
25
|
+
|
26
|
+
```python
|
27
|
+
"""
|
28
|
+
Copyright 2024-2025 Aplos Analytics
|
29
|
+
All Rights Reserved. www.aplosanalytics.com LICENSED MATERIALS
|
30
|
+
Property of Aplos Analytics, Utah, USA
|
31
|
+
"""
|
32
|
+
|
33
|
+
import os
|
34
|
+
from pathlib import Path
|
35
|
+
from aplos_nca_saas_sdk.utilities.environment_services import EnvironmentServices
|
36
|
+
from aplos_nca_saas_sdk.integration_testing.integration_test_suite import (
|
37
|
+
IntegrationTestSuite,
|
38
|
+
)
|
39
|
+
from aplos_nca_saas_sdk.integration_testing.integration_test_configurations import (
|
40
|
+
TestConfiguration,
|
41
|
+
)
|
42
|
+
|
43
|
+
|
44
|
+
def main():
|
45
|
+
"""This is an example on how you can run the unit tests"""
|
46
|
+
|
47
|
+
# Optionally use our convient Environment Services loader
|
48
|
+
# which can help during intial testings.
|
49
|
+
evs: EnvironmentServices = EnvironmentServices()
|
50
|
+
# See if we have a local .env, .env.uat, etc configured to look up
|
51
|
+
# for local configuration settings
|
52
|
+
#
|
53
|
+
# Use local .env files when testing locally. As a best practice
|
54
|
+
# you should avoid adding these to source control or deployments.
|
55
|
+
env_file = os.getenv("ENV_FILE")
|
56
|
+
if env_file:
|
57
|
+
# if we have an environment file defined, let's load it
|
58
|
+
# this will prep our environment with local values.
|
59
|
+
evs.load_environment(starting_path=__file__, file_name=env_file)
|
60
|
+
|
61
|
+
# this is where the work begins
|
62
|
+
its: IntegrationTestSuite = IntegrationTestSuite()
|
63
|
+
config: TestConfiguration = TestConfiguration()
|
64
|
+
|
65
|
+
# here were going to load a config file that is local, for security purpose
|
66
|
+
# you should store this in SecretsManager, Parameter Store, a secure S3 bucket etc.
|
67
|
+
# the configs typically contain sensitive information like usernames & passwords
|
68
|
+
# so be careful where you store it!
|
69
|
+
config_file = os.path.join(
|
70
|
+
Path(__file__).parent,
|
71
|
+
"configs",
|
72
|
+
os.getenv("TEST_CONFIG_FILE") or "config_sample.json",
|
73
|
+
)
|
74
|
+
# load it so we can see what it looks like
|
75
|
+
config.load(file_path=config_file)
|
76
|
+
|
77
|
+
# run the tests
|
78
|
+
its.test(test_config=config)
|
79
|
+
|
80
|
+
|
81
|
+
```
|
82
|
+
|
83
|
+
### Configs
|
84
|
+
Tests are run based on configurations. The following is an example of supported configurations:
|
85
|
+
|
86
|
+
- Appliction Configuration Settings
|
87
|
+
- Logins & Access
|
88
|
+
- Executing an Analysis
|
89
|
+
- Running a Validation
|
90
|
+
|
91
|
+
```json
|
92
|
+
{
|
93
|
+
"application_config_test": {
|
94
|
+
"purpose": "Tests the application configuration endpoints",
|
95
|
+
"hosts": [
|
96
|
+
{
|
97
|
+
"host": "api.example.com",
|
98
|
+
"expected_results": {
|
99
|
+
"status_code": 200
|
100
|
+
},
|
101
|
+
"enabled": true
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"host": "XXXXXXXXXXXXXXXXXXXXX",
|
105
|
+
"expected_results": {
|
106
|
+
"status_code": 403
|
107
|
+
},
|
108
|
+
"enabled": false
|
109
|
+
}
|
110
|
+
]
|
111
|
+
},
|
112
|
+
"login_test": {
|
113
|
+
"purpose": "Tests the login endpoints",
|
114
|
+
"logins": [
|
115
|
+
{
|
116
|
+
"username": "foo",
|
117
|
+
"password": "barr",
|
118
|
+
"host": "api.example.com",
|
119
|
+
"roles": []
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"username": "XXXXXXXXXXXXXXXXXXXXX",
|
123
|
+
"password": "XXXXXXXXXXXXXXXXXXXXX",
|
124
|
+
"host": "XXXXXXXXXXXXXXXXXXXXX",
|
125
|
+
"roles": [
|
126
|
+
"XXXXXXXXXXXXXXXXXXXXX"
|
127
|
+
],
|
128
|
+
"enabled": false,
|
129
|
+
"expected_results": {
|
130
|
+
"exception": "InvalidCredentialsException"
|
131
|
+
}
|
132
|
+
}
|
133
|
+
]
|
134
|
+
},
|
135
|
+
"file_upload_test": {
|
136
|
+
"purpose": "Tests the file upload endpoints.",
|
137
|
+
"notes": "a file can be on the local drive or pulled from a public https source.",
|
138
|
+
"login": {
|
139
|
+
"purpose": "optional: if present this login is used, unless a specific login is defined for the test",
|
140
|
+
"username": "foo",
|
141
|
+
"password": "bar",
|
142
|
+
"host": "api.example.com"
|
143
|
+
},
|
144
|
+
"files": [
|
145
|
+
{
|
146
|
+
"file": "XXXXXXXXXXXXXXXXXXXXX"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"file": "XXXXXXXXXXXXXXXXXXXXX",
|
150
|
+
"login": {
|
151
|
+
"purpose": "optional: if present tests an upload for a specific user",
|
152
|
+
"username": "XXXXXXXXXXXXXXXXXXXXX",
|
153
|
+
"password": "XXXXXXXXXXXXXXXXXXXXX",
|
154
|
+
"host": "XXXXXXXXXXXXXXXXXXXXX"
|
155
|
+
}
|
156
|
+
}
|
157
|
+
]
|
158
|
+
},
|
159
|
+
"analysis_execution_test": {
|
160
|
+
"purpose": "Tests the analysis execution endpoints.",
|
161
|
+
"login": {
|
162
|
+
"username": "XXXXXXXXXXXXXXXXXXXXX",
|
163
|
+
"password": "XXXXXXXXXXXXXXXXXXXXX",
|
164
|
+
"host": "XXXXXXXXXXXXXXXXXXXXX"
|
165
|
+
},
|
166
|
+
"output_dir": "XXXXXXXXXXXXXXXXXXXXX",
|
167
|
+
"analyses": [
|
168
|
+
{
|
169
|
+
"file": "XXXXXXXXXXXXXXXXXXXXX",
|
170
|
+
"meta": {},
|
171
|
+
"config": {},
|
172
|
+
"expected_results": {
|
173
|
+
"status_code": 200
|
174
|
+
},
|
175
|
+
"output_dir": "XXXXXXXXXXXXXXXXXXXXX"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"file": "XXXXXXXXXXXXXXXXXXXXX",
|
179
|
+
"meta": {},
|
180
|
+
"config": {},
|
181
|
+
"login": {
|
182
|
+
"username": "XXXXXXXXXXXXXXXXXXXXX",
|
183
|
+
"password": "XXXXXXXXXXXXXXXXXXXXX",
|
184
|
+
"host": "XXXXXXXXXXXXXXXXXXXXX"
|
185
|
+
},
|
186
|
+
"expected_results": {
|
187
|
+
"status_code": 200
|
188
|
+
}
|
189
|
+
}
|
190
|
+
]
|
191
|
+
},
|
192
|
+
"validation_test": {
|
193
|
+
"purpose": "Tests the validation execution.",
|
194
|
+
"login": {
|
195
|
+
"username": "XXXXXXXXXXXXXXXXXXXXX",
|
196
|
+
"password": "XXXXXXXXXXXXXXXXXXXXX",
|
197
|
+
"host": "XXXXXXXXXXXXXXXXXXXXX"
|
198
|
+
},
|
199
|
+
"expected_results": {
|
200
|
+
"status_code": 200
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
```
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# Integration Test
|
2
|
-
|
3
|
-
This module runs integration tests against a live environment. The goal is to catch anything before it's deployed.
|
4
|
-
However you can also use this as a learning tool or a base on how to use our API's.
|
5
|
-
|
6
|
-
## Requirements
|
7
|
-
The integration tests will require the following:
|
8
|
-
|
9
|
-
### Environment Vars
|
10
|
-
|Variable Name|Description|
|
11
|
-
|--|--|
|
12
|
-
|APLOS_host|The full host name. e.g. app.aplos-nca.com|
|
13
|
-
|
14
|
-
|
15
|
-
### Users
|
16
|
-
You will need valid user accounts with the appropriate permissions for the endpoints they are executing.
|
17
|
-
|
18
|
-
If you are testing permission bounderies then you should set up multiple users with different permissions.
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/docs/images/API_Configuration_blur.png
RENAMED
File without changes
|
File without changes
|
{aplos_nca_saas_sdk-0.0.15 → aplos_nca_saas_sdk-0.0.16}/docs/images/aplos-nca-commandline.png
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|