Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding an "attributes" option for report portal launches #44

Merged
merged 2 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/grasshopper/lib/configuration/gh_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,14 @@ class ConfigurationConstants:
},
"default": "Grasshopper Performance Test Run | Launch name unknown",
},
"rp_launch_attributes": {
"opts": ["--rp_launch_attributes"],
"attrs": {
"action": "store",
"help": "Launch attributes to use when posting to report portal. NYI",
},
"default": '{"test_type":"load"}',
},
}

# Scenario attrs are typically set per scenario and usually are loaded from the
Expand Down
1 change: 1 addition & 0 deletions src/grasshopper/lib/fixtures/grasshopper_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class GrasshopperConstants:
"rp_launch_name",
"rp_project",
"rp_endpoint",
"rp_launch_attributes",
]
RUNTIME_DEFAULT = 120.0
USERS_DEFAULT = 1
Expand Down
1 change: 1 addition & 0 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def current_global_defaults():
"report_portal": False,
"rp_launch_name": "Grasshopper Performance Test Run | Launch name unknown",
"rp_launch": "Grasshopper Performance Test Run | Launch name unknown",
"rp_launch_attributes": '{"test_type":"load"}',
}
return defaults

Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_grasshopper_configuration_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def expected_global_defaults():
"report_portal": False,
"rp_launch_name": "Grasshopper Performance Test Run | Launch name unknown",
"rp_launch": "Grasshopper Performance Test Run | Launch name unknown",
"rp_launch_attributes": '{"test_type":"load"}',
}
return defaults

Expand Down
Loading