github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/antiddos/v2/alarmreminding/testing/requests_test.go (about) 1 package testing 2 3 import ( 4 "testing" 5 6 "github.com/huaweicloud/golangsdk/openstack/antiddos/v2/alarmreminding" 7 th "github.com/huaweicloud/golangsdk/testhelper" 8 "github.com/huaweicloud/golangsdk/testhelper/client" 9 ) 10 11 func TestQueryTraffic(t *testing.T) { 12 th.SetupHTTP() 13 defer th.TeardownHTTP() 14 HandleWarnAlertSuccessfully(t) 15 16 actual, err := alarmreminding.WarnAlert(client.ServiceClient()).Extract() 17 th.AssertNoErr(t, err) 18 th.CheckDeepEquals(t, &WarnAlertResponse, actual) 19 }