gokulakrishnansvm commented on code in PR #7458:
URL: https://github.com/apache/trafficcontrol/pull/7458#discussion_r1176082326
##########
traffic_ops/testing/api_contract/v4/conftest.py:
##########
@@ -436,10 +436,10 @@ def cachegroup_post_data(to_session: TOSession,
request_template_data: list[JSON
if not isinstance(name, str):
raise TypeError(f"name must be str, not '{type(name)}'")
cachegroup["name"] = name[:4] + randstr
- short_name = cachegroup["shortName"]
+ short_name = cachegroup["shortname"]
if not isinstance(short_name, str):
- raise TypeError(f"shortName must be str, not
'{type(short_name)}")
- cachegroup["shortName"] = short_name[:5] + randstr
+ raise TypeError(f"shortname must be str, not
'{type(short_name)}")
+ cachegroup["shortname"] = short_name[:5] + randstr
Review Comment:
Same as above comment.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]