Skip to content

Commit

Permalink
rp_token -> rp_uuid and rp_launch_name -> rp_launch
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfiola committed Jan 8, 2024
1 parent bdba07d commit 2350d9b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
assertpy==1.0
black==22.1.0
black==22.3.0
bump2version==1.0.1
click==8.0.4
click==8.1.3
coverage==6.3.2
flake8==6.0.0
flake8-import-order==0.18.2
Expand Down
18 changes: 18 additions & 0 deletions src/grasshopper/lib/configuration/gh_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ class ConfigurationConstants:
},
"rp_token": {
"opts": ["--rp_token"],
"attrs": {
"action": "store",
"help": "LEGACY FOR RP_UUID: API token for accessing report portal "
"server. NYI. "
"programmatically.",
},
},
"rp_uuid": {
"opts": ["--rp_uuid"],
"attrs": {
"action": "store",
"help": "API token for accessing report portal server. NYI. "
Expand Down Expand Up @@ -262,6 +271,15 @@ class ConfigurationConstants:
"typecast": typecast_bool,
"default": False,
},
"rp_launch": {
"opts": ["--rp_launch"],
"attrs": {
"action": "store",
"help": "LEGACY FOR RP_LAUNCH: Base launch name to use when posting to "
"report portal. NYI",
},
"default": "Grasshopper Performance Test Run | Launch name unknown",
},
"rp_launch_name": {
"opts": ["--rp_launch_name"],
"attrs": {
Expand Down
2 changes: 2 additions & 0 deletions src/grasshopper/lib/fixtures/grasshopper_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class GrasshopperConstants:
"slack_report_failures_only",
"cleanup_s3",
"rp_token",
"rp_uuid",
"rp_launch",
"rp_launch_name",
"rp_project",
"rp_endpoint",
Expand Down
1 change: 1 addition & 0 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def current_global_defaults():
"influx": False,
"report_portal": False,
"rp_launch_name": "Grasshopper Performance Test Run | Launch name unknown",
"rp_launch": "Grasshopper Performance Test Run | Launch name unknown",
}
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 @@ -27,6 +27,7 @@ def expected_global_defaults():
"influx": False,
"report_portal": False,
"rp_launch_name": "Grasshopper Performance Test Run | Launch name unknown",
"rp_launch": "Grasshopper Performance Test Run | Launch name unknown",
}
return defaults

Expand Down

0 comments on commit 2350d9b

Please sign in to comment.