neoload 1.3.19.dev3__py3-none-any.whl → 1.3.19.dev5__py3-none-any.whl
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.
- neoload/commands/checkvu.py +21 -15
- neoload/neoload_cli_lib/checkvu_runner.py +74 -14
- neoload/neoload_cli_lib/jar_signature.py +71 -12
- neoload/neoload_cli_lib/schema_validation.py +4 -2
- neoload/version.py +1 -1
- {neoload-1.3.19.dev3.dist-info → neoload-1.3.19.dev5.dist-info}/METADATA +13 -3
- {neoload-1.3.19.dev3.dist-info → neoload-1.3.19.dev5.dist-info}/RECORD +11 -11
- {neoload-1.3.19.dev3.dist-info → neoload-1.3.19.dev5.dist-info}/WHEEL +1 -1
- {neoload-1.3.19.dev3.dist-info → neoload-1.3.19.dev5.dist-info}/entry_points.txt +0 -0
- {neoload-1.3.19.dev3.dist-info → neoload-1.3.19.dev5.dist-info}/licenses/LICENSE +0 -0
- {neoload-1.3.19.dev3.dist-info → neoload-1.3.19.dev5.dist-info}/top_level.txt +0 -0
neoload/commands/checkvu.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import logging
|
|
1
2
|
import os
|
|
2
3
|
import sys
|
|
3
4
|
|
|
@@ -70,7 +71,9 @@ __yaml_extensions = (".yaml", ".yml")
|
|
|
70
71
|
@click.option('--keep-temp-work-dir', is_flag=True, default=False,
|
|
71
72
|
help="Keep the temporary work directory after the run instead of deleting it. "
|
|
72
73
|
"Equivalent to setting CHECKVU_CLI_KEEP_TEMP_WORK_DIR=1. "
|
|
73
|
-
"Has no effect when --work-dir is already set, since that directory is never auto-deleted."
|
|
74
|
+
"Has no effect when --work-dir is already set, since that directory is never auto-deleted. "
|
|
75
|
+
"After neoload login, a retained work directory contains the NeoLoad Web token in clear "
|
|
76
|
+
"text in conf/controller.properties; treat it as confidential.")
|
|
74
77
|
@click.argument('project_file')
|
|
75
78
|
def cli(engine_jar, java, user_path, play_think_time, as_code_schema, ssl_cert, unsafe_skip_jar_verification,
|
|
76
79
|
controller_properties, load_generator_properties,
|
|
@@ -102,19 +105,22 @@ def cli(engine_jar, java, user_path, play_think_time, as_code_schema, ssl_cert,
|
|
|
102
105
|
|
|
103
106
|
resolved_jar = checkvu_runner.resolve_jar(engine_jar, ssl_cert, java_executable,
|
|
104
107
|
verify_signature=not unsafe_skip_jar_verification)
|
|
108
|
+
logging.debug("Using CheckVU JAR at '%s'", os.path.abspath(resolved_jar))
|
|
105
109
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
110
|
+
with checkvu_runner.prepare_controller_properties(
|
|
111
|
+
controller_properties) as resolved_controller_properties:
|
|
112
|
+
command = checkvu_runner.build_command(
|
|
113
|
+
java_executable, resolved_jar, project_file,
|
|
114
|
+
user_path=user_path,
|
|
115
|
+
play_think_time=play_think_time,
|
|
116
|
+
controller_properties=resolved_controller_properties,
|
|
117
|
+
load_generator_properties=load_generator_properties,
|
|
118
|
+
app_proxy=app_proxy,
|
|
119
|
+
app_proxy_username=app_proxy_username,
|
|
120
|
+
app_proxy_bypass=app_proxy_bypass,
|
|
121
|
+
output=output,
|
|
122
|
+
work_dir=work_dir,
|
|
123
|
+
keep_temp_work_dir=keep_temp_work_dir,
|
|
124
|
+
)
|
|
125
|
+
exit_code = checkvu_runner.run_checkvu(command)
|
|
120
126
|
sys.exit(exit_code)
|
|
@@ -4,13 +4,16 @@ import re
|
|
|
4
4
|
import shutil
|
|
5
5
|
import subprocess
|
|
6
6
|
import sys
|
|
7
|
+
import tempfile
|
|
8
|
+
from contextlib import contextmanager
|
|
7
9
|
from urllib.parse import unquote, urlencode, urlparse
|
|
8
10
|
|
|
9
11
|
import requests
|
|
10
12
|
|
|
11
|
-
from neoload_cli_lib import cli_exception, jar_signature, paths
|
|
13
|
+
from neoload_cli_lib import cli_exception, jar_signature, paths, user_data
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
REQUIRED_JAVA_VERSION = 21
|
|
16
|
+
SAAS_API_URL = "https://neoload-api.saas.neotys.com/"
|
|
14
17
|
|
|
15
18
|
# Public download goes through www.neotys.com/redirect.php (same contract as
|
|
16
19
|
# NeoLoad installer direct-download). CheckVU is not a CDN URL.
|
|
@@ -145,7 +148,7 @@ def resolve_java(java_option=None):
|
|
|
145
148
|
return java_option
|
|
146
149
|
java_home = os.environ.get("JAVA_HOME")
|
|
147
150
|
if java_home:
|
|
148
|
-
candidate = os.path.join(java_home, "bin", "java")
|
|
151
|
+
candidate = os.path.join(java_home, "bin", "java.exe" if os.name == "nt" else "java")
|
|
149
152
|
resolved = shutil.which(candidate) or (candidate if os.path.isfile(candidate) else None)
|
|
150
153
|
if resolved:
|
|
151
154
|
return resolved
|
|
@@ -153,9 +156,9 @@ def resolve_java(java_option=None):
|
|
|
153
156
|
if found:
|
|
154
157
|
return found
|
|
155
158
|
raise cli_exception.CliException(
|
|
156
|
-
"No Java runtime found. CheckVU requires Java {0}
|
|
157
|
-
"Install a JDK {0}
|
|
158
|
-
"or pass --java <path-to-java>.".format(
|
|
159
|
+
"No Java runtime found. CheckVU requires Java {0}.\n"
|
|
160
|
+
"Install a JDK {0} and either add it to your PATH, set JAVA_HOME, "
|
|
161
|
+
"or pass --java <path-to-java>.".format(REQUIRED_JAVA_VERSION))
|
|
159
162
|
|
|
160
163
|
|
|
161
164
|
def parse_java_major_version(version_output):
|
|
@@ -171,7 +174,7 @@ def parse_java_major_version(version_output):
|
|
|
171
174
|
|
|
172
175
|
|
|
173
176
|
def check_java_version(java):
|
|
174
|
-
"""Runs `java -version` and enforces the
|
|
177
|
+
"""Runs `java -version` and enforces the required major version.
|
|
175
178
|
`java -version` writes to stderr, so we merge stderr into stdout to capture it.
|
|
176
179
|
"""
|
|
177
180
|
try:
|
|
@@ -183,19 +186,19 @@ def check_java_version(java):
|
|
|
183
186
|
except OSError as err:
|
|
184
187
|
raise cli_exception.CliException(
|
|
185
188
|
"Unable to run '{0}': {1}\n"
|
|
186
|
-
"Install a JDK {2}
|
|
187
|
-
"or pass --java <path-to-java>.".format(java, str(err),
|
|
189
|
+
"Install a JDK {2} and either add it to your PATH, set JAVA_HOME, "
|
|
190
|
+
"or pass --java <path-to-java>.".format(java, str(err), REQUIRED_JAVA_VERSION))
|
|
188
191
|
|
|
189
192
|
output = completed.stdout or ""
|
|
190
193
|
major = parse_java_major_version(output)
|
|
191
194
|
if major is None:
|
|
192
195
|
raise cli_exception.CliException(
|
|
193
196
|
"Could not determine the Java version from '{0} -version':\n{1}".format(java, output.strip()))
|
|
194
|
-
if major
|
|
197
|
+
if major != REQUIRED_JAVA_VERSION:
|
|
195
198
|
raise cli_exception.CliException(
|
|
196
|
-
"CheckVU requires Java {0}
|
|
197
|
-
"Install a JDK {0}
|
|
198
|
-
"or pass --java <path-to-java>.".format(
|
|
199
|
+
"CheckVU requires Java {0}, but '{1}' reports major version {2}.\n"
|
|
200
|
+
"Install a JDK {0} and either add it to your PATH, set JAVA_HOME, "
|
|
201
|
+
"or pass --java <path-to-java>.".format(REQUIRED_JAVA_VERSION, java, major))
|
|
199
202
|
return major
|
|
200
203
|
|
|
201
204
|
|
|
@@ -271,6 +274,7 @@ def download_jar(url, ssl_cert=""):
|
|
|
271
274
|
cache_dir = get_cache_dir()
|
|
272
275
|
os.makedirs(cache_dir, exist_ok=True)
|
|
273
276
|
partial_destination = None
|
|
277
|
+
print("Downloading CheckVU JAR from " + url + "\n", flush=True)
|
|
274
278
|
try:
|
|
275
279
|
with requests.get(url, stream=True, verify=verify, allow_redirects=True) as response:
|
|
276
280
|
response.raise_for_status()
|
|
@@ -280,7 +284,6 @@ def download_jar(url, ssl_cert=""):
|
|
|
280
284
|
_keep_only_jar(cache_dir, destination)
|
|
281
285
|
return destination
|
|
282
286
|
|
|
283
|
-
print("Downloading CheckVU JAR from " + url + "\n")
|
|
284
287
|
total_bytes = int(response.headers.get("content-length", 0))
|
|
285
288
|
progress_bar = None
|
|
286
289
|
if tools.is_user_interactive():
|
|
@@ -312,6 +315,63 @@ def download_jar(url, ssl_cert=""):
|
|
|
312
315
|
if partial_destination and os.path.isfile(partial_destination):
|
|
313
316
|
os.remove(partial_destination)
|
|
314
317
|
|
|
318
|
+
|
|
319
|
+
def build_nlw_controller_properties(login_data):
|
|
320
|
+
"""Build the controller properties used by CheckVU to reach NeoLoad Web."""
|
|
321
|
+
url = login_data.get_url()
|
|
322
|
+
token = login_data.get_token()
|
|
323
|
+
if url.rstrip("/") == SAAS_API_URL.rstrip("/"):
|
|
324
|
+
# CheckVU treats only the US SaaS url as SaaS. The EU SaaS is still treated as on-premise by NeoLoad GUI.
|
|
325
|
+
return {
|
|
326
|
+
"neoload.web.deployment.type": "SAAS",
|
|
327
|
+
"neoload.web.saas.secretToken": token,
|
|
328
|
+
}
|
|
329
|
+
return {
|
|
330
|
+
"neoload.web.deployment.type": "ONPREMISE",
|
|
331
|
+
"neoload.web.onpremise.url": url,
|
|
332
|
+
"neoload.web.onpremise.secretToken": token,
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
def _escape_property_value(value):
|
|
337
|
+
return str(value).replace("\\", "\\\\").replace("\r", "\\r").replace("\n", "\\n")
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
@contextmanager
|
|
341
|
+
def prepare_controller_properties(controller_properties=None):
|
|
342
|
+
"""Merge saved NeoLoad Web login details into a temporary controller overlay.
|
|
343
|
+
|
|
344
|
+
An explicit user overlay is copied first, then the current login values are
|
|
345
|
+
appended so they take precedence. Without saved login data, the original
|
|
346
|
+
overlay path is returned unchanged.
|
|
347
|
+
"""
|
|
348
|
+
login_data = user_data.get_user_data(throw=False)
|
|
349
|
+
if login_data is None:
|
|
350
|
+
yield controller_properties
|
|
351
|
+
return
|
|
352
|
+
|
|
353
|
+
with tempfile.TemporaryDirectory(prefix="neoload-checkvu-") as temp_dir:
|
|
354
|
+
generated_path = os.path.join(temp_dir, "controller.properties")
|
|
355
|
+
if controller_properties:
|
|
356
|
+
if not os.path.isfile(controller_properties):
|
|
357
|
+
raise cli_exception.CliException(
|
|
358
|
+
"Controller properties file not found: " + controller_properties)
|
|
359
|
+
shutil.copyfile(controller_properties, generated_path)
|
|
360
|
+
|
|
361
|
+
has_existing_content = (
|
|
362
|
+
os.path.isfile(generated_path) and os.path.getsize(generated_path) > 0
|
|
363
|
+
)
|
|
364
|
+
properties = build_nlw_controller_properties(login_data)
|
|
365
|
+
with open(generated_path, "a", encoding="utf-8") as stream:
|
|
366
|
+
if has_existing_content:
|
|
367
|
+
stream.write("\n")
|
|
368
|
+
stream.write("[Web]\n")
|
|
369
|
+
for key, value in properties.items():
|
|
370
|
+
stream.write("{0}={1}\n".format(key, _escape_property_value(value)))
|
|
371
|
+
|
|
372
|
+
yield generated_path
|
|
373
|
+
|
|
374
|
+
|
|
315
375
|
# LOAD-39125: CheckVU CLI JVM flags. Passed on the java command line only — not JAVA_TOOL_OPTIONS
|
|
316
376
|
# (the Load Generator child process would inherit them).
|
|
317
377
|
CHECKVU_VM_OPTIONS = [
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import logging
|
|
1
2
|
import os
|
|
2
3
|
import shutil
|
|
3
4
|
import subprocess
|
|
4
5
|
import zipfile
|
|
6
|
+
from itertools import groupby
|
|
5
7
|
|
|
6
8
|
from neoload_cli_lib import cli_exception, resources
|
|
7
9
|
|
|
@@ -10,17 +12,33 @@ SIGNATURE_BLOCK_SUFFIXES = (".RSA", ".DSA", ".EC")
|
|
|
10
12
|
EXPECTED_ORGANIZATION = "Tricentis GmbH"
|
|
11
13
|
CERTIFICATE_NAMESPACE = "resources.certs"
|
|
12
14
|
TRUSTED_ROOT_KEYSTORE = "globalsign-code-signing-root-r45.jks"
|
|
15
|
+
KEPT_ENTRY_LINES = 3
|
|
13
16
|
|
|
14
17
|
class JarSignatureError(cli_exception.CliException):
|
|
15
18
|
pass
|
|
16
19
|
|
|
17
20
|
|
|
21
|
+
class JarVerificationUnavailableError(JarSignatureError):
|
|
22
|
+
"""No verdict could be reached on the JAR, the check itself could not run."""
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
|
|
18
26
|
def verify_signed_by_tricentis(jar_path, java_executable):
|
|
19
27
|
"""Raise JarSignatureError unless
|
|
20
28
|
- jar signature is verified against trusted root
|
|
21
29
|
- subject DN is Tricentis GmbH
|
|
22
30
|
- that signature is the only one the jar carries
|
|
23
31
|
"""
|
|
32
|
+
jarsigner = _locate_jarsigner(java_executable)
|
|
33
|
+
try:
|
|
34
|
+
_check_signature(jar_path, jarsigner)
|
|
35
|
+
except JarSignatureError as err:
|
|
36
|
+
if isinstance(err, JarVerificationUnavailableError):
|
|
37
|
+
raise
|
|
38
|
+
raise _rejected_as_unofficial(jar_path, err)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def _check_signature(jar_path, jarsigner):
|
|
24
42
|
try:
|
|
25
43
|
archive = zipfile.ZipFile(jar_path)
|
|
26
44
|
except (OSError, zipfile.BadZipFile) as err:
|
|
@@ -30,17 +48,34 @@ def verify_signed_by_tricentis(jar_path, java_executable):
|
|
|
30
48
|
cms_signature = _read_cms_signature(jar)
|
|
31
49
|
_check_tricentis_is_the_only_signer(jar)
|
|
32
50
|
|
|
33
|
-
_run_jarsigner(jar_path,
|
|
51
|
+
_run_jarsigner(jar_path, jarsigner)
|
|
34
52
|
_check_signer_is_tricentis(cms_signature)
|
|
35
53
|
|
|
36
54
|
|
|
55
|
+
def _rejected_as_unofficial(jar_path, cause):
|
|
56
|
+
"""Wrap a failed check into the message the user acts on.
|
|
57
|
+
|
|
58
|
+
The technical wording comes first and the verdict last, so that the line
|
|
59
|
+
the user reads right above the prompt is the one that matters, as in a
|
|
60
|
+
Python traceback.
|
|
61
|
+
"""
|
|
62
|
+
details = "\n".join(" " + line for line in str(cause).splitlines())
|
|
63
|
+
return JarSignatureError(
|
|
64
|
+
"Signature check details:\n{0}\n\n"
|
|
65
|
+
"CheckVU did not run, for security reasons: '{1}' is not an official CheckVU JAR. "
|
|
66
|
+
"Either the file was modified after Tricentis released it, or it is not a CheckVU "
|
|
67
|
+
"JAR at all.\n"
|
|
68
|
+
"Download CheckVU again, or pass a JAR you trust with --jar."
|
|
69
|
+
.format(details, jar_path))
|
|
70
|
+
|
|
71
|
+
|
|
37
72
|
def _read_cms_signature(jar):
|
|
38
73
|
"""Read the signature block jarsigner wrote at META-INF/NEOLOAD_.RSA."""
|
|
39
74
|
try:
|
|
40
75
|
return jar.read(CMS_SIGNATURE_ENTRY)
|
|
41
76
|
except KeyError:
|
|
42
77
|
raise JarSignatureError(
|
|
43
|
-
"The CheckVU JAR is not signed: no signature block '{0}' found"
|
|
78
|
+
"The CheckVU JAR is not signed: no signature block '{0}' found."
|
|
44
79
|
.format(CMS_SIGNATURE_ENTRY))
|
|
45
80
|
|
|
46
81
|
|
|
@@ -63,12 +98,10 @@ def _is_signature_block(entry_name):
|
|
|
63
98
|
and filename.upper().endswith(SIGNATURE_BLOCK_SUFFIXES))
|
|
64
99
|
|
|
65
100
|
|
|
66
|
-
def _run_jarsigner(jar_path,
|
|
101
|
+
def _run_jarsigner(jar_path, jarsigner):
|
|
67
102
|
"""Let the JDK verify the signature against the root shipped with this package.
|
|
68
103
|
Verification is strict (validates whole cert chain, no unsigned entries, no
|
|
69
104
|
modifications)"""
|
|
70
|
-
jarsigner = _locate_jarsigner(java_executable)
|
|
71
|
-
|
|
72
105
|
with resources.get_resource_as_path(CERTIFICATE_NAMESPACE, TRUSTED_ROOT_KEYSTORE) as truststore:
|
|
73
106
|
command = [jarsigner, "-verify", "-strict", "-keystore", str(truststore), jar_path]
|
|
74
107
|
try:
|
|
@@ -78,13 +111,39 @@ def _run_jarsigner(jar_path, java_executable):
|
|
|
78
111
|
universal_newlines=True,
|
|
79
112
|
errors="replace")
|
|
80
113
|
except OSError as err:
|
|
81
|
-
raise
|
|
114
|
+
raise JarVerificationUnavailableError(
|
|
82
115
|
"Unable to run '{0}' to verify the CheckVU JAR: {1}".format(jarsigner, err))
|
|
83
116
|
|
|
84
117
|
if completed.returncode != 0:
|
|
118
|
+
output = (completed.stdout or "").strip()
|
|
119
|
+
logging.debug("'%s' exited with code %s on '%s':\n%s",
|
|
120
|
+
jarsigner, completed.returncode, jar_path, output)
|
|
85
121
|
raise JarSignatureError(
|
|
86
122
|
"The CheckVU JAR signature is not valid. '{0}' exited with code {1}:\n{2}"
|
|
87
|
-
.format(jarsigner, completed.returncode, (
|
|
123
|
+
.format(jarsigner, completed.returncode, _without_entry_lists(output)))
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def _without_entry_lists(jarsigner_output):
|
|
127
|
+
"""Keep what jarsigner says about the signature, drop what it repeats per entry.
|
|
128
|
+
|
|
129
|
+
When a jar carries internal inconsistencies jarsigner lists one line per entry.
|
|
130
|
+
The CheckVU JAR holds about 21000 of them, which buries the dozen lines that say
|
|
131
|
+
why the signature was refused. The untouched output goes to the debug log.
|
|
132
|
+
"""
|
|
133
|
+
kept = []
|
|
134
|
+
for is_entry, group in groupby(jarsigner_output.splitlines(), key=_is_entry_line):
|
|
135
|
+
lines = list(group)
|
|
136
|
+
kept.extend(lines if not is_entry else lines[:KEPT_ENTRY_LINES])
|
|
137
|
+
hidden = len(lines) - KEPT_ENTRY_LINES
|
|
138
|
+
if is_entry and hidden > 0:
|
|
139
|
+
kept.append("... and {0} more entries, run with --debug for the full "
|
|
140
|
+
"jarsigner output".format(hidden))
|
|
141
|
+
return "\n".join(kept)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def _is_entry_line(line):
|
|
145
|
+
"""Tell apart the per-entry lines, which jarsigner writes as a dash-prefixed list."""
|
|
146
|
+
return line.lstrip().startswith("-")
|
|
88
147
|
|
|
89
148
|
|
|
90
149
|
def _locate_jarsigner(java_executable):
|
|
@@ -101,11 +160,11 @@ def _locate_jarsigner(java_executable):
|
|
|
101
160
|
if on_path:
|
|
102
161
|
return on_path
|
|
103
162
|
|
|
104
|
-
raise
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
163
|
+
raise JarVerificationUnavailableError(
|
|
164
|
+
"You are using a JRE ('{0}') which does not provide JAR verification tools "
|
|
165
|
+
"(jarsigner is neither next to it nor on the PATH). Please use a JDK for improved "
|
|
166
|
+
"security to check that the JAR is made by Tricentis. Or add option "
|
|
167
|
+
"--unsafe-skip-jar-verification."
|
|
109
168
|
.format(java_executable))
|
|
110
169
|
|
|
111
170
|
def _check_signer_is_tricentis(cms_signature):
|
|
@@ -8,7 +8,7 @@ import yaml
|
|
|
8
8
|
from yaml.scanner import ScannerError
|
|
9
9
|
|
|
10
10
|
from neoload_cli_lib import cli_exception, bad_as_code_exception
|
|
11
|
-
from neoload_cli_lib.user_data import update_schema, get_yaml_schema, get_yaml_schema_etag, tools
|
|
11
|
+
from neoload_cli_lib.user_data import update_schema, get_yaml_schema, get_yaml_schema_etag, tools, __yaml_schema_file
|
|
12
12
|
|
|
13
13
|
import logging
|
|
14
14
|
import hashlib
|
|
@@ -294,7 +294,9 @@ def init_yaml_schema_with_checks(schema_spec, ssl_cert='', check_schema=True, sc
|
|
|
294
294
|
cached_etag = get_yaml_schema_etag(schema_key=schema_key) if json_schema is not None else None
|
|
295
295
|
json_schema_spec, response_etag, not_modified = get_network_schema_by_spec(schema_spec, ssl_cert, cached_etag)
|
|
296
296
|
if not_modified:
|
|
297
|
-
logging.
|
|
297
|
+
logging.debug(
|
|
298
|
+
'Remote schema unchanged since last download (ETag match) - using cached schema at %s',
|
|
299
|
+
__yaml_schema_file)
|
|
298
300
|
elif json_schema_spec is not None:
|
|
299
301
|
logging.debug("Retrieved remote schema %s chars, etag=%s" % (len(json_schema_spec), response_etag or "none"))
|
|
300
302
|
if response_etag:
|
neoload/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.3.19.
|
|
1
|
+
__version__ = "1.3.19.dev5"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: neoload
|
|
3
|
-
Version: 1.3.19.
|
|
3
|
+
Version: 1.3.19.dev5
|
|
4
4
|
Summary: A command-line native utility for launching and observing NeoLoad performance tests
|
|
5
5
|
Home-page: https://github.com/Neotys-Labs/neoload-cli
|
|
6
6
|
Author: Neotys
|
|
@@ -232,11 +232,21 @@ neoload checkvu -u myUser default.yaml
|
|
|
232
232
|
- `PROJECT_FILE` is a path to an as-code yaml file. The CLI validates it against the as-code schema first (same as `neoload validate`), using `-s, --as-code-schema` to override the default schema.
|
|
233
233
|
- `--play-think-time` plays think times defined on pages and delays marked as think time. Disabled by default (same as the CheckVU advanced setting).
|
|
234
234
|
- `-e, --engine-jar, --jar <path-or-url>` skips the JAR resolution below and runs a local patched file (hotfix) or an explicit download URL. If omitted: reuse the single cached JAR if one exists (no network call); otherwise detect the OS, call `redirect.php` (`version=latest`), follow the 302 to `files.tricentis.com`, and cache the JAR under the filename from the final `Content-Disposition` (e.g. `neoload-checkvu-cli-2026.3.0-linux.jar`). Clear the cache directory to force a fresh download after a new CheckVU release.
|
|
235
|
-
- `-j, --java` selects the java executable; by default `JAVA_HOME/bin/java` then `java` on the PATH. Java 21
|
|
235
|
+
- `-j, --java` selects the java executable; by default `JAVA_HOME/bin/java` then `java` on the PATH. Java 21 is required and verified before running (other major versions such as 25 are rejected). The JAR is launched with `-XX:TieredStopAtLevel=1 -Xms256m -Xmx512m -XX:+UseSerialGC` to keep startup short, and `JAVA_TOOL_OPTIONS` is emptied for that process so these options always apply and do not reach the Load Generator it spawns. Use a JDK rather than a JRE: the JDK provides `jarsigner`, which the CLI uses to check that the JAR is made by Tricentis. With a JRE the command stops with an error, unless you bypass the check using `--unsafe-skip-jar-verification`
|
|
236
236
|
- `-o, --output <path>` sets the directory that receives `checkvu-result.json` and the `checkvu-content/` request and response dump. When omitted, nothing is written to disk and only the console output is produced. Relative paths resolve from the current directory, not from `PROJECT_FILE`. The dump is not redacted, so treat it as confidential.
|
|
237
237
|
- `-w, --work-dir <path>` sets the directory used for engine files and logs. Defaults to a temporary directory deleted afterwards unless `--keep-temp-work-dir` is set; a directory you supply yourself is never deleted.
|
|
238
238
|
- `--app-proxy`, `--app-proxy-username` and `--app-proxy-bypass` configure the proxy used for application traffic. The proxy password is set with `CHECKVU_CLI_APP_PROXY_PASSWORD` environment variable instead so it never shows up in the process list or CI logs.
|
|
239
|
-
- `--controller-properties` and `--load-generator-properties` are advanced options to merge a `.properties` file into the JAR's embedded `controller.properties` / `agent.properties`.
|
|
239
|
+
- `--controller-properties` and `--load-generator-properties` are advanced options to merge a `.properties` file into the JAR's embedded `controller.properties` / `agent.properties`. When CheckVU starts after `neoload login`, it reuses the saved URL and token through a temporary `[Web]` overlay: SaaS keys when the saved URL is the default SaaS API, and on-premise keys for any other URL. Those login keys win over the same keys in an explicit overlay. The temporary overlay is deleted after the run. If `--work-dir` or `--keep-temp-work-dir` retains the engine work directory, its merged `conf/controller.properties` also remains and contains the token in clear text; treat that directory as confidential.
|
|
240
|
+
|
|
241
|
+
> [!IMPORTANT]
|
|
242
|
+
> A **Secret Vault variable** is resolved by **NeoLoad Web**. CheckVU can use one only when the CLI already has a NeoLoad Web connection. [Log in to NeoLoad Web](#login-to-neoload-web) first, then run CheckVU:
|
|
243
|
+
>
|
|
244
|
+
> ```
|
|
245
|
+
> neoload login [TOKEN]
|
|
246
|
+
> neoload checkvu default.yaml
|
|
247
|
+
> ```
|
|
248
|
+
>
|
|
249
|
+
> Without that connection, CheckVU cannot resolve the Secret Vault variable.
|
|
240
250
|
|
|
241
251
|
## Reporting
|
|
242
252
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
neoload/__init__.py,sha256=ppFbz9b3WzL6AcSU2aTGLdPe-5OMwfoDu1g-ZwErOYM,83
|
|
2
2
|
neoload/__main__.py,sha256=VC8eyTjuTMxUEOCDXCuT2DLR6dy_f6JC0Wv1MNVgVm8,2212
|
|
3
|
-
neoload/version.py,sha256=
|
|
3
|
+
neoload/version.py,sha256=MFjjuDj_Kx9hWihClHEvUUXCuWxBqwqypbsGg4J2yEk,27
|
|
4
4
|
neoload/version_manager.py,sha256=OoBdz8nKuhJigkDjAif_6S55TQsrAlutwCP1J8KyTGk,87
|
|
5
5
|
neoload/commands/__init__.py,sha256=WyP7zmk3HxcGie69Sd3YTWqbc_DTOqtcphnNrt1Fnf0,218
|
|
6
|
-
neoload/commands/checkvu.py,sha256=
|
|
6
|
+
neoload/commands/checkvu.py,sha256=U9-yaB1JDZCGgWvY3UK0nHLeSXyGVxWbqwTC-Quqhhc,7635
|
|
7
7
|
neoload/commands/config.py,sha256=NHOq7pHnLiSXyriwwBaD8gL_1W7FZDqnkJEqO_dvpCU,1139
|
|
8
8
|
neoload/commands/docker.py,sha256=a9ROmeLu38LY6nOUAKtdOiSXHbSRoxE8XT18FnuyQh0,1940
|
|
9
9
|
neoload/commands/fastfail.py,sha256=IwMjIdpuMETvn133XVg0Xy0kZtbH-ilHgh-sD6uJJO4,8443
|
|
@@ -24,14 +24,14 @@ neoload/commands/workspaces.py,sha256=rs-f2wq1zFc1DxItWVkvyIt8jm1JUpJMNB94N8H8NJ
|
|
|
24
24
|
neoload/commands/zones.py,sha256=vlpZW6-CRHH8-6SNtGqfWnzvyg_CkD10NReBInsVgjU,1681
|
|
25
25
|
neoload/neoload_cli_lib/__init__.py,sha256=0FViI4L9NiOG4IG_2w8Di_4Z5s_G3xBag5DIpIKUr_8,189
|
|
26
26
|
neoload/neoload_cli_lib/bad_as_code_exception.py,sha256=n_LQOPeBo0rteffVQMZ0Ux7I5YwLrWJA_R3rl_ed3zU,54
|
|
27
|
-
neoload/neoload_cli_lib/checkvu_runner.py,sha256=
|
|
27
|
+
neoload/neoload_cli_lib/checkvu_runner.py,sha256=2X9MeFmiHXZgG0lbY_JWkbk1g2m3Z4igznJ9j-VMlSs,16184
|
|
28
28
|
neoload/neoload_cli_lib/cli_exception.py,sha256=qGHDgh5LxmJ6B8bFGucFWhSmj8UIGccvayYN0IbZ2cI,562
|
|
29
29
|
neoload/neoload_cli_lib/config_global.py,sha256=MBUUgzLqnySzgVgwE3DNw-06seeF27h5YOcxcH0hwl8,1153
|
|
30
30
|
neoload/neoload_cli_lib/displayer.py,sha256=E9pCQ2U8X4HK-FA0kqAQfXOyJocB7q5YlQIgcGccBzY,5672
|
|
31
31
|
neoload/neoload_cli_lib/docker_lib.py,sha256=qPDPfXwlVNZhQDm1JSbZN1VcyU0mZ0w1nfBRIdrVrbo,10702
|
|
32
32
|
neoload/neoload_cli_lib/filtering.py,sha256=s_ZXSkYJuCFa6hJ8wgPgArvfmwCIuWYjx9xLDFoMGkQ,1722
|
|
33
33
|
neoload/neoload_cli_lib/hooks.py,sha256=Z965WGU0V6ts03IKEcuwIUNtWt7PTWV7xkqENMbQbrk,1360
|
|
34
|
-
neoload/neoload_cli_lib/jar_signature.py,sha256
|
|
34
|
+
neoload/neoload_cli_lib/jar_signature.py,sha256=-88Sy6KFDCu4sl7reAwW6dw1l-VFBDtE9hdUvmhkmD0,8397
|
|
35
35
|
neoload/neoload_cli_lib/logs_tools.py,sha256=EP3XLh_iS7MqIjm6BFG_qoC9YW2HBCQSRi8Tgfvs0C0,789
|
|
36
36
|
neoload/neoload_cli_lib/logs_traduction_map.py,sha256=98v6WPxxCZMpjSISBvS9b9C32XsYw51HsM6_maoFrcU,1817
|
|
37
37
|
neoload/neoload_cli_lib/name_resolver.py,sha256=kNGGxTLL6_MPdfLXDR7881ZDez8dN_BzUfs_QfdKEMo,1849
|
|
@@ -40,7 +40,7 @@ neoload/neoload_cli_lib/paths.py,sha256=O5-bR7Ywh46pVlLvQvyfyBvI6xpBsHB2Jec4r8gX
|
|
|
40
40
|
neoload/neoload_cli_lib/resources.py,sha256=hewA8HMWULTUHJSHCuqXfsYsrn38z6k9g9pFp2aINms,1006
|
|
41
41
|
neoload/neoload_cli_lib/rest_crud.py,sha256=2R1j9bSP8nDvmKpQdbThNS-e5tqhY93q4IQRTkb0pkI,7170
|
|
42
42
|
neoload/neoload_cli_lib/running_tools.py,sha256=o-20HZuDvKWFmTAlPUBooqdKiMR2wbSuDT_tvsIAOCk,4621
|
|
43
|
-
neoload/neoload_cli_lib/schema_validation.py,sha256=
|
|
43
|
+
neoload/neoload_cli_lib/schema_validation.py,sha256=xkyDR986p8C4XCrO4DlBqVPv1C0cwz8fdZlnjNXT0Bw,17912
|
|
44
44
|
neoload/neoload_cli_lib/tools.py,sha256=xqOClV2A1s10v-creFy7BRNl_1Zwe9ogU52kQ9UJA_k,6796
|
|
45
45
|
neoload/neoload_cli_lib/user_data.py,sha256=_jMrrBlRVrkxl2J_dRC6nrNXT1h-OKHe0ZzfbKDEgT0,10673
|
|
46
46
|
neoload/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -66,7 +66,7 @@ neoload/resources/jinja/trends/transaction_trends.html.j2,sha256=SUyv6dNuwxgOm8J
|
|
|
66
66
|
neoload/resources/jinja/trends/trends.js,sha256=-fg5rmaf6GizSmxNJRDzH4XKkPNtZMgAksyVodfgxAU,4301
|
|
67
67
|
neoload/resources/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
68
68
|
neoload/resources/templates/default.yaml,sha256=QofwyiMcjHX9evkbopTGBTLfxnrU8N4KhJQaAnccLCs,4327
|
|
69
|
-
neoload-1.3.19.
|
|
69
|
+
neoload-1.3.19.dev5.dist-info/licenses/LICENSE,sha256=i-CfWekEItJFCt9_bKrGowVoyI8FnXudiJMQVfAqQLM,1316
|
|
70
70
|
tests/helpers/__init__.py,sha256=PX7b5FCyCKBVvTL8wIQZw1G1dQv6Z93RwFZ-qVal89o,25
|
|
71
71
|
tests/helpers/test_utils.py,sha256=SOS1HSPo3bu3HC9DSdwxCVJNW5V0B5O_Vv7nmvdSaYM,4951
|
|
72
72
|
tests/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -85,8 +85,8 @@ tests/resources/report/expected_template_trends.html,sha256=bssvJ47IcvBdpvzEDDrI
|
|
|
85
85
|
tests/resources/report/expected_trends.json,sha256=rAMlxHfeA8nw8TUiyXpaPmgCJDbWV8oVcJRw8ak1xdM,1808078
|
|
86
86
|
tests/resources/report/raw_expected_custom_report.html,sha256=m2Ydbkca5h6Iekcrhwobz4uPLVsGPr8i57eQmDtzc0Q,51599
|
|
87
87
|
tests/resources/report/raw_expected_report.json,sha256=dVxw05cJ05DjhXFKlO55njABO3yHKN_9SLZ9ym4h2Yw,482528
|
|
88
|
-
neoload-1.3.19.
|
|
89
|
-
neoload-1.3.19.
|
|
90
|
-
neoload-1.3.19.
|
|
91
|
-
neoload-1.3.19.
|
|
92
|
-
neoload-1.3.19.
|
|
88
|
+
neoload-1.3.19.dev5.dist-info/METADATA,sha256=3afEdyqY6t68netwHHa9sKzf8jgtnux1anwWPfpnI-w,33232
|
|
89
|
+
neoload-1.3.19.dev5.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
90
|
+
neoload-1.3.19.dev5.dist-info/entry_points.txt,sha256=GNW-z2buvHrI63YHM8oI_5NVb4Muoqz8MX6FQO_cwkU,49
|
|
91
|
+
neoload-1.3.19.dev5.dist-info/top_level.txt,sha256=mNWJq4fq22w4_6bsS4xAVbZJrzcsiRM8K0nJwQHlkgg,14
|
|
92
|
+
neoload-1.3.19.dev5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|