Skip to content

Commit

Permalink
Adding an "attributes" option for report portal launches (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
sistratton authored Jul 11, 2024
1 parent 1e7c417 commit c84363d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
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

0 comments on commit c84363d

Please sign in to comment.