sefrone-api-e2e 1.2.9__tar.gz → 1.3.1__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.
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/PKG-INFO +1 -1
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/e2e/Scenarios/Auth/6_project_endpoints.yaml +39 -2
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/e2e/Scenarios/Auth/7_email_2fa_flow.yaml +18 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e.egg-info/PKG-INFO +1 -1
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/setup.py +1 -1
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/README.md +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/__init__.py +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/api_e2e_manager.py +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/e2e/Scenarios/Auth/0_check_features.yaml +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/e2e/Scenarios/Auth/1_normal_auth_flow.yaml +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/e2e/Scenarios/Auth/2_account_endpoints.yaml +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/e2e/Scenarios/Auth/3_admin_account_endpoints.yaml +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/e2e/Scenarios/Auth/4_workspace_endpoints.yaml +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/e2e/Scenarios/Auth/5_apikey_endpoints.yaml +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/e2e/Scenarios/Auth/8_temporary_passwords_flow.yaml +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/e2e/Scenarios/Oidc/1_relying_party_admin.yaml +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/e2e/Scenarios/Oidc/2_authorization_code_flow.yaml +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/e2e/Scenarios/Oidc/3_disable_propagation_flow.yaml +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/e2e/Scenarios/Oidc/4_multi_project_isolation.yaml +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/e2e_scenarios_manager.py +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/env_patch.py +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/json_mock_server.py +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/runner_assets.py +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/runner_email_mock.py +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/runner_rest_api.py +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/runner_satim_mock.py +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/runner_webhook_mock.py +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e/step_runner.py +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e.egg-info/SOURCES.txt +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e.egg-info/dependency_links.txt +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e.egg-info/requires.txt +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e.egg-info/top_level.txt +0 -0
- {sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/setup.cfg +0 -0
|
@@ -37,6 +37,9 @@ steps:
|
|
|
37
37
|
body:
|
|
38
38
|
name: "e2e_project_{$stored.seed_account_id}"
|
|
39
39
|
description: "E2E test project"
|
|
40
|
+
metadata:
|
|
41
|
+
tier: "free"
|
|
42
|
+
region: "eu"
|
|
40
43
|
expect:
|
|
41
44
|
status: 200
|
|
42
45
|
body:
|
|
@@ -48,6 +51,9 @@ steps:
|
|
|
48
51
|
name: string
|
|
49
52
|
description: string
|
|
50
53
|
isActive: boolean
|
|
54
|
+
metadata:
|
|
55
|
+
tier: string
|
|
56
|
+
region: string
|
|
51
57
|
save:
|
|
52
58
|
new_project_id: "{{body.response.id}}"
|
|
53
59
|
new_project_name: "{{body.response.name}}"
|
|
@@ -55,6 +61,8 @@ steps:
|
|
|
55
61
|
- "{{body.response.name}} == 'e2e_project_{$stored.seed_account_id}'"
|
|
56
62
|
- "{{body.response.description}} == 'E2E test project'"
|
|
57
63
|
- "{{body.response.isActive}} == True"
|
|
64
|
+
- "{{body.response.metadata.tier}} == 'free'"
|
|
65
|
+
- "{{body.response.metadata.region}} == 'eu'"
|
|
58
66
|
|
|
59
67
|
- name: "Get created project by name"
|
|
60
68
|
method: "GET"
|
|
@@ -72,13 +80,35 @@ steps:
|
|
|
72
80
|
name: string
|
|
73
81
|
description: string
|
|
74
82
|
isActive: boolean
|
|
83
|
+
metadata:
|
|
84
|
+
tier: string
|
|
85
|
+
region: string
|
|
75
86
|
assertions:
|
|
76
87
|
- "{{body.response.id}} == '{$stored.new_project_id}'"
|
|
77
88
|
- "{{body.response.name}} == 'e2e_project_{$stored.seed_account_id}'"
|
|
78
89
|
- "{{body.response.description}} == 'E2E test project'"
|
|
79
90
|
- "{{body.response.isActive}} == True"
|
|
91
|
+
- "{{body.response.metadata.tier}} == 'free'"
|
|
92
|
+
- "{{body.response.metadata.region}} == 'eu'"
|
|
80
93
|
|
|
81
|
-
- name: "Update project
|
|
94
|
+
- name: "Update project rejects non-object metadata"
|
|
95
|
+
method: "PATCH"
|
|
96
|
+
endpoint: "/api/v1/apiAuth/project/{$stored.new_project_id}"
|
|
97
|
+
request_headers:
|
|
98
|
+
- x-api-token: "{$stored.admin_token}"
|
|
99
|
+
send_as: "json"
|
|
100
|
+
body:
|
|
101
|
+
name: "e2e_project_{$stored.seed_account_id}"
|
|
102
|
+
description: "E2E test project"
|
|
103
|
+
metadata: "not_an_object"
|
|
104
|
+
expect:
|
|
105
|
+
status: 400
|
|
106
|
+
body:
|
|
107
|
+
errorCode: number
|
|
108
|
+
errorCodeStr: string
|
|
109
|
+
message: string
|
|
110
|
+
|
|
111
|
+
- name: "Update project description and metadata"
|
|
82
112
|
method: "PATCH"
|
|
83
113
|
endpoint: "/api/v1/apiAuth/project/{$stored.new_project_id}"
|
|
84
114
|
request_headers:
|
|
@@ -87,6 +117,9 @@ steps:
|
|
|
87
117
|
body:
|
|
88
118
|
name: "e2e_project_{$stored.seed_account_id}"
|
|
89
119
|
description: "E2E test project updated"
|
|
120
|
+
metadata:
|
|
121
|
+
tier: "pro"
|
|
122
|
+
region: "eu"
|
|
90
123
|
expect:
|
|
91
124
|
status: 200
|
|
92
125
|
body:
|
|
@@ -94,7 +127,7 @@ steps:
|
|
|
94
127
|
errorCodeStr: string
|
|
95
128
|
message: string
|
|
96
129
|
|
|
97
|
-
- name: "Get project after update to verify description changed"
|
|
130
|
+
- name: "Get project after update to verify description and metadata changed"
|
|
98
131
|
method: "GET"
|
|
99
132
|
endpoint: "/api/v1/apiAuth/project/{$stored.new_project_name}"
|
|
100
133
|
request_headers:
|
|
@@ -107,8 +140,12 @@ steps:
|
|
|
107
140
|
name: string
|
|
108
141
|
description: string
|
|
109
142
|
isActive: boolean
|
|
143
|
+
metadata:
|
|
144
|
+
tier: string
|
|
145
|
+
region: string
|
|
110
146
|
assertions:
|
|
111
147
|
- "{{body.response.description}} == 'E2E test project updated'"
|
|
148
|
+
- "{{body.response.metadata.tier}} == 'pro'"
|
|
112
149
|
|
|
113
150
|
- name: "Set project inactive"
|
|
114
151
|
method: "POST"
|
|
@@ -8,6 +8,20 @@ skip_if:
|
|
|
8
8
|
- "Email2FA not in {$stored.0_check_features.enabled_features}"
|
|
9
9
|
|
|
10
10
|
steps:
|
|
11
|
+
- name: "Check 2FA project features"
|
|
12
|
+
method: "GET"
|
|
13
|
+
endpoint: "/api/v1/apiAuth/account/$var(AUTH_PROJECT_NAME)/2fa/features"
|
|
14
|
+
expect:
|
|
15
|
+
status: 200
|
|
16
|
+
body:
|
|
17
|
+
errorCode: number
|
|
18
|
+
errorCodeStr: string
|
|
19
|
+
message: string
|
|
20
|
+
response:
|
|
21
|
+
autoCreateAccount: boolean
|
|
22
|
+
save:
|
|
23
|
+
auto_create_account: "{{body.response.autoCreateAccount}}"
|
|
24
|
+
|
|
11
25
|
- name: "Generate unique test email"
|
|
12
26
|
randomize:
|
|
13
27
|
email_suffix: 12
|
|
@@ -40,6 +54,8 @@ steps:
|
|
|
40
54
|
regex: "(?is)otp\\s*code[\\s\\S]{0,4000}?\\b([0-9]{8})\\b"
|
|
41
55
|
|
|
42
56
|
- name: "Verify OTP and obtain auth token"
|
|
57
|
+
skip_if:
|
|
58
|
+
- "{$stored.7_email_2fa_flow.auto_create_account} == False"
|
|
43
59
|
method: "GET"
|
|
44
60
|
endpoint: "/api/v1/apiAuth/account/$var(AUTH_PROJECT_NAME)/oauth/2fa/verify"
|
|
45
61
|
request_query_params:
|
|
@@ -60,6 +76,8 @@ steps:
|
|
|
60
76
|
- "{{body.errorCode}} == 0"
|
|
61
77
|
|
|
62
78
|
- name: "Verify token is valid — get account info"
|
|
79
|
+
skip_if:
|
|
80
|
+
- "{$stored.7_email_2fa_flow.auto_create_account} == False"
|
|
63
81
|
method: "GET"
|
|
64
82
|
endpoint: "/api/v1/apiAuth/account/$var(AUTH_PROJECT_NAME)/info/{$stored.7_email_2fa_flow.auth_token}"
|
|
65
83
|
expect:
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="sefrone_api_e2e",
|
|
8
|
-
version="1.
|
|
8
|
+
version="1.3.1",
|
|
9
9
|
author="Sefrone",
|
|
10
10
|
author_email="contact@sefrone.com",
|
|
11
11
|
description="A Python package to provide e2e testing helpers for sefrone API projects",
|
|
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
|
{sefrone_api_e2e-1.2.9 → sefrone_api_e2e-1.3.1}/sefrone_api_e2e.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|