From 70b376e26153deaec3820336b1a964c2b320dc5f Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 13 Sep 2019 22:20:20 -0500 Subject: req: 3b: look, actually verification requirements --- devel/requirements/3b_runner.xml | 75 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 73 insertions(+), 2 deletions(-) diff --git a/devel/requirements/3b_runner.xml b/devel/requirements/3b_runner.xml index c98002a..afd9198 100644 --- a/devel/requirements/3b_runner.xml +++ b/devel/requirements/3b_runner.xml @@ -74,9 +74,77 @@
Functional Requirements + + Runner.Verify.Exception + If the HorizonScript fails any verification step performed by the system, the system shall report the error. + + + Runner.Verify.Exception.Install + If the system is running in an installation environment, the system shall report verification step failure to the listening agent. + + + Runner.Verify.Exception.Continue + The system shall support a mode where the system will continue verification after encountering a verification failure, to display all verification failures for a given HorizonScript. + Runner.Verify.Required - The system shall verify the presence and validity of each required keyword in the HorizonScript. + The system shall verify the presence of each required keyword in the HorizonScript: mount, network, hostname, pkginstall, and rootpw. + + + Runner.Verify.network + The system shall verify that a single network entry is present in the HorizonScript, and that the value is either true or false. + + + Runner.Verify.network.netaddress + If the value in the HorizonScript for the network key is true, the system shall verify that at least one netaddress key is present. + + + Runner.Verify.network.netaddress.NoNetwork + If the value in the HorizonScript for the network key is false, the system shall verify that no netaddress key is present. + + + Runner.Verify.network.netaddress.Validity + The system shall verify that each netaddress key has a valid form of at least two values in a space-separated tuple. + + + Runner.Verify.network.netaddress.Validity.Type + The system shall verify that the second value in each netaddress tuple is either dhcp or static. + + + Runner.Verify.network.netaddress.Validity.DHCP + The system shall verify that each netaddress key is a two value tuple if the second value is dhcp. + + + Runner.Verify.network.netaddress.Validity.Static + The system shall verify that each netaddress key is either a four value tuple or a five value tuple if the second value is static. + + + Runner.Verify.network.netaddress.Interface + If the system is running in an installation environment, the system shall ensure that the interface specified as the first value in each netaddress tuple is present on the system. Failure of this requirement is a "soft" error. + + + Runner.Verify.network.netaddress.Address + If the second value of the netaddress key is static, the system shall ensure that the third value in the tuple is a valid IPv4 or IPv6 address. + + + Runner.Verify.network.netaddress.Mask + If the second value of the netaddress key is static, the system shall ensure that the fourth value in the tuple is a valid prefix, in the form of a whole number between 1 and 32 inclusive if the third value is an IPv4 address, a whole number between 1 and 64 inclusive if the third value is an IPv6 address, or a network mask in the form of four octets separated by the period (.) symbol if the third value is an IPv4 address. + + + Runner.Verify.network.netaddress.Gateway + If the second value of the netaddress key is static, and the tuple contains a fifth value, the system shall ensure that the fifth value is a valid IP address of the same type as the third value in the tuple. + + + Runner.Verify.network.netaddress.Count + The system shall verify that netaddress is not specified more than 255 times per interface. + + + Runner.Verify.network.netssid + If the value in the HorizonScript for the network key is true, the system shall verify the validity of any present netssid key. + + + Runner.Verify.network.netssid.NoNetwork + If the value in the HorizonScript for the network key is false, the system shall verify that no netssid key is present.
@@ -116,7 +184,10 @@ Runner.Execute.Verify.Failure If the HorizonScript fails verification, the system shall report a fatal exception () and stop execution. - + + Runner.Execute.diskid + + -- cgit v1.2.3-60-g2f50