Prepare Assignment 8 secure delivery and rollback
Add the locked pricing service, trusted-agent pipeline, Ansible deployments, security gates, recovery runbooks, prerequisite evidence, and preparation manual. Prepared with Codex assistance. Vincent explicitly authorized this local commit and will handle the push. Assessed releases and recovery exercises remain pending.
This commit is contained in:
Vendored
+14
-2
@@ -6,10 +6,22 @@ pipeline {
|
||||
steps { checkout scm }
|
||||
}
|
||||
stage('Syntax check') {
|
||||
steps { sh 'python3 -m py_compile pricing.py' }
|
||||
steps {
|
||||
sh 'python3 -m py_compile pricing.py'
|
||||
sh '''python3 -B - <<'PY'
|
||||
import ast
|
||||
from pathlib import Path
|
||||
for source in Path('delivery').rglob('*.py'):
|
||||
ast.parse(source.read_text(), filename=str(source))
|
||||
print('Delivery Python syntax: passed')
|
||||
PY'''
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps { sh 'python3 -m unittest discover -s tests -v' }
|
||||
steps {
|
||||
sh 'python3 -m unittest discover -s tests -v'
|
||||
sh 'python3 -B -m unittest discover -s delivery/ci -p "test_controls.py" -v'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user