From 485696ecef94479094e0211ac23a6d2667f4036d Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 4 Sep 2019 11:21:13 -0500 Subject: req: 3: Handle lack of local package repository and/or packages --- devel/requirements/3_functional.xml | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/devel/requirements/3_functional.xml b/devel/requirements/3_functional.xml index 2258a58..2149a33 100644 --- a/devel/requirements/3_functional.xml +++ b/devel/requirements/3_functional.xml @@ -218,6 +218,10 @@ UI.Network.AddressType The system shall ask the User whether they wish to use automatic addressing (DHCP), manual addressing, or disable network connectivity. + + UI.Network.AddressType.MaybeNotDisable + The system shall not allow the User to disable network connectivity if any required repository is unavailable locally. + UI.Network.AddressType.Skip If the User chooses to disable network connectivity, the system shall proceed to the System Metadata screen. @@ -424,6 +428,10 @@
Functional Requirements + + UI.Packages.DisabledNetwork + If the User has chosen to disable the network, the system shall only display presets and packages available for installation locally. + UI.Packages.SimpleSel The system shall allow the User to choose from one of the following four preset package sets, or to customise the packages installed. @@ -796,13 +804,29 @@ Locate HorizonScript
Description / Priority - + The system needs to load the HorizonScript into memory. If the HorizonScript is a local file, the system needs to ensure it is present and readable. If the HorizonScript is remote, the system needs to proceed to Network Configuration before continuing.
Functional Requirements - - - <para/> + <formalpara id="Runner.Locate.DetermineLocality"> + <title>Runner.Locate.DetermineLocality + The system shall determine if the HorizonScript is stored locally or remotely using the following algorithm: + + If the path to the HorizonScript is not provided, assume the HorizonScript is remote and end the calculation. Priority: Low. + If the path to the HorizonScript begins with a single "/" followed by an alphanumeric character, the HorizonScript is local. + If the path to the HorizonScript begins with a recognised valid protocol for downloading a HorizonScript followed by the characters "://", the HorizonScript is remote. + If the path to the HorizonScript begins with an alphanumeric character, the HorizonScript is local and relative to the path /etc/horizon. + If the path to the HorizonScript does not match any of the rules specified before this line, the path provided is invalid and the system shall return an error. + + + + + Runner.Locate.Local + If the HorizonScript is local, the system shall ensure the HorizonScript specified exists at the specified path, is readable by the system, and is the correct format. + + + Runner.Locate.Remote + If the HorizonScript is remote, the system shall
-- cgit v1.2.3-70-g09d2