-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: update main to be default (#324)
- Loading branch information
1 parent
b264d1c
commit 9b2ca77
Showing
22 changed files
with
204 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,8 +131,8 @@ func TestDatabase_Build_ToLibrary(t *testing.T) { | |
want.SetAuthor("OctoKitty") | ||
want.SetEmail("[email protected]") | ||
want.SetLink("https://example.company.com/github/octocat/1") | ||
want.SetBranch("master") | ||
want.SetRef("refs/heads/master") | ||
want.SetBranch("main") | ||
want.SetRef("refs/heads/main") | ||
want.SetBaseRef("") | ||
want.SetHeadRef("") | ||
want.SetHost("example.company.com") | ||
|
@@ -220,8 +220,8 @@ func TestDatabase_BuildFromLibrary(t *testing.T) { | |
b.SetAuthor("OctoKitty") | ||
b.SetEmail("[email protected]") | ||
b.SetLink("https://example.company.com/github/octocat/1") | ||
b.SetBranch("master") | ||
b.SetRef("refs/heads/master") | ||
b.SetBranch("main") | ||
b.SetRef("refs/heads/main") | ||
b.SetBaseRef("") | ||
b.SetHeadRef("") | ||
b.SetHost("example.company.com") | ||
|
@@ -279,8 +279,8 @@ func testBuild() *Build { | |
Author: sql.NullString{String: "OctoKitty", Valid: true}, | ||
Email: sql.NullString{String: "[email protected]", Valid: true}, | ||
Link: sql.NullString{String: "https://example.company.com/github/octocat/1", Valid: true}, | ||
Branch: sql.NullString{String: "master", Valid: true}, | ||
Ref: sql.NullString{String: "refs/heads/master", Valid: true}, | ||
Branch: sql.NullString{String: "main", Valid: true}, | ||
Ref: sql.NullString{String: "refs/heads/main", Valid: true}, | ||
BaseRef: sql.NullString{String: "", Valid: false}, | ||
HeadRef: sql.NullString{String: "", Valid: false}, | ||
Host: sql.NullString{String: "example.company.com", Valid: true}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,7 +89,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"VELA_BUILD_AUTHOR": "OctoKitty", | ||
"VELA_BUILD_AUTHOR_EMAIL": "[email protected]", | ||
"VELA_BUILD_BASE_REF": "", | ||
"VELA_BUILD_BRANCH": "master", | ||
"VELA_BUILD_BRANCH": "main", | ||
"VELA_BUILD_CHANNEL": "TODO", | ||
"VELA_BUILD_CLONE": "https://github.com/github/octocat.git", | ||
"VELA_BUILD_COMMIT": "48afb5bdc41ad69bf22588491333f7cf71135163", | ||
|
@@ -103,7 +103,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"VELA_BUILD_MESSAGE": "First commit...", | ||
"VELA_BUILD_NUMBER": "1", | ||
"VELA_BUILD_PARENT": "1", | ||
"VELA_BUILD_REF": "refs/heads/master", | ||
"VELA_BUILD_REF": "refs/heads/main", | ||
"VELA_BUILD_RUNTIME": "docker", | ||
"VELA_BUILD_SENDER": "OctoKitty", | ||
"VELA_BUILD_STARTED": "1563474078", | ||
|
@@ -114,7 +114,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"BUILD_AUTHOR": "OctoKitty", | ||
"BUILD_AUTHOR_EMAIL": "[email protected]", | ||
"BUILD_BASE_REF": "", | ||
"BUILD_BRANCH": "master", | ||
"BUILD_BRANCH": "main", | ||
"BUILD_CHANNEL": "TODO", | ||
"BUILD_CLONE": "https://github.com/github/octocat.git", | ||
"BUILD_COMMIT": "48afb5bdc41ad69bf22588491333f7cf71135163", | ||
|
@@ -126,7 +126,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"BUILD_MESSAGE": "First commit...", | ||
"BUILD_NUMBER": "1", | ||
"BUILD_PARENT": "1", | ||
"BUILD_REF": "refs/heads/master", | ||
"BUILD_REF": "refs/heads/main", | ||
"BUILD_SENDER": "OctoKitty", | ||
"BUILD_STARTED": "1563474078", | ||
"BUILD_SOURCE": "https://github.com/github/octocat/48afb5bdc41ad69bf22588491333f7cf71135163", | ||
|
@@ -141,7 +141,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"VELA_BUILD_AUTHOR": "OctoKitty", | ||
"VELA_BUILD_AUTHOR_EMAIL": "[email protected]", | ||
"VELA_BUILD_BASE_REF": "", | ||
"VELA_BUILD_BRANCH": "master", | ||
"VELA_BUILD_BRANCH": "main", | ||
"VELA_BUILD_CHANNEL": "TODO", | ||
"VELA_BUILD_CLONE": "https://github.com/github/octocat.git", | ||
"VELA_BUILD_COMMIT": "48afb5bdc41ad69bf22588491333f7cf71135163", | ||
|
@@ -168,7 +168,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"BUILD_AUTHOR": "OctoKitty", | ||
"BUILD_AUTHOR_EMAIL": "[email protected]", | ||
"BUILD_BASE_REF": "", | ||
"BUILD_BRANCH": "master", | ||
"BUILD_BRANCH": "main", | ||
"BUILD_CHANNEL": "TODO", | ||
"BUILD_CLONE": "https://github.com/github/octocat.git", | ||
"BUILD_COMMIT": "48afb5bdc41ad69bf22588491333f7cf71135163", | ||
|
@@ -196,7 +196,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"VELA_BUILD_AUTHOR": "OctoKitty", | ||
"VELA_BUILD_AUTHOR_EMAIL": "[email protected]", | ||
"VELA_BUILD_BASE_REF": "", | ||
"VELA_BUILD_BRANCH": "master", | ||
"VELA_BUILD_BRANCH": "main", | ||
"VELA_BUILD_CHANNEL": "TODO", | ||
"VELA_BUILD_CLONE": "https://github.com/github/octocat.git", | ||
"VELA_BUILD_COMMIT": "48afb5bdc41ad69bf22588491333f7cf71135163", | ||
|
@@ -210,7 +210,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"VELA_BUILD_MESSAGE": "First commit...", | ||
"VELA_BUILD_NUMBER": "1", | ||
"VELA_BUILD_PARENT": "1", | ||
"VELA_BUILD_REF": "refs/heads/master", | ||
"VELA_BUILD_REF": "refs/heads/main", | ||
"VELA_BUILD_RUNTIME": "docker", | ||
"VELA_BUILD_SENDER": "OctoKitty", | ||
"VELA_BUILD_STARTED": "1563474078", | ||
|
@@ -224,7 +224,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"BUILD_AUTHOR": "OctoKitty", | ||
"BUILD_AUTHOR_EMAIL": "[email protected]", | ||
"BUILD_BASE_REF": "", | ||
"BUILD_BRANCH": "master", | ||
"BUILD_BRANCH": "main", | ||
"BUILD_CHANNEL": "TODO", | ||
"BUILD_CLONE": "https://github.com/github/octocat.git", | ||
"BUILD_COMMIT": "48afb5bdc41ad69bf22588491333f7cf71135163", | ||
|
@@ -236,7 +236,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"BUILD_MESSAGE": "First commit...", | ||
"BUILD_NUMBER": "1", | ||
"BUILD_PARENT": "1", | ||
"BUILD_REF": "refs/heads/master", | ||
"BUILD_REF": "refs/heads/main", | ||
"BUILD_SENDER": "OctoKitty", | ||
"BUILD_STARTED": "1563474078", | ||
"BUILD_SOURCE": "https://github.com/github/octocat/48afb5bdc41ad69bf22588491333f7cf71135163", | ||
|
@@ -253,7 +253,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"VELA_BUILD_AUTHOR": "OctoKitty", | ||
"VELA_BUILD_AUTHOR_EMAIL": "[email protected]", | ||
"VELA_BUILD_BASE_REF": "", | ||
"VELA_BUILD_BRANCH": "master", | ||
"VELA_BUILD_BRANCH": "main", | ||
"VELA_BUILD_CHANNEL": "TODO", | ||
"VELA_BUILD_CLONE": "https://github.com/github/octocat.git", | ||
"VELA_BUILD_COMMIT": "48afb5bdc41ad69bf22588491333f7cf71135163", | ||
|
@@ -281,7 +281,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"BUILD_AUTHOR": "OctoKitty", | ||
"BUILD_AUTHOR_EMAIL": "[email protected]", | ||
"BUILD_BASE_REF": "", | ||
"BUILD_BRANCH": "master", | ||
"BUILD_BRANCH": "main", | ||
"BUILD_CHANNEL": "TODO", | ||
"BUILD_CLONE": "https://github.com/github/octocat.git", | ||
"BUILD_COMMIT": "48afb5bdc41ad69bf22588491333f7cf71135163", | ||
|
@@ -312,7 +312,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"VELA_BUILD_AUTHOR": "OctoKitty", | ||
"VELA_BUILD_AUTHOR_EMAIL": "[email protected]", | ||
"VELA_BUILD_BASE_REF": "", | ||
"VELA_BUILD_BRANCH": "master", | ||
"VELA_BUILD_BRANCH": "main", | ||
"VELA_BUILD_CHANNEL": "TODO", | ||
"VELA_BUILD_CLONE": "https://github.com/github/octocat.git", | ||
"VELA_BUILD_COMMIT": "48afb5bdc41ad69bf22588491333f7cf71135163", | ||
|
@@ -341,7 +341,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"BUILD_AUTHOR": "OctoKitty", | ||
"BUILD_AUTHOR_EMAIL": "[email protected]", | ||
"BUILD_BASE_REF": "", | ||
"BUILD_BRANCH": "master", | ||
"BUILD_BRANCH": "main", | ||
"BUILD_CHANNEL": "TODO", | ||
"BUILD_CLONE": "https://github.com/github/octocat.git", | ||
"BUILD_COMMIT": "48afb5bdc41ad69bf22588491333f7cf71135163", | ||
|
@@ -369,7 +369,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"VELA_BUILD_AUTHOR": "OctoKitty", | ||
"VELA_BUILD_AUTHOR_EMAIL": "[email protected]", | ||
"VELA_BUILD_BASE_REF": "", | ||
"VELA_BUILD_BRANCH": "master", | ||
"VELA_BUILD_BRANCH": "main", | ||
"VELA_BUILD_CHANNEL": "TODO", | ||
"VELA_BUILD_CLONE": "https://github.com/github/octocat.git", | ||
"VELA_BUILD_COMMIT": "48afb5bdc41ad69bf22588491333f7cf71135163", | ||
|
@@ -395,7 +395,7 @@ func TestLibrary_Build_Environment(t *testing.T) { | |
"BUILD_AUTHOR": "OctoKitty", | ||
"BUILD_AUTHOR_EMAIL": "[email protected]", | ||
"BUILD_BASE_REF": "", | ||
"BUILD_BRANCH": "master", | ||
"BUILD_BRANCH": "main", | ||
"BUILD_CHANNEL": "TODO", | ||
"BUILD_CLONE": "https://github.com/github/octocat.git", | ||
"BUILD_COMMIT": "48afb5bdc41ad69bf22588491333f7cf71135163", | ||
|
@@ -858,8 +858,8 @@ func testBuild() *Build { | |
b.SetAuthor("OctoKitty") | ||
b.SetEmail("[email protected]") | ||
b.SetLink("https://example.company.com/github/octocat/1") | ||
b.SetBranch("master") | ||
b.SetRef("refs/heads/master") | ||
b.SetBranch("main") | ||
b.SetRef("refs/heads/main") | ||
b.SetBaseRef("") | ||
b.SetHeadRef("changes") | ||
b.SetHost("example.company.com") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.