This is an automated email from the ASF dual-hosted git repository.
jhg03a pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new fca9974 Delete broken TO API test (#3864)
fca9974 is described below
commit fca99740721855616ec8bd3476ffba2e9182e30e
Author: Rawlin Peters <[email protected]>
AuthorDate: Mon Aug 12 15:50:19 2019 -0600
Delete broken TO API test (#3864)
This test currently does not even compile. Even if it did compile, the
TO API test framework does not currently support testing endpoints that
use the to_extension table. This is because the test deletes all rows
from the to_extension table when it starts up, but the to_extension
table is only populated by seeds.sql (which should be done before the
test is run).
---
traffic_ops/testing/api/v14/servercheck_test.go | 46 -------------------------
1 file changed, 46 deletions(-)
diff --git a/traffic_ops/testing/api/v14/servercheck_test.go
b/traffic_ops/testing/api/v14/servercheck_test.go
deleted file mode 100644
index 1e77f61..0000000
--- a/traffic_ops/testing/api/v14/servercheck_test.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package v14
-
-/*
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
-
-import (
- "testing"
-
- "github.com/apache/trafficcontrol/lib/go-log"
- "github.com/apache/trafficcontrol/lib/go-tc"
- toclient "github.com/apache/trafficcontrol/traffic_ops/client"
-)
-
-func TestServerCheck(t *testing.T) {
- WithObjs(t, []TCObj{Servers}, func() {
- UpdateServerCheck(t)
- })
-}
-
-const SessionUserName = "extension" // TODO make dynamic?
-
-func UpdateServerCheck(t *testing.T) {
- var statusData tc.ServercheckNullable
- for _, server := range testData.Servers {
-
- statusData.ID = server.ID
- statusData.Name = "DSCP"
- statusData.Value = 1
- resp, _, err := TOSession.UpdateCheckStatus(statusData)
- if err != nil {
- t.Errorf("could not set servercheck status user: %v\n",
err)
- }
- log.Debugln("Response: ", resp.Alerts)
- }
-}