ocket8888 commented on code in PR #6762:
URL: https://github.com/apache/trafficcontrol/pull/6762#discussion_r870644307


##########
traffic_ops/testing/api/v4/cdnnotifications_test.go:
##########
@@ -53,26 +80,21 @@ func CreateTestCDNNotifications(t *testing.T) {
        var opts client.RequestOptions
        for _, cdn := range testData.CDNs {
                resp, _, err := 
TOSession.CreateCDNNotification(tc.CDNNotificationRequest{CDN: cdn.Name, 
Notification: "test notification: " + cdn.Name}, opts)

Review Comment:
   This creates the new test notification using `cdn.Name`, but the above check 
is looking for a hard-coded CDN name. The test should either consistently use 
the same testing data CDN name, or just use a hard-coded notification text, 
preferably stored as a constant value so that it can be changed in one place if 
need be.



-- 
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]

Reply via email to