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/01/10 03:38:39 UTC

[27/50] incubator-trafficcontrol git commit: Added readme file for running the tests

Added readme file for running the tests


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

Branch: refs/heads/master
Commit: 8f20dad7d427f2670d75c261b763ac6929a074e5
Parents: bd030e0
Author: David Neuman <da...@gmail.com>
Authored: Tue Dec 6 16:24:03 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Sun Jan 8 21:05:00 2017 -0700

----------------------------------------------------------------------
 traffic_ops/client/tests/integration/Readme.md | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/8f20dad7/traffic_ops/client/tests/integration/Readme.md
----------------------------------------------------------------------
diff --git a/traffic_ops/client/tests/integration/Readme.md b/traffic_ops/client/tests/integration/Readme.md
new file mode 100644
index 0000000..9889b47
--- /dev/null
+++ b/traffic_ops/client/tests/integration/Readme.md
@@ -0,0 +1,14 @@
+# Traffic Ops Client Integration Tests
+
+The Traffic Ops Client Integration tests are used to validate the clients responses against those from the Traffic Ops API.  In order to run the tests you will need a Traffic Ops instance with at least one of each of the following:  CDN, Delivery Service, Type, Cachegroup, User and Server.
+
+## Running the Integration 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.  The flags are:
+
+* toURL - The URL to Traffic Ops.  Default is "http://localhost:3000".
+* toUser - The Traffic Ops user to use.  Default is "admin".
+* toPass - The password of the user provided.  Deafault is "password".
+
+Example command to run the tests: `go test -v -toUrl=https://to.kabletown.net -toUser=myUser -toPass=myPass`
+
+*It can take serveral minutes for the integration tests to complete, so using the `-v` flag is recommended to see progress.*