You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2017/04/19 21:45:48 UTC

[5/8] incubator-trafficcontrol git commit: Use new LoginWithAgent method

Use new LoginWithAgent method


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/26a53221
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/26a53221
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/26a53221

Branch: refs/heads/master
Commit: 26a53221cdc72a5db94f98c1b2704c8d22854f96
Parents: be6dfe3
Author: David Neuman <da...@gmail.com>
Authored: Mon Apr 17 10:31:40 2017 -0600
Committer: Jeremy Mitchell <mi...@gmail.com>
Committed: Wed Apr 19 15:45:00 2017 -0600

----------------------------------------------------------------------
 traffic_ops/client/tests/integration/integration_helper.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/26a53221/traffic_ops/client/tests/integration/integration_helper.go
----------------------------------------------------------------------
diff --git a/traffic_ops/client/tests/integration/integration_helper.go b/traffic_ops/client/tests/integration/integration_helper.go
index b17306b..bc44b89 100644
--- a/traffic_ops/client/tests/integration/integration_helper.go
+++ b/traffic_ops/client/tests/integration/integration_helper.go
@@ -22,6 +22,7 @@ import (
 	"fmt"
 	"net/http"
 	"os"
+	"time"
 
 	traffic_ops "github.com/apache/incubator-trafficcontrol/traffic_ops/client"
 )
@@ -36,7 +37,8 @@ func init() {
 	toPass := flag.String("toPass", "password", "Traffic Ops password")
 	flag.Parse()
 	var loginErr error
-	to, loginErr = traffic_ops.Login(*toURL, *toUser, *toPass, true)
+	toReqTimeout := time.Second * time.Duration(30)
+	to, loginErr = traffic_ops.LoginWithAgent(*toURL, *toUser, *toPass, true, "traffic-ops-client-integration-tests", true, toReqTimeout)
 	if loginErr != nil {
 		fmt.Printf("\nError logging in to %v: %v\nMake sure toURL, toUser, and toPass flags are included and correct.\nExample:  go test -toUser=admin -toPass=pass -toURL=http://localhost:3000\n\n", *toURL, loginErr)
 		os.Exit(1)