From 457196231fb0d1df4842ac0e6bf8c10260dc9d0b Mon Sep 17 00:00:00 2001 From: "serena.spinoso" Date: Thu, 16 Mar 2017 16:18:24 +0100 Subject: Add verigraph documentation Add user guide and test usage documentation. Add examples of service graphs to use verigraph. Change-Id: I3e454e03fa2de99bad0761e3e4a0eab98f2e0b23 Signed-off-by: serena.spinoso (cherry picked from commit 7d6f6962fb9c5ff6d815241d5d15c86c4c6a501b) --- docs/testing/testusage.rst | 56 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) (limited to 'docs/testing/testusage.rst') diff --git a/docs/testing/testusage.rst b/docs/testing/testusage.rst index 405d6bd..36b9c00 100644 --- a/docs/testing/testusage.rst +++ b/docs/testing/testusage.rst @@ -3,7 +3,7 @@ Parser tosca2heat test usage -=========================== +============================ 1. run tox in tosca-parser sub project .. code-block:: bash @@ -52,3 +52,57 @@ or # run tox tox +Parser VeriGraph test usage +=========================== + +VeriGraph is accessible via both a RESTfull API and a gRPC interface. + +**RESTful API** + +1. Run the Python tester + +.. code-block:: bash + + cd parser/verigraph/tester + python test.py + +**gRPC API** + +1. Compile the code + +.. code-block:: bash + + cd parser/verigraph + ant -f buildVeriGraph_gRPC.xml build + +2. Run both client and server + +.. code-block:: bash + + cd parser/verigraph + ant -f buildVeriGraph_gRPC.xml run + +3. Run only the testing client + +.. code-block:: bash + + cd parser/verigraph + ant -f buildVeriGraph_gRPC.xml run-client + +4. Run only the gRPC server + +.. code-block:: bash + + cd parser/verigraph + ant -f buildVeriGraph_gRPC.xml run-server + +5. Run all tests and print out the partial results and global result + +.. code-block:: bash + + cd parser/verigraph + # This target has the needed dependencies to compile the code + # and run both client and server + ant -f buildVeriGraph_gRPC.xml run-test + +Note that the execution of these tests may take up to 1-2 minutes when successful. -- cgit 1.2.3-korg