neoload 1.3.19.dev4__tar.gz → 1.3.19.dev6__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.
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/.github/workflows/python-package.yml +1 -1
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/PKG-INFO +2 -2
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/README.md +1 -1
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/checkvu.py +4 -6
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/validate.py +1 -1
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/checkvu_runner.py +9 -51
- neoload-1.3.19.dev6/neoload/neoload_cli_lib/schema_error_report.py +197 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/schema_validation.py +9 -10
- neoload-1.3.19.dev6/neoload/version.py +1 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload.egg-info/PKG-INFO +2 -2
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload.egg-info/SOURCES.txt +3 -1
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_checkvu.py +21 -86
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_validate.py +4 -4
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/conftest.py +2 -2
- neoload-1.3.19.dev6/tests/neoload_cli_lib/test_error_explanation.py +122 -0
- neoload-1.3.19.dev6/tests/resources/as-code.local.schema.json +15 -0
- neoload-1.3.19.dev4/neoload/version.py +0 -1
- neoload-1.3.19.dev4/resources/as-code.latest.schema.json +0 -705
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/.github/workflows/python-integration-tests.yml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/.github/workflows/python-post-release-changelog-pr.yml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/.github/workflows/python-release.yml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/.gitignore +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/.travis.yml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/CHANGELOG.md +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/LICENSE +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/MANIFEST.in +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/docker/Dockerfile +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/aws/.nlignore +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/aws/buildspec.yaml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/azure_devops/.nlignore +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/azure_devops/Azure_DevOps_Pipeline_NeoLoad_CLI.jpg +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/azure_devops/Azure_DevOps_Pipeline_NeoLoad_SLA_jUnit.jpg +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/azure_devops/README.md +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/azure_devops/neoload-cli-docker.yml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/azure_devops/neoload-cli-dyninfra.yml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/bamboo-specs/.nlignore +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/bamboo-specs/Bamboo_Pipeline_NeoLoad_SLA_jUnit.jpg +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/bamboo-specs/README.md +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/bamboo-specs/bamboo-v1.yaml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/bamboo-specs/bamboo-v2.yaml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/github/neoload-github-actions-demo.yml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/gitlab/.nlignore +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/gitlab/openshift.gitlab-ci.yml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/jenkins/Jenkinsfile_dyninfra +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/examples/pipelines/jenkins/Jenkinsfile_slafails +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/__init__.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/__main__.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/__init__.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/config.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/docker.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/fastfail.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/login.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/logout.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/logs.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/logs_url.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/project.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/report.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/run.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/status.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/stop.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/test_results.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/test_settings.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/wait.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/workspaces.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/commands/zones.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/__init__.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/bad_as_code_exception.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/cli_exception.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/config_global.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/displayer.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/docker_lib.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/filtering.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/hooks.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/jar_signature.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/logs_tools.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/logs_traduction_map.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/name_resolver.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/neoLoad_project.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/paths.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/resources.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/rest_crud.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/running_tools.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/tools.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/neoload_cli_lib/user_data.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/__init__.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/certs/__init__.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/certs/globalsign-code-signing-root-r45.jks +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/__init__.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/builtin_console_summary.j2 +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/builtin_transactions_csv.j2 +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/common/common.js +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/common/external_data.html.j2 +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/common/general_details.html.j2 +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/common/header.j2 +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/common/hits_per_second.html.j2 +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/common/running_vus.html.j2 +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/common/styles.css +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/common/transactions.html.j2 +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/common/workload_characteristics.html.j2 +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/custom_transactions_export.j2 +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/sample-custom-report.html.j2 +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/sample-trends-report.html.j2 +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/trends/general_details.html.j2 +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/trends/transaction_trends.html.j2 +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/jinja/trends/trends.js +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/templates/__init__.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/resources/templates/default.yaml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload/version_manager.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload.egg-info/dependency_links.txt +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload.egg-info/entry_points.txt +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload.egg-info/requires.txt +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/neoload.egg-info/top_level.txt +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/notes/PSB_20200421_TODO.txt +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/notes/acceptance.txt +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/pull_request_template.md +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/pytest.ini +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/requirements.txt +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/setup.cfg +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/setup.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/sonar-project.properties +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/__init__.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/docker/test_docker_cleanups.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/docker/test_docker_connections.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/docker/test_docker_hooks.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/fastfail/test_fastfail_slas.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/project/test_project_create.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/project/test_upload.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/project/test_upload_with_password.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/report/conftest.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/report/test_report.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/report/test_report_json_output.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/report/test_report_templates.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/report/test_report_transactions.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/report/test_report_trends.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/report/test_trends_json_output.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/report/test_trends_templates.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/status/test_status_with_names.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_config.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_login.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_logout.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_logs/test_logs.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_logs_url.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_results/test_result_delete.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_results/test_result_ls.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_results/test_result_patch.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_results/test_result_put.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_run.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_settings/test_create.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_settings/test_createorpatch.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_settings/test_delete.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_settings/test_ls.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_settings/test_patch.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/test_settings/test_put.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/wait/test_wait.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/workspaces/test_workspace_ls.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/workspaces/test_workspace_use.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/commands/zones/test_zones.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/helpers/__init__.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/helpers/test_utils.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/expected/fastfail.log +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/expected/junit-sla.xml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/expected/run.log +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/expected/summary.txt +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/runAllScripts.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/scripts/cleanup.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/scripts/project.upload.test.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/scripts/results.delete.test.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/scripts/results.patch.test.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/scripts/results.put.test.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/scripts/run.fastfail.test.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/scripts/run.oneliner.test.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/scripts/run.test.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/scripts/settings.create.delete.test.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/scripts/settings.patch.test.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/scripts/settings.put.test.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/scripts/validate.test.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/scripts/wait.test.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/integration/scripts/zones.ls.test.sh +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_cli_lib/test_SchemaValidation.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_cli_lib/test_displayer.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_cli_lib/test_docker.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_cli_lib/test_etag_caching.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_cli_lib/test_filtering.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_cli_lib/test_include_resolution.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_cli_lib/test_jar_signature.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_cli_lib/test_rest_crud.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_cli_lib/test_running_tools.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_cli_lib/test_tools.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_cli_lib/test_user_data.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_cli_lib/test_validator_selection.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/.nlignore +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/broken_yaml.yaml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/circular_includes/a.yaml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/circular_includes/b.yaml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/empty.yaml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/example_1/.gitlab-ci.yml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/example_1/.nlignore +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/example_1/data/cities.csv +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/example_1/default.yaml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/example_1/paths/geosearch_get.yaml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/example_1/slas/prod.yaml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/example_1/slas/uat.yaml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/example_1.zip +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/example_2.zip +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/invalid_to_schema.yaml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/neoload_projects/simpledemo.yml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/__init__.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/expected_neoload_junit_slas.xml +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/expected_summary_text_no_sla.txt +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/expected_summary_text_with_sla.txt +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/jinja/__init__.py +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/report/expected_custom_report.html +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/report/expected_custom_report_filtered.html +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/report/expected_custom_transactions.csv +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/report/expected_report.json +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/report/expected_report_filtered.json +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/report/expected_template_transactions.json +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/report/expected_template_transactions_csv.csv +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/report/expected_template_trends.html +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/report/expected_trends.json +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/report/raw_expected_custom_report.html +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/resources/report/raw_expected_report.json +0 -0
- {neoload-1.3.19.dev4 → neoload-1.3.19.dev6}/tests/test_readme.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: neoload
|
|
3
|
-
Version: 1.3.19.
|
|
3
|
+
Version: 1.3.19.dev6
|
|
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
|
|
@@ -231,7 +231,7 @@ neoload checkvu -u myUser default.yaml
|
|
|
231
231
|
```
|
|
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
|
-
- `-e, --engine-jar, --jar <path-or-url>` runs a local
|
|
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
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.
|
|
@@ -189,7 +189,7 @@ neoload checkvu -u myUser default.yaml
|
|
|
189
189
|
```
|
|
190
190
|
- `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.
|
|
191
191
|
- `--play-think-time` plays think times defined on pages and delays marked as think time. Disabled by default (same as the CheckVU advanced setting).
|
|
192
|
-
- `-e, --engine-jar, --jar <path-or-url>` runs a local
|
|
192
|
+
- `-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.
|
|
193
193
|
- `-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`
|
|
194
194
|
- `-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.
|
|
195
195
|
- `-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.
|
|
@@ -11,9 +11,9 @@ __yaml_extensions = (".yaml", ".yml")
|
|
|
11
11
|
|
|
12
12
|
@click.command()
|
|
13
13
|
@click.option('-e', '--engine-jar', '--jar',
|
|
14
|
-
help="
|
|
15
|
-
"
|
|
16
|
-
"
|
|
14
|
+
help="Skip the latest-JAR download and run this CheckVU engine: a local patched file "
|
|
15
|
+
"(hotfix / air-gapped) or a download URL. If omitted, the latest JAR for this OS "
|
|
16
|
+
"is downloaded and cached.",
|
|
17
17
|
metavar="PATH|URL")
|
|
18
18
|
@click.option('-j', '--java', help="Path to the java executable to use. "
|
|
19
19
|
"Defaults to JAVA_HOME/bin/java, then java on the PATH.", metavar="PATH")
|
|
@@ -25,7 +25,7 @@ __yaml_extensions = (".yaml", ".yml")
|
|
|
25
25
|
"Disabled by default. Equivalent to setting CHECKVU_CLI_PLAY_THINK_TIME=1.")
|
|
26
26
|
@click.option('-s', '--as-code-schema', default=None,
|
|
27
27
|
help="NeoLoad as-code schema (URL or local path) to validate PROJECT_FILE against. "
|
|
28
|
-
"When omitted, download schemas/v<schemaVersion>/as-code.schema.json from neoload-models
|
|
28
|
+
"When omitted, download schemas/v<schemaVersion>/as-code.schema.json from neoload-models (v3). "
|
|
29
29
|
"If schemaVersion is absent, use schemas/v3.0/as-code.schema.json.",
|
|
30
30
|
metavar="PATH|URL")
|
|
31
31
|
@click.option('--ssl-cert', default="",
|
|
@@ -106,8 +106,6 @@ def cli(engine_jar, java, user_path, play_think_time, as_code_schema, ssl_cert,
|
|
|
106
106
|
resolved_jar = checkvu_runner.resolve_jar(engine_jar, ssl_cert, java_executable,
|
|
107
107
|
verify_signature=not unsafe_skip_jar_verification)
|
|
108
108
|
logging.debug("Using CheckVU JAR at '%s'", os.path.abspath(resolved_jar))
|
|
109
|
-
if not engine_jar:
|
|
110
|
-
checkvu_runner.check_jar_build(java_executable, resolved_jar)
|
|
111
109
|
|
|
112
110
|
with checkvu_runner.prepare_controller_properties(
|
|
113
111
|
controller_properties) as resolved_controller_properties:
|
|
@@ -4,7 +4,7 @@ import neoload_cli_lib.schema_validation as schema_validation
|
|
|
4
4
|
@click.command()
|
|
5
5
|
@click.option('-s', '--as-code-schema', default=None,
|
|
6
6
|
help="NeoLoad as-code schema (URL or local path) to validate FILE against. "
|
|
7
|
-
"When omitted, download schemas/v<schemaVersion>/as-code.schema.json from neoload-models
|
|
7
|
+
"When omitted, download schemas/v<schemaVersion>/as-code.schema.json from neoload-models (v3). "
|
|
8
8
|
"If schemaVersion is absent, use schemas/v3.0/as-code.schema.json.",
|
|
9
9
|
metavar="PATH|URL")
|
|
10
10
|
@click.option('--schema-url', 'schema_url', default=None, hidden=True,
|
|
@@ -33,11 +33,8 @@ SUPPORTED_OS = (OS_LINUX, OS_LINUX_ARM64, OS_MAC, OS_MAC_ARM64, OS_WIN32_X64)
|
|
|
33
33
|
|
|
34
34
|
CACHE_DIR_NAME = "checkvu"
|
|
35
35
|
FALLBACK_JAR_NAME = "checkvu.jar"
|
|
36
|
-
CHECKVU_JAR_DOWNLOAD_URL = "https://github.com/Tricentis-NeoLoad/neoload-root/actions/runs/39966419452"
|
|
37
|
-
EXPECTED_NLG_BUILD = "3747"
|
|
38
36
|
|
|
39
37
|
__java_version_pattern = re.compile(r'version "(\d+)(?:\.(\d+))?')
|
|
40
|
-
__nlg_build_pattern = re.compile(r"build=\d+-(\d+)")
|
|
41
38
|
__content_disposition_filename = re.compile(
|
|
42
39
|
r"filename\*?=(?:UTF-8\'\')?\"?([^\";]+)\"?", re.IGNORECASE)
|
|
43
40
|
__shipped_jar_version_pattern = re.compile(
|
|
@@ -205,43 +202,6 @@ def check_java_version(java):
|
|
|
205
202
|
return major
|
|
206
203
|
|
|
207
204
|
|
|
208
|
-
def parse_nlg_build(version_output):
|
|
209
|
-
"""Return the NLG build number from the first line of `java -jar … --version`.
|
|
210
|
-
|
|
211
|
-
Example: NeoLoad CheckVU CLI 2026.3.0;build=20260921-3747 -> 3747
|
|
212
|
-
"""
|
|
213
|
-
lines = (version_output or "").splitlines()
|
|
214
|
-
if not lines:
|
|
215
|
-
return None
|
|
216
|
-
match = __nlg_build_pattern.search(lines[0])
|
|
217
|
-
if match is None:
|
|
218
|
-
return None
|
|
219
|
-
return match.group(1)
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
def check_jar_build(java, jar):
|
|
223
|
-
"""Run `java -jar <jar> --version` without printing it, and require the expected NLG build."""
|
|
224
|
-
try:
|
|
225
|
-
completed = subprocess.run(
|
|
226
|
-
[java, "-jar", jar, "--version"],
|
|
227
|
-
stdout=subprocess.PIPE,
|
|
228
|
-
stderr=subprocess.STDOUT,
|
|
229
|
-
universal_newlines=True)
|
|
230
|
-
except OSError as err:
|
|
231
|
-
raise cli_exception.CliException(
|
|
232
|
-
"Unable to read the CheckVU JAR version with '{0} -jar {1} --version': {2}".format(
|
|
233
|
-
java, jar, str(err)))
|
|
234
|
-
|
|
235
|
-
output = completed.stdout or ""
|
|
236
|
-
first_line = output.splitlines()[0].strip() if output.strip() else "unknown"
|
|
237
|
-
actual = parse_nlg_build(output)
|
|
238
|
-
if actual != EXPECTED_NLG_BUILD:
|
|
239
|
-
raise cli_exception.CliException(
|
|
240
|
-
"the JAR build version is not the correct one. Actual: {0} expected build: {1}".format(
|
|
241
|
-
first_line, EXPECTED_NLG_BUILD))
|
|
242
|
-
return actual
|
|
243
|
-
|
|
244
|
-
|
|
245
205
|
def is_url(spec):
|
|
246
206
|
return spec is not None and "://" in spec
|
|
247
207
|
|
|
@@ -253,7 +213,7 @@ def resolve_jar(engine_jar=None, ssl_cert="", java_executable=None, verify_signa
|
|
|
253
213
|
1. --jar / --engine-jar local file: skip download, run that JAR (hotfix).
|
|
254
214
|
2. --jar / --engine-jar URL: download that URL into the cache (1 JAR).
|
|
255
215
|
3. a cached JAR, if one exists: reused as-is, no network call.
|
|
256
|
-
4.
|
|
216
|
+
4. redirect.php latest for this OS, only when no JAR is cached yet.
|
|
257
217
|
"""
|
|
258
218
|
jar = _locate_jar(engine_jar, ssl_cert)
|
|
259
219
|
if verify_signature:
|
|
@@ -276,16 +236,12 @@ def _locate_jar(engine_jar, ssl_cert):
|
|
|
276
236
|
if cached:
|
|
277
237
|
return cached
|
|
278
238
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
"The CheckVU JAR can be downloaded here:\n"
|
|
286
|
-
"{1}\n"
|
|
287
|
-
"You can also download NeoLoad installers from there.\n".format(
|
|
288
|
-
cache_dir, CHECKVU_JAR_DOWNLOAD_URL))
|
|
239
|
+
try:
|
|
240
|
+
return download_jar(build_redirect_url(), ssl_cert)
|
|
241
|
+
except cli_exception.CliException as err:
|
|
242
|
+
raise cli_exception.CliException(
|
|
243
|
+
"{0}\nNo cached JAR to fall back on. Provide one with --jar <path|url> "
|
|
244
|
+
"for an air-gapped or hotfix run.".format(err))
|
|
289
245
|
|
|
290
246
|
|
|
291
247
|
def _keep_only_jar(cache_dir, keep_path):
|
|
@@ -365,6 +321,7 @@ def build_nlw_controller_properties(login_data):
|
|
|
365
321
|
url = login_data.get_url()
|
|
366
322
|
token = login_data.get_token()
|
|
367
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.
|
|
368
325
|
return {
|
|
369
326
|
"neoload.web.deployment.type": "SAAS",
|
|
370
327
|
"neoload.web.saas.secretToken": token,
|
|
@@ -422,6 +379,7 @@ CHECKVU_VM_OPTIONS = [
|
|
|
422
379
|
"-Xms256m",
|
|
423
380
|
"-Xmx512m",
|
|
424
381
|
"-XX:+UseSerialGC",
|
|
382
|
+
"-XX:+ExitOnOutOfMemoryError",
|
|
425
383
|
]
|
|
426
384
|
|
|
427
385
|
def build_command(java, jar, project_file, user_path=None, play_think_time=False,
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"""Turn the raw jsonschema errors of an as-code project into a short report: one entry per mistake.
|
|
2
|
+
|
|
3
|
+
A jsonschema error list is hard to read for a project made of steps that can each be one of ~20 kinds
|
|
4
|
+
(request, transaction, web_page, ...): the schema uses oneOf, and jsonschema reports "not valid under any of
|
|
5
|
+
the given schemas" with the failures of every alternative. Everything here is a pure function of the errors
|
|
6
|
+
and the project; nothing is printed, logged or modified.
|
|
7
|
+
"""
|
|
8
|
+
import re
|
|
9
|
+
from itertools import takewhile
|
|
10
|
+
from typing import NamedTuple, Tuple
|
|
11
|
+
|
|
12
|
+
import yaml
|
|
13
|
+
|
|
14
|
+
COLLECTIONS = {'user_paths': 'user_path', 'variables': 'variable', 'servers': 'server',
|
|
15
|
+
'populations': 'population', 'scenarios': 'scenario', 'sla_profiles': 'sla_profile'}
|
|
16
|
+
STRUCTURAL_KEYS = set(COLLECTIONS) | {'steps', 'actions', 'init', 'end'}
|
|
17
|
+
VALUE_MAX_LENGTH = 160
|
|
18
|
+
STEP_NAME_MAX_LENGTH = 60
|
|
19
|
+
PATHS_SHOWN = 4
|
|
20
|
+
UNEXPECTED_KEYS = re.compile(r"^Unevaluated properties are not allowed \((.*) (?:was|were) unexpected\)$")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class Finding(NamedTuple):
|
|
24
|
+
"""One mistake at one place of the project."""
|
|
25
|
+
path: Tuple
|
|
26
|
+
message: str
|
|
27
|
+
value: str # the offending value, shortened. Empty when it would not help.
|
|
28
|
+
steps: str # the named steps leading to the mistake
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# --- choosing the errors worth reporting ---------------------------------------------------------------
|
|
32
|
+
|
|
33
|
+
def depth(errors):
|
|
34
|
+
return max(len(error.absolute_path) for error in errors)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def by_alternative(errors):
|
|
38
|
+
"""Group the errors of a oneOf/anyOf by the alternative that raised them."""
|
|
39
|
+
groups = {}
|
|
40
|
+
for error in errors:
|
|
41
|
+
groups.setdefault(error.relative_schema_path[0], []).append(error)
|
|
42
|
+
return list(groups.values())
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def deepest_errors(error):
|
|
46
|
+
"""The errors that hold the real mistake behind an error.
|
|
47
|
+
|
|
48
|
+
The alternative of a oneOf that fails deepest in the document is the one whose shape matched the most.
|
|
49
|
+
If no alternative gets past the oneOf's own level, none was recognised: keep the oneOf error itself.
|
|
50
|
+
"""
|
|
51
|
+
if not error.context:
|
|
52
|
+
return [error]
|
|
53
|
+
best = max(by_alternative(error.context), key=lambda errors: (depth(errors), -len(errors)))
|
|
54
|
+
if depth(best) <= len(error.absolute_path):
|
|
55
|
+
return [error]
|
|
56
|
+
return [leaf for sub_error in best for leaf in deepest_errors(sub_error)]
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def unexpected_keys(error):
|
|
60
|
+
"""The keys named by an "Unevaluated properties are not allowed" error, none for another error."""
|
|
61
|
+
match = UNEXPECTED_KEYS.match(error.message)
|
|
62
|
+
return [key.strip().strip("'") for key in match.group(1).split(',')] if match else []
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def is_side_effect_of_invalid_value(error, error_paths):
|
|
66
|
+
"""A key whose value is invalid is also reported as unexpected: keep only the invalid value."""
|
|
67
|
+
path = tuple(map(str, error.absolute_path))
|
|
68
|
+
keys = unexpected_keys(error)
|
|
69
|
+
return bool(keys) and all(any(other[:len(path) + 1] == path + (key,) for other in error_paths)
|
|
70
|
+
for key in keys)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def document_order(error):
|
|
74
|
+
"""Sort key putting steps[2] before steps[10]: list positions compare as numbers."""
|
|
75
|
+
return [(0, part) if isinstance(part, int) else (1, str(part)) for part in error.absolute_path]
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def real_errors(errors):
|
|
79
|
+
leaves = [leaf for error in errors for leaf in deepest_errors(error)]
|
|
80
|
+
error_paths = [tuple(map(str, leaf.absolute_path)) for leaf in leaves]
|
|
81
|
+
return [leaf for leaf in leaves if not is_side_effect_of_invalid_value(leaf, error_paths)]
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
# --- describing one error --------------------------------------------------------------------------------
|
|
85
|
+
|
|
86
|
+
def shorten(text, max_length):
|
|
87
|
+
return text if len(text) <= max_length else text[:max_length] + '...'
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def show_value(value):
|
|
91
|
+
one_line = yaml.dump(value, default_flow_style=True, width=10 ** 6).replace('\n...\n', '').strip()
|
|
92
|
+
return shorten(one_line.replace('\n', ' '), VALUE_MAX_LENGTH)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def format_path(path):
|
|
96
|
+
"""user_paths[0].actions.steps[1]"""
|
|
97
|
+
text = ''.join('[%s]' % part if isinstance(part, int) else '.' + str(part) for part in path)
|
|
98
|
+
return text.lstrip('.') or '(root)'
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def nodes_along(project, path):
|
|
102
|
+
"""(key before, key, node) for each element of the path that exists in the project."""
|
|
103
|
+
node, key_before = project, None
|
|
104
|
+
for key in path:
|
|
105
|
+
try:
|
|
106
|
+
node = node[key]
|
|
107
|
+
except (KeyError, IndexError, TypeError):
|
|
108
|
+
return
|
|
109
|
+
yield key_before, key, node
|
|
110
|
+
key_before = key
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def step_label(key_before, key, node):
|
|
114
|
+
""""transaction 'Login'", "user_path 'Main'", or None for a node that names nothing."""
|
|
115
|
+
if not isinstance(node, dict):
|
|
116
|
+
return None
|
|
117
|
+
if isinstance(key, int) and key_before in COLLECTIONS:
|
|
118
|
+
return "%s '%s'" % (COLLECTIONS[key_before], node.get('name', key))
|
|
119
|
+
if isinstance(key, str) and key_before is not None and key not in STRUCTURAL_KEYS:
|
|
120
|
+
name = node.get('url') if key == 'request' else node.get('name') or node.get('url')
|
|
121
|
+
return "%s '%s'" % (key, shorten(str(name), STEP_NAME_MAX_LENGTH)) if name else key
|
|
122
|
+
return None
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def step_names(project, path):
|
|
126
|
+
"""user_path 'Main' > transaction 'Login' > request '/logon'"""
|
|
127
|
+
labels = (step_label(*node) for node in nodes_along(project, path))
|
|
128
|
+
return ' > '.join(label for label in labels if label)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
def describe(error):
|
|
132
|
+
"""(message, value) to show for an error."""
|
|
133
|
+
if error.validator in ('oneOf', 'anyOf'): # no alternative recognised: do not dump the subtree
|
|
134
|
+
if isinstance(error.instance, dict):
|
|
135
|
+
return 'Unrecognised or invalid content, found the keys: ' + ', '.join(map(str, error.instance)), ''
|
|
136
|
+
return 'Invalid value ' + show_value(error.instance), ''
|
|
137
|
+
return error.message, show_value(error.instance)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
def finding(error, project):
|
|
141
|
+
path = tuple(error.absolute_path)
|
|
142
|
+
message, value = describe(error)
|
|
143
|
+
return Finding(path, message, value, step_names(project, path))
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
# --- grouping and rendering ------------------------------------------------------------------------------
|
|
147
|
+
|
|
148
|
+
def group_key(found):
|
|
149
|
+
"""The same mistake repeated on many steps is one finding: same message, about the same key."""
|
|
150
|
+
keys = [part for part in found.path if not isinstance(part, int)]
|
|
151
|
+
return (keys[-1] if keys else '', found.message)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def group(findings):
|
|
155
|
+
groups = {}
|
|
156
|
+
for found in findings:
|
|
157
|
+
groups.setdefault(group_key(found), []).append(found)
|
|
158
|
+
return list(groups.values())
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
def elide_shared_prefix(path, reference):
|
|
162
|
+
"""Replace the leading elements shared with the reference path by '...'; the last one always stays."""
|
|
163
|
+
parts = path.split('.')
|
|
164
|
+
shared = len(list(takewhile(lambda pair: pair[0] == pair[1], zip(parts[:-1], reference.split('.')))))
|
|
165
|
+
return '...' + '.'.join(parts[shared:]) if shared else path
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
def also_at(paths):
|
|
169
|
+
""""...steps[1].request, ...steps[2].request and 5 more" for the places after the first."""
|
|
170
|
+
others = [elide_shared_prefix(path, paths[0]) for path in paths[1:PATHS_SHOWN]]
|
|
171
|
+
more = len(paths) - PATHS_SHOWN
|
|
172
|
+
return ', '.join(others) + (' and %d more' % more if more > 0 else '')
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
def render_group(findings):
|
|
176
|
+
first = findings[0]
|
|
177
|
+
paths = [format_path(found.path) for found in findings]
|
|
178
|
+
lines = [first.message, '\tat: ' + paths[0]]
|
|
179
|
+
if len(paths) > 1:
|
|
180
|
+
lines.append('\talso at: ' + also_at(paths))
|
|
181
|
+
if first.steps:
|
|
182
|
+
lines.append('\tin: ' + first.steps)
|
|
183
|
+
if first.value:
|
|
184
|
+
lines.append('\tgot: ' + first.value)
|
|
185
|
+
return '\n'.join(lines)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
def summary(groups):
|
|
189
|
+
places = sum(len(g) for g in groups)
|
|
190
|
+
return '%d error(s)' % len(groups) + (' (%d places)' % places if places != len(groups) else '')
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
def format_errors(errors, project):
|
|
194
|
+
"""The report for the jsonschema errors of a project: a count, then one entry per mistake."""
|
|
195
|
+
ordered = sorted(real_errors(errors), key=document_order)
|
|
196
|
+
groups = group([finding(error, project) for error in ordered])
|
|
197
|
+
return '\n'.join([summary(groups)] + [render_group(g) for g in groups])
|
|
@@ -7,7 +7,7 @@ import requests
|
|
|
7
7
|
import yaml
|
|
8
8
|
from yaml.scanner import ScannerError
|
|
9
9
|
|
|
10
|
-
from neoload_cli_lib import cli_exception, bad_as_code_exception
|
|
10
|
+
from neoload_cli_lib import cli_exception, bad_as_code_exception, schema_error_report
|
|
11
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
|
|
@@ -17,7 +17,7 @@ import gitignorefile
|
|
|
17
17
|
from neoload_cli_lib.neoLoad_project import is_not_to_be_included
|
|
18
18
|
|
|
19
19
|
YAML_NOT_CONFIRM_MESSAGE = "YAML does not confirm to NeoLoad DSL schema."
|
|
20
|
-
__models_raw_root = "https://raw.githubusercontent.com/Neotys-Labs/neoload-models/
|
|
20
|
+
__models_raw_root = "https://raw.githubusercontent.com/Neotys-Labs/neoload-models/v3"
|
|
21
21
|
__compatibility_url = __models_raw_root + "/schemas/compatibility.json"
|
|
22
22
|
__default_schema_version = "3.0"
|
|
23
23
|
|
|
@@ -139,7 +139,7 @@ def schema_url_for_version(version):
|
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
def load_supported_schema_versions(ssl_cert=''):
|
|
142
|
-
"""Supported versions are the keys of neoload-models schemas/compatibility.json (
|
|
142
|
+
"""Supported versions are the keys of neoload-models schemas/compatibility.json (v3)."""
|
|
143
143
|
compatibility_json, _etag, _not_modified = get_network_schema_by_spec(__compatibility_url, ssl_cert)
|
|
144
144
|
if compatibility_json is None:
|
|
145
145
|
raise cli_exception.CliException(
|
|
@@ -192,13 +192,12 @@ def validate_project_object(project_object, schema_spec, ssl_cert='', check_sche
|
|
|
192
192
|
v.validate(project_object)
|
|
193
193
|
except jsonschema.SchemaError as err:
|
|
194
194
|
raise cli_exception.CliException('This is not a valid json schema:\n%s' % str(err))
|
|
195
|
-
except jsonschema.ValidationError
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
raise cli_exception.CliException(YAML_NOT_CONFIRM_MESSAGE + '\n' + msgs)
|
|
195
|
+
except jsonschema.ValidationError:
|
|
196
|
+
errors = list(v.iter_errors(project_object))
|
|
197
|
+
logging.debug("Raw validation errors:\n%s" % "\n".join(map(str, errors)))
|
|
198
|
+
report = schema_error_report.format_errors(errors, project_object)
|
|
199
|
+
raise cli_exception.CliException(
|
|
200
|
+
YAML_NOT_CONFIRM_MESSAGE + '\n' + ("in %s\n" % label if label else "") + report + "\n")
|
|
202
201
|
|
|
203
202
|
|
|
204
203
|
def validate_yaml(yaml_file_path, schema_spec, ssl_cert='', check_schema=True):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.3.19.dev6"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: neoload
|
|
3
|
-
Version: 1.3.19.
|
|
3
|
+
Version: 1.3.19.dev6
|
|
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
|
|
@@ -231,7 +231,7 @@ neoload checkvu -u myUser default.yaml
|
|
|
231
231
|
```
|
|
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
|
-
- `-e, --engine-jar, --jar <path-or-url>` runs a local
|
|
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
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.
|
|
@@ -80,6 +80,7 @@ neoload/neoload_cli_lib/paths.py
|
|
|
80
80
|
neoload/neoload_cli_lib/resources.py
|
|
81
81
|
neoload/neoload_cli_lib/rest_crud.py
|
|
82
82
|
neoload/neoload_cli_lib/running_tools.py
|
|
83
|
+
neoload/neoload_cli_lib/schema_error_report.py
|
|
83
84
|
neoload/neoload_cli_lib/schema_validation.py
|
|
84
85
|
neoload/neoload_cli_lib/tools.py
|
|
85
86
|
neoload/neoload_cli_lib/user_data.py
|
|
@@ -108,7 +109,6 @@ neoload/resources/templates/__init__.py
|
|
|
108
109
|
neoload/resources/templates/default.yaml
|
|
109
110
|
notes/PSB_20200421_TODO.txt
|
|
110
111
|
notes/acceptance.txt
|
|
111
|
-
resources/as-code.latest.schema.json
|
|
112
112
|
tests/__init__.py
|
|
113
113
|
tests/conftest.py
|
|
114
114
|
tests/test_readme.py
|
|
@@ -174,6 +174,7 @@ tests/integration/scripts/zones.ls.test.sh
|
|
|
174
174
|
tests/neoload_cli_lib/test_SchemaValidation.py
|
|
175
175
|
tests/neoload_cli_lib/test_displayer.py
|
|
176
176
|
tests/neoload_cli_lib/test_docker.py
|
|
177
|
+
tests/neoload_cli_lib/test_error_explanation.py
|
|
177
178
|
tests/neoload_cli_lib/test_etag_caching.py
|
|
178
179
|
tests/neoload_cli_lib/test_filtering.py
|
|
179
180
|
tests/neoload_cli_lib/test_include_resolution.py
|
|
@@ -200,6 +201,7 @@ tests/neoload_projects/example_1/paths/geosearch_get.yaml
|
|
|
200
201
|
tests/neoload_projects/example_1/slas/prod.yaml
|
|
201
202
|
tests/neoload_projects/example_1/slas/uat.yaml
|
|
202
203
|
tests/resources/__init__.py
|
|
204
|
+
tests/resources/as-code.local.schema.json
|
|
203
205
|
tests/resources/expected_neoload_junit_slas.xml
|
|
204
206
|
tests/resources/expected_summary_text_no_sla.txt
|
|
205
207
|
tests/resources/expected_summary_text_with_sla.txt
|