Add enterprise appliance experience Phase 1 foundation
This commit is contained in:
1 parent
b3eec34158
commit
ebaa2e7219
69 files changed
+6832
-18
No files matched your search
@@ -0,0 +1,21 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
FIRSTBOOT = ROOT / "autoinstall/firstboot-setup.sh"
|
||||
|
||||
|
||||
def test_console_setup_preserves_workstation_separation_and_safe_completion():
|
||||
source = FIRSTBOOT.read_text()
|
||||
assert 'WORKSTATION_MODE' in source
|
||||
assert 'TIER_DISPLAY="workstation"' in source
|
||||
assert 'touch /opt/cezen/.setup-done' in source
|
||||
assert source.index('touch /opt/cezen/.setup-done') > source.index('if bash "$AIPACKAGE_DIR/install.sh"')
|
||||
|
||||
|
||||
def test_console_setup_has_resume_and_recovery_contract():
|
||||
source = FIRSTBOOT.read_text()
|
||||
# Intentionally red until T028 adds durable console progress.
|
||||
assert "cezen.setup_operation.v1" in source
|
||||
assert "recovery_required" in source
|
||||
assert "resume" in source.lower()
|
||||
Reference in new issue
Block a user