Verify ReleaseKit against a disposable remote
This commit is contained in:
@@ -39,8 +39,12 @@ func TestReleaseKitProfile(t *testing.T) {
|
||||
if profile.Remote != "origin" {
|
||||
t.Errorf("remote = %q, want origin", profile.Remote)
|
||||
}
|
||||
if profile.ExpectedPushURL != "https://gitea.maximumdirect.net/eric/ConfigKit.git" {
|
||||
t.Errorf("expected push URL = %q", profile.ExpectedPushURL)
|
||||
wantPushURL := "https://gitea.maximumdirect.net/eric/ConfigKit.git"
|
||||
if fixturePushURL := os.Getenv("CONFIGKIT_TEST_EXPECTED_PUSH_URL"); fixturePushURL != "" {
|
||||
wantPushURL = fixturePushURL
|
||||
}
|
||||
if profile.ExpectedPushURL != wantPushURL {
|
||||
t.Errorf("expected push URL = %q, want %q", profile.ExpectedPushURL, wantPushURL)
|
||||
}
|
||||
goValidation := profile.Validation.Go
|
||||
if !goValidation.Race || !goValidation.FullVet {
|
||||
|
||||
Reference in New Issue
Block a user