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


##########
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:
   On the other hand, since nothing actually depends on CDN notifications, and 
they're never used in a `WithObjs` anywhere, it may not be best to have them in 
the testing fixture data at all, and the tests could just make a couple with 
some randomly generated strings and then verify that the notifications are in 
fact created with that text. Random strings in tests do usually make me 
uncomfortable, but I can't really justify that feeling with any argument.



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