mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-20 11:46:11 +00:00
Route demo updates over governed Tailscale path
This commit is contained in:
parent
1a0acd310a
commit
3a992a4fae
6 changed files with 53 additions and 14 deletions
|
|
@ -139,6 +139,27 @@ func TestDeployDemoWorkflowFailsClosedForPreviewAndVerifiesFrontendParity(t *tes
|
|||
}
|
||||
}
|
||||
|
||||
func TestUpdateDemoWorkflowUsesGovernedNetworkPath(t *testing.T) {
|
||||
workflowBytes, err := os.ReadFile(repoFile(".github", "workflows", "update-demo-server.yml"))
|
||||
if err != nil {
|
||||
t.Fatalf("read update-demo-server workflow: %v", err)
|
||||
}
|
||||
|
||||
workflow := string(workflowBytes)
|
||||
required := []string{
|
||||
`- name: Tailscale`,
|
||||
`uses: tailscale/github-action@v2`,
|
||||
`authkey: ${{ secrets.TS_AUTHKEY }}`,
|
||||
`Verify target host identity`,
|
||||
`Demo environment points at host $REMOTE_HOSTNAME but expected $DEMO_EXPECTED_HOSTNAME.`,
|
||||
}
|
||||
for _, needle := range required {
|
||||
if !strings.Contains(workflow, needle) {
|
||||
t.Fatalf("update-demo-server workflow missing governed network path: %s", needle)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestDockerfileStagesShippedDocsForEmbeddedFrontendBuild(t *testing.T) {
|
||||
dockerfileBytes, err := os.ReadFile(repoFile("Dockerfile"))
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -231,6 +231,8 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
|
|||
self.assertIn("latest published release for target", demo)
|
||||
self.assertIn('SERVICE_NAME="pulse-v6-preview"', demo)
|
||||
self.assertIn("Preview demo updates must not target the stable pulse service.", demo)
|
||||
self.assertIn("tailscale/github-action@v2", demo)
|
||||
self.assertIn("TS_AUTHKEY", demo)
|
||||
self.assertIn("DEMO_EXPECTED_HOSTNAME", demo)
|
||||
self.assertIn("Verify target host identity", demo)
|
||||
self.assertIn("Demo environment points at host $REMOTE_HOSTNAME but expected $DEMO_EXPECTED_HOSTNAME.", demo)
|
||||
|
|
@ -282,7 +284,6 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
|
|||
blocked = read("docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-04-04.md")
|
||||
current_version = read("VERSION").strip()
|
||||
active_target_id = read_json("docs/release-control/control_plane.json")["active_target_id"]
|
||||
self.assertIn("origin/pulse/v6-release", blocked)
|
||||
self.assertIn(f"VERSION={current_version}", blocked)
|
||||
self.assertIn("artifact-owned candidate stable tag", blocked)
|
||||
self.assertIn("artifact-owned promotion channel", blocked)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue