From: Ruoyu Date: Fri, 4 Dec 2020 11:20:31 +0000 (-0500) Subject: Add README for e2e test X-Git-Tag: v1.0^2 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=73b57d4e199fab9bf76de150f086147de4947bec;p=icn%2Fsdwan.git Add README for e2e test Add README to e2e test folder Signed-off-by: Ruoyu Change-Id: I94482aaf3fc8051861edac6376fadf1e9bd1c865 Signed-off-by: Ruoyu --- diff --git a/platform/test/README.md b/platform/test/README.md index fcf876a..cec9ee6 100644 --- a/platform/test/README.md +++ b/platform/test/README.md @@ -1 +1,38 @@ # sdewan solution e2e test + +This folder contains the e2e test scripts based on RESTful API exported by SDEWAN CNF, as well as scripts based on kubernetes customresourcedefiniton(CRD) exported by SDEWAN CRD Controller. + +* Test scenario +The test scripts will setup 3 all-in-one node k8s clusters within virtual machines which act as edge-a, edge-b and the hub. The three clusters are linked through provider network based on OVN. The two edges only obtain a private IP address, hence they cannot be reached by the hub. However, the hub obtains a public IP address which is accessible by others. IPSEC tunnel are then setup up between edge and hub to enable security connection. + +The test script then do the following steps for the edges: +- Setup SD-EWAN CNF as well as CRD controller(this only appears in the CRD case) +- Setup test application(Httpbin) +- Apply IPSEC CRs +- Apply Firewall CRs + +For the hub, it will do the following ones: +- Setup SD-EWAN CNF as well as CRD controller(this only appears in the CRD case) +- Apply IPSEC CRs + +After all configurations are applied, it will launch a connection test between the +two edges and see if the connection is working fine. + + +* Test scripts based on RESTful API + +The e2e-test folder contains the test scripts for our end-to-end scenario based on RESTful API. + +cd e2e-test +./test.sh + +This will automatically bring up our test scenario, as well as connection check. + +* Test scripts based on CRD + +The e2e-test-crd folder contains the test scripts for our end-to-end scenario based on CRD. + +cd e2e-test-crd +./test.sh + +This will automatically bring up our test scenario, as well as connection check.