Add the Continuous Integration with Jenkins chapter in the eight rubric sections: deployment and persistence (capacity test, memory-limit fix, restart test), HTTPS/access/firewall with IPv4 and IPv6 exposure checks, webhook traceability with an actual deployment diagram, pipeline stages, the required pr-main merge gate, PR #15's failure/repair/review/merge sequence, credentials and controller build boundary, and controls. Update the Hosts and Passwords tables (1 GiB resize, Jenkins and ci.yebilly.me, jenkins-bot account and token hints), the title page, abstract, Document History, glossary, and AI prompt log (including Vincent's prepared Oct 19-21 record). Note that Assignment 5's PR #13 merged. Also version pipeline-graph-view and its dependencies in the Jenkins plugin lockfile, and add Vincent's source-only ci/jenkins-capacity test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
278 B
Python
13 lines
278 B
Python
import unittest
|
|
|
|
from pricing import total_price
|
|
|
|
|
|
class PricingTests(unittest.TestCase):
|
|
def test_total(self):
|
|
self.assertEqual(total_price(10, 3), 30)
|
|
|
|
def test_invalid_quantity(self):
|
|
with self.assertRaises(ValueError):
|
|
total_price(10, 0)
|