INNER CODE UNIT · Go

TestReleaseVerifiesPublishedAssets

minekube/gate · release_asset_verification_test.go:129

func TestReleaseVerifiesPublishedAssets(t *testing.T) {
	steps := readReleaseJobSteps(t)

	verifyAt := stepIndex(steps, verifyAssetsStepName)
	if verifyAt < 0 {
		t.Fatalf("publish-release job is missing the %q step; a release that publishes "+
			"no asset would ship green again", verifyAssetsStepName)
	}

	script := steps[verifyAt].Run
	if script == "" {
		t.Fatalf("%q must be a run step that asserts on the published release", verifyAssetsStepName)
	}
	if steps[verifyAt].If != "" {
		t.Errorf("%q is conditional (if: %q); the guard must always run",
			verifyAssetsStepName, steps[verifyAt].If)
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…