aboutsummaryrefslogtreecommitdiffstats
path: root/docs/report
diff options
context:
space:
mode:
authorMaciek Konstantynowicz <mkonstan@cisco.com>2017-07-20 18:46:17 +0100
committerPeter Mikus <pmikus@cisco.com>2017-07-21 05:14:28 +0000
commitfb6e84c36e47c9f9998efa8139d50d96feb871f1 (patch)
treed6feb781e204a553a37d42ccfbb54311516bdbe7 /docs/report
parentdb98afadb9664144386c1642d217a21e5f223b00 (diff)
rls1707 report: edits in introduction/csit_design.rst
Change-Id: I9f89ebbfc6b999dc4bb0cf0d938ecc03ef42c2fb Signed-off-by: Maciek Konstantynowicz <mkonstan@cisco.com>
Diffstat (limited to 'docs/report')
-rw-r--r--docs/report/introduction/csit_design.rst157
1 files changed, 80 insertions, 77 deletions
diff --git a/docs/report/introduction/csit_design.rst b/docs/report/introduction/csit_design.rst
index 8c6c87f319..374c9cdace 100644
--- a/docs/report/introduction/csit_design.rst
+++ b/docs/report/introduction/csit_design.rst
@@ -1,21 +1,22 @@
CSIT Design
===========
-FD.io CSIT system design needs to meet continuously expanding requirements of
-FD.io projects including VPP, related sub-systems (e.g. plugin applications,
-DPDK drivers) and FD.io applications (e.g. DPDK applications), as well as
-growing number of compute platforms running those applications. With CSIT
-project scope and charter including both FD.io continuous testing AND
-performance trending/comparisons, those evolving requirements further amplify
-the need for CSIT framework modularity, flexibility and usability.
+FD.io CSIT system design needs to meet continuously expanding
+requirements of FD.io projects including VPP, related sub-systems (e.g.
+plugin applications, DPDK drivers) and FD.io applications (e.g. DPDK
+applications), as well as growing number of compute platforms running
+those applications. With CSIT project scope and charter including both
+FD.io continuous testing AND performance trending/comparisons, those
+evolving requirements further amplify the need for CSIT framework
+modularity, flexibility and usability.
Design Hierarchy
----------------
-CSIT follows a hierarchical system design with SUTs and DUTs at the bottom
-level, and presentation level at the top level, with a number of functional
-layers in-between. The current CSIT design including CSIT framework is depicted
-in the diagram below.
+CSIT follows a hierarchical system design with SUTs and DUTs at the
+bottom level of the hierarchy, presentation level at the top level and a
+number of functional layers in-between. The current CSIT system design
+including CSIT framework is depicted in the figure below.
.. figure:: csit_design.png
:alt: FD.io CSIT system design
@@ -25,107 +26,109 @@ in the diagram below.
A brief bottom-up description is provided here:
-#. SUTs, DUTs, TGs:
+#. SUTs, DUTs, TGs
- - SUTs - Systems Under Test
- - DUTs - Devices Under Test
- - TGs - Traffic Generators
+ - SUTs - Systems Under Test;
+ - DUTs - Devices Under Test;
+ - TGs - Traffic Generators;
-#. Level-1 libraries - Robot and Python:
+#. Level-1 libraries - Robot and Python
- Lowest level CSIT libraries abstracting underlying test environment, SUT,
- DUT and TG specifics
- - Used commonly across multiple L2 KWs
+ DUT and TG specifics;
+ - Used commonly across multiple L2 KWs;
- Performance and functional tests:
- L1 KWs (KeyWords) are implemented as RF libraries and Python
- libraries
+ libraries;
- Performance TG L1 KWs:
- - All L1 KWs are implemented as Python libraries
+ - All L1 KWs are implemented as Python libraries:
- - Support for TRex only today
- - Need to add IXIA
+ - Support for TRex only today;
+ - CSIT IXIA drivers in progress;
- Performance data plane traffic profiles:
- TG-specific stream profiles provide full control of:
- Packet definition – layers, MACs, IPs, ports, combinations thereof
- e.g. IPs and UDP ports
+ e.g. IPs and UDP ports;
- Stream definitions - different streams can run together, delayed,
- one after each other
+ one after each other;
- Stream profiles are independent of CSIT framework and can be used
in any T-rex setup, can be sent anywhere to repeat tests with
- exactly the same setup
+ exactly the same setup;
- Easily extensible – one can create a new stream profile that meets
- tests requirements
+ tests requirements;
- Same stream profile can be used for different tests with the same
- traffic needs
+ traffic needs;
- - Sunctional data plane traffic scripts:
+ - Functional data plane traffic scripts:
- - Scapy specific traffic scripts
+ - Scapy specific traffic scripts;
#. Level-2 libraries - Robot resource files:
- Higher level CSIT libraries abstracting required functions for executing
- tests
+ tests;
- L2 KWs are classified into the following functional categories:
- - Configuration, test, verification, state report
- - Suite setup, suite teardown
- - Test setup, test teardown
+ - Configuration, test, verification, state report;
+ - Suite setup, suite teardown;
+ - Test setup, test teardown;
#. Tests - Robot:
- Test suites with test cases;
- Functional tests using VIRL environment:
- - VPP
- - HoneyComb
+ - VPP;
+ - HoneyComb;
+ - NSH_SFC;
- Performance tests using physical testbed environment:
- - VPP
- - Testpmd
+ - VPP;
+ - DPDK-Testpmd;
+ - DPDK-L3Fwd;
- Tools:
- - Documentation generator
- - Report generator
- - Testbed environment setup ansible playbooks
- - Operational debugging scripts
+ - Documentation generator;
+ - Report generator;
+ - Testbed environment setup ansible playbooks;
+ - Operational debugging scripts;
Test Lifecycle Abstraction
--------------------------
-A well coded test must follow a disciplined abstraction of the test lifecycles
-that includes setup, configuration, test and verification. In addition to
-improve test execution efficiency, the commmon aspects of test setup and
-configuration shared across multiple test cases should be done only once.
-Translating these high-level guidelines into the Robot Framework one arrives to
-definition of a well coded RF tests for FD.io CSIT.
-Anatomy of Good Tests for CSIT:
+A well coded test must follow a disciplined abstraction of the test
+lifecycles that includes setup, configuration, test and verification. In
+addition to improve test execution efficiency, the commmon aspects of
+test setup and configuration shared across multiple test cases should be
+done only once. Translating these high-level guidelines into the Robot
+Framework one arrives to definition of a well coded RF tests for FD.io
+CSIT. Anatomy of Good Tests for CSIT:
#. Suite Setup - Suite startup Configuration common to all Test Cases in suite:
- uses Configuration KWs, Verification KWs, StateReport KWs
+ uses Configuration KWs, Verification KWs, StateReport KWs;
#. Test Setup - Test startup Configuration common to multiple Test Cases: uses
- Configuration KWs, StateReport KWs
+ Configuration KWs, StateReport KWs;
#. Test Case - uses L2 KWs with RF Gherkin style:
- prefixed with {Given} - Verification of Test setup, reading state: uses
- Configuration KWs, Verification KWs, StateReport KWs
- - prefixed with {When} - Test execution: Configuration KWs, Test KWs
+ Configuration KWs, Verification KWs, StateReport KWs;
+ - prefixed with {When} - Test execution: Configuration KWs, Test KWs;
- prefixed with {Then} - Verification of Test execution, reading state: uses
- Verification KWs, StateReport KWs
+ Verification KWs, StateReport KWs;
#. Test Teardown - post Test teardown with Configuration cleanup and
Verification common to multiple Test Cases - uses: Configuration KWs,
- Verification KWs, StateReport KWs
+ Verification KWs, StateReport KWs;
#. Suite Teardown - Suite post-test Configuration cleanup: uses Configuration
- KWs, Verification KWs, StateReport KWs
+ KWs, Verification KWs, StateReport KWs;
RF Keywords Functional Classification
-------------------------------------
@@ -134,29 +137,28 @@ CSIT RF KWs are classified into the functional categories matching the test
lifecycle events described earlier. All CSIT RF L2 and L1 KWs have been grouped
into the following functional categories:
-#. Configuration
-#. Test
-#. Verification
-#. StateReport
-#. SuiteSetup
-#. TestSetup
-#. SuiteTeardown
-#. TestTeardown
+#. Configuration;
+#. Test;
+#. Verification;
+#. StateReport;
+#. SuiteSetup;
+#. TestSetup;
+#. SuiteTeardown;
+#. TestTeardown;
RF Keywords Naming Guidelines
-----------------------------
-Readability counts: "..code is read much more often than it is written." Hence
-following a good and consistent grammar practice is important when writing RF
-KeyWords and Tests.
-All CSIT test cases are coded using Gherkin style and include only L2 KWs
-references. L2 KWs are coded using simple style and include L2 KWs, L1 KWs, and
-L1 python references. To improve readability, the proposal is to use the same
-grammar for both RF KW styles, and to formalize the grammar of English sentences
-used for naming the RF KWs.
-RF KWs names are short sentences expressing functional description of the
-command. They must follow English sentence grammar in one of the following
-forms:
+Readability counts: "..code is read much more often than it is written."
+Hence following a good and consistent grammar practice is important when
+writing RF KeyWords and Tests. All CSIT test cases are coded using
+Gherkin style and include only L2 KWs references. L2 KWs are coded using
+simple style and include L2 KWs, L1 KWs, and L1 python references. To
+improve readability, the proposal is to use the same grammar for both RF
+KW styles, and to formalize the grammar of English sentences used for
+naming the RF KWs. RF KWs names are short sentences expressing
+functional description of the command. They must follow English sentence
+grammar in one of the following forms:
#. **Imperative** - verb-object(s): *"Do something"*, verb in base form.
#. **Declarative** - subject–verb–object(s): *"Subject does something"*, verb in
@@ -167,9 +169,10 @@ forms:
something"*, *"Object should not exist"*, verb in base form.
Passive form MUST NOT be used. However a usage of past participle as an
-adjective is okay. See usage examples.
-Following sections list applicability of the above grammar forms to different
-RF KW categories. Usage examples are provided, both good and bad.
+adjective is okay. See usage examples provided in the Coding guidelines
+section below. Following sections list applicability of the above
+grammar forms to different RF KW categories. Usage examples are
+provided, both good and bad.
Coding guidelines
-----------------