diff --git a/pricing/app/app.py b/pricing/app/app.py index 1ea1194..a6dd3f0 100644 --- a/pricing/app/app.py +++ b/pricing/app/app.py @@ -2,8 +2,8 @@ import os from flask import Flask, jsonify, request app = Flask(__name__) -VERSION = "v1" -UNIT_PRICE = 10 +VERSION = "v2" +UNIT_PRICE = 12 COMMIT = os.environ.get("APP_COMMIT", "development") diff --git a/pricing/app/test_app.py b/pricing/app/test_app.py index 40b4207..669294b 100644 --- a/pricing/app/test_app.py +++ b/pricing/app/test_app.py @@ -7,17 +7,17 @@ class PricingTests(unittest.TestCase): self.client = app.test_client() def test_price(self): - self.assertEqual(total_price(3), 30) + self.assertEqual(total_price(3), 36) response = self.client.get("/price?quantity=3") self.assertEqual(response.status_code, 200) - self.assertEqual(response.json["total"], 30) + self.assertEqual(response.json["total"], 36) def test_invalid_quantity(self): for value in ["0", "-1", "1001", "abc", "1.5"]: self.assertEqual(self.client.get("/price?quantity=" + value).status_code, 400) def test_release_identity(self): - self.assertEqual(self.client.get("/").json["version"], "v1") + self.assertEqual(self.client.get("/").json["version"], "v2") self.assertEqual(self.client.get("/health").json["status"], "ok") diff --git a/pricing/releases/v1-production.yml b/pricing/releases/v1-production.yml new file mode 100644 index 0000000..ab589d7 --- /dev/null +++ b/pricing/releases/v1-production.yml @@ -0,0 +1,11 @@ +# Release record: v1 production. Metadata only; no credentials. +target_env: production +release_image: git.ssw590.abrdns.com/startupteam/pricing@sha256:3c0d12eb24e74f3f014d9c634f4197d8df7927c4254d12daf48f676f0adab7c9 +expected_version: v1 +expected_commit: d4c012560d5096f399224d5b5f6516a5cb2158a4 +expected_total: 30 +public_url: https://app.ssw590.abrdns.com +proxy_network: startup_private +config_commit: d4c012560d5096f399224d5b5f6516a5cb2158a4 +jenkins_build: https://ci.ssw590.abrdns.com/job/pricing-delivery/7/ +recorded_at: 2026-11-12T19:05:57Z diff --git a/pricing/releases/v1-staging.yml b/pricing/releases/v1-staging.yml new file mode 100644 index 0000000..75ecdb0 --- /dev/null +++ b/pricing/releases/v1-staging.yml @@ -0,0 +1,11 @@ +# Release record: v1 staging. Metadata only; no credentials. +target_env: staging +release_image: git.ssw590.abrdns.com/startupteam/pricing@sha256:3c0d12eb24e74f3f014d9c634f4197d8df7927c4254d12daf48f676f0adab7c9 +expected_version: v1 +expected_commit: d4c012560d5096f399224d5b5f6516a5cb2158a4 +expected_total: 30 +public_url: https://staging.ssw590.abrdns.com +proxy_network: startup_private +config_commit: d4c012560d5096f399224d5b5f6516a5cb2158a4 +jenkins_build: https://ci.ssw590.abrdns.com/job/pricing-delivery/7/ +recorded_at: 2026-11-12T19:05:57Z