This is an automated email from the ASF dual-hosted git repository.

zrhoffman 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 35d22e6add Changed Test Parameters password to not be hard coded, and 
instead re… (#7171)
35d22e6add is described below

commit 35d22e6addd53765086fc510253ea80a67485dd9
Author: Kurtis Michie <[email protected]>
AuthorDate: Wed Nov 2 15:54:30 2022 -0600

    Changed Test Parameters password to not be hard coded, and instead re… 
(#7171)
    
    * Changed Test Parameters password to not be hard coded, and instead 
reference user's
    
    * Changed Test Parameters password to not be hard coded, and instead 
reference user's
---
 traffic_ops/testing/api/v4/parameters_test.go | 2 +-
 traffic_ops/testing/api/v5/parameters_test.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/traffic_ops/testing/api/v4/parameters_test.go 
b/traffic_ops/testing/api/v4/parameters_test.go
index a80e1d7792..fbbdfbc1c0 100644
--- a/traffic_ops/testing/api/v4/parameters_test.go
+++ b/traffic_ops/testing/api/v4/parameters_test.go
@@ -34,7 +34,7 @@ import (
 func TestParameters(t *testing.T) {
        WithObjs(t, []TCObj{Parameters}, func() {
 
-               opsUserSession := utils.CreateV4Session(t, 
Config.TrafficOps.URL, "operations", "twelve", 
Config.Default.Session.TimeoutInSecs)
+               opsUserSession := utils.CreateV4Session(t, 
Config.TrafficOps.URL, "operations", Config.TrafficOps.UserPassword, 
Config.Default.Session.TimeoutInSecs)
 
                currentTime := time.Now().UTC().Add(-15 * time.Second)
                currentTimeRFC := currentTime.Format(time.RFC1123)
diff --git a/traffic_ops/testing/api/v5/parameters_test.go 
b/traffic_ops/testing/api/v5/parameters_test.go
index 621663074e..a7879e490d 100644
--- a/traffic_ops/testing/api/v5/parameters_test.go
+++ b/traffic_ops/testing/api/v5/parameters_test.go
@@ -34,7 +34,7 @@ import (
 func TestParameters(t *testing.T) {
        WithObjs(t, []TCObj{Parameters}, func() {
 
-               opsUserSession := utils.CreateV5Session(t, 
Config.TrafficOps.URL, "operations", "twelve", 
Config.Default.Session.TimeoutInSecs)
+               opsUserSession := utils.CreateV5Session(t, 
Config.TrafficOps.URL, "operations", Config.TrafficOps.UserPassword, 
Config.Default.Session.TimeoutInSecs)
 
                currentTime := time.Now().UTC().Add(-15 * time.Second)
                currentTimeRFC := currentTime.Format(time.RFC1123)

Reply via email to