dewrich closed pull request #2056: updates golang api tests readme and conf file
URL: https://github.com/apache/incubator-trafficcontrol/pull/2056
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/traffic_ops/testing/api/README.md 
b/traffic_ops/testing/api/README.md
index 92c83c75e..77111004f 100644
--- a/traffic_ops/testing/api/README.md
+++ b/traffic_ops/testing/api/README.md
@@ -28,7 +28,9 @@ In order to run the tests you will need the following:
 2. An instance of Postgres running with a `to_test` database that has empty 
tables.
 
     To get your to_test database setup do the following:
+    
     `$ cd incubator-trafficcontrol/traffic_ops/app`
+    
     `$ db/admin.pl --env=test reset` 
 
     NOTE on passwords:
@@ -43,10 +45,20 @@ In order to run the tests you will need the following:
 3. A running Traffic Ops instance running with the `secure` (https) and is 
pointing to the `to_test` 
    database by running in `MOJO_MODE=test` which will point to your `to_test` 
database.
     To get your to_test database setup do the following:
-    `$ export MOJO_MODE=test`
-    `$ cd incubator-trafficcontrol/traffic_ops/app`
+    
+       `$ export MOJO_MODE=test`  
+       
+       `$ cd incubator-trafficcontrol/traffic_ops/app`
+       
     `$ bin/start.pl --secure`
 
+4. A running Traffic Ops Golang proxy pointing to the to_test database.
+       `$ cd incubator-trafficcontrol/traffic_ops/traffic_ops_golang`
+       `$ cp ../app/conf/cdn.conf $HOME/cdn.conf`
+       change `traffic_ops_golang->port` to 8443
+
+    `$ go build && ./traffic_ops_golang -cfg $HOME/cdn.conf -dbcfg 
../app/conf/test/database.conf`
+
 ## Running the API Tests
 The integration tests are run using `go test`, however, there are some flags 
that need to be provided in order for the tests to work.  
 
diff --git a/traffic_ops/testing/api/conf/traffic-ops-test.conf 
b/traffic_ops/testing/api/conf/traffic-ops-test.conf
index 6cf5290e5..0ae53b4b1 100644
--- a/traffic_ops/testing/api/conf/traffic-ops-test.conf
+++ b/traffic_ops/testing/api/conf/traffic-ops-test.conf
@@ -1,14 +1,14 @@
 {
     "default": {
-        "session": {
-            "timeoutInSecs": 60
-        },
         "logLocations": {
             "debug": "stdout",
             "error": "stdout",
             "event": "stdout",
             "info": "stdout",
             "warning": "stdout"
+        },
+        "session": {
+            "timeoutInSecs": 60
         }
     },
     "trafficOps": {
@@ -32,4 +32,4 @@
         "type": "Pg",
         "user": "traffic_ops"
     }
-}
+}
\ No newline at end of file


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to