INNER CODE UNIT · Go

TestReleaseVerificationReadsPublishedRelease

minekube/gate · release_asset_verification_test.go:152

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

	verifyAt := stepIndex(steps, verifyAssetsStepName)
	if verifyAt < 0 {
		t.Fatalf("publish-release job is missing the %q step", verifyAssetsStepName)
	}
	script := steps[verifyAt].Run

	for _, want := range []string{
		"/releases/tags/",    // re-reads the published release by tag
		"checksums.txt",      // the manifest every download path verifies against
		`"uploaded"`,         // only fully-uploaded assets count
		"releases/download/", // proves a build is actually served, not just listed
	} {
		if !strings.Contains(script, want) {
			t.Errorf("%q script does not reference %q; it must assert on the "+
				"published release, not on local build output", verifyAssetsStepName, want)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…