Skip to content

Commit

Permalink
test: update main to be default (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMerrick authored Oct 5, 2023
1 parent b2d343d commit be492bd
Show file tree
Hide file tree
Showing 16 changed files with 53 additions and 53 deletions.
6 changes: 3 additions & 3 deletions executor/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ var (
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand Down Expand Up @@ -274,7 +274,7 @@ var (
FullName: vela.String("github/octocat"),
Link: vela.String("https://github.com/github/octocat"),
Clone: vela.String("https://github.com/github/octocat.git"),
Branch: vela.String("master"),
Branch: vela.String("main"),
Timeout: vela.Int64(60),
Visibility: vela.String("public"),
Private: vela.Bool(false),
Expand Down
6 changes: 3 additions & 3 deletions executor/linux/linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ func testBuild() *library.Build {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand All @@ -211,7 +211,7 @@ func testRepo() *library.Repo {
FullName: vela.String("github/octocat"),
Link: vela.String("https://github.com/github/octocat"),
Clone: vela.String("https://github.com/github/octocat.git"),
Branch: vela.String("master"),
Branch: vela.String("main"),
Timeout: vela.Int64(60),
Visibility: vela.String("public"),
Private: vela.Bool(false),
Expand Down
6 changes: 3 additions & 3 deletions executor/local/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ func testBuild() *library.Build {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand All @@ -209,7 +209,7 @@ func testRepo() *library.Repo {
FullName: vela.String("github/octocat"),
Link: vela.String("https://github.com/github/octocat"),
Clone: vela.String("https://github.com/github/octocat.git"),
Branch: vela.String("master"),
Branch: vela.String("main"),
Timeout: vela.Int64(60),
Visibility: vela.String("public"),
Private: vela.Bool(false),
Expand Down
6 changes: 3 additions & 3 deletions internal/build/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func TestBuild_Snapshot(t *testing.T) {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand All @@ -49,7 +49,7 @@ func TestBuild_Snapshot(t *testing.T) {
FullName: vela.String("github/octocat"),
Link: vela.String("https://github.com/github/octocat"),
Clone: vela.String("https://github.com/github/octocat.git"),
Branch: vela.String("master"),
Branch: vela.String("main"),
Timeout: vela.Int64(60),
Visibility: vela.String("public"),
Private: vela.Bool(false),
Expand Down
6 changes: 3 additions & 3 deletions internal/build/upload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func TestBuild_Upload(t *testing.T) {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand All @@ -58,7 +58,7 @@ func TestBuild_Upload(t *testing.T) {
FullName: vela.String("github/octocat"),
Link: vela.String("https://github.com/github/octocat"),
Clone: vela.String("https://github.com/github/octocat.git"),
Branch: vela.String("master"),
Branch: vela.String("main"),
Timeout: vela.Int64(60),
Visibility: vela.String("public"),
Private: vela.Bool(false),
Expand Down
6 changes: 3 additions & 3 deletions internal/service/environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func TestService_Environment(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("changes")
b.SetHost("example.company.com")
Expand All @@ -61,7 +61,7 @@ func TestService_Environment(t *testing.T) {
r.SetFullName("github/octocat")
r.SetLink("https://github.com/github/octocat")
r.SetClone("https://github.com/github/octocat.git")
r.SetBranch("master")
r.SetBranch("main")
r.SetTimeout(30)
r.SetVisibility("public")
r.SetPrivate(false)
Expand Down
6 changes: 3 additions & 3 deletions internal/service/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func TestService_Snapshot(t *testing.T) {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand Down Expand Up @@ -72,7 +72,7 @@ func TestService_Snapshot(t *testing.T) {
FullName: vela.String("github/octocat"),
Link: vela.String("https://github.com/github/octocat"),
Clone: vela.String("https://github.com/github/octocat.git"),
Branch: vela.String("master"),
Branch: vela.String("main"),
Timeout: vela.Int64(60),
Visibility: vela.String("public"),
Private: vela.Bool(false),
Expand Down
6 changes: 3 additions & 3 deletions internal/service/upload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func TestService_Upload(t *testing.T) {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand Down Expand Up @@ -70,7 +70,7 @@ func TestService_Upload(t *testing.T) {
FullName: vela.String("github/octocat"),
Link: vela.String("https://github.com/github/octocat"),
Clone: vela.String("https://github.com/github/octocat.git"),
Branch: vela.String("master"),
Branch: vela.String("main"),
Timeout: vela.Int64(60),
Visibility: vela.String("public"),
Private: vela.Bool(false),
Expand Down
6 changes: 3 additions & 3 deletions internal/step/environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func TestStep_Environment(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("changes")
b.SetHost("example.company.com")
Expand All @@ -60,7 +60,7 @@ func TestStep_Environment(t *testing.T) {
r.SetFullName("github/octocat")
r.SetLink("https://github.com/github/octocat")
r.SetClone("https://github.com/github/octocat.git")
r.SetBranch("master")
r.SetBranch("main")
r.SetTimeout(30)
r.SetVisibility("public")
r.SetPrivate(false)
Expand Down
24 changes: 12 additions & 12 deletions internal/step/skip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func TestStep_Skip(t *testing.T) {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand All @@ -60,8 +60,8 @@ func TestStep_Skip(t *testing.T) {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand All @@ -88,8 +88,8 @@ func TestStep_Skip(t *testing.T) {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand All @@ -116,7 +116,7 @@ func TestStep_Skip(t *testing.T) {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Branch: vela.String("main"),
Ref: vela.String("refs/tags/v1.0.0"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Expand Down Expand Up @@ -144,8 +144,8 @@ func TestStep_Skip(t *testing.T) {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand All @@ -172,8 +172,8 @@ func TestStep_Skip(t *testing.T) {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand All @@ -197,7 +197,7 @@ func TestStep_Skip(t *testing.T) {
FullName: vela.String("github/octocat"),
Link: vela.String("https://github.com/github/octocat"),
Clone: vela.String("https://github.com/github/octocat.git"),
Branch: vela.String("master"),
Branch: vela.String("main"),
Timeout: vela.Int64(60),
Visibility: vela.String("public"),
Private: vela.Bool(false),
Expand Down
12 changes: 6 additions & 6 deletions internal/step/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func TestStep_Snapshot(t *testing.T) {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand Down Expand Up @@ -70,7 +70,7 @@ func TestStep_Snapshot(t *testing.T) {
FullName: vela.String("github/octocat"),
Link: vela.String("https://github.com/github/octocat"),
Clone: vela.String("https://github.com/github/octocat.git"),
Branch: vela.String("master"),
Branch: vela.String("main"),
Timeout: vela.Int64(60),
Visibility: vela.String("public"),
Private: vela.Bool(false),
Expand Down Expand Up @@ -163,8 +163,8 @@ func TestStep_SnapshotInit(t *testing.T) {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand Down Expand Up @@ -199,7 +199,7 @@ func TestStep_SnapshotInit(t *testing.T) {
FullName: vela.String("github/octocat"),
Link: vela.String("https://github.com/github/octocat"),
Clone: vela.String("https://github.com/github/octocat.git"),
Branch: vela.String("master"),
Branch: vela.String("main"),
Timeout: vela.Int64(60),
Visibility: vela.String("public"),
Private: vela.Bool(false),
Expand Down
6 changes: 3 additions & 3 deletions internal/step/upload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func TestStep_Upload(t *testing.T) {
Commit: vela.String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Sender: vela.String("OctoKitty"),
Author: vela.String("OctoKitty"),
Branch: vela.String("master"),
Ref: vela.String("refs/heads/master"),
Branch: vela.String("main"),
Ref: vela.String("refs/heads/main"),
BaseRef: vela.String(""),
Host: vela.String("example.company.com"),
Runtime: vela.String("docker"),
Expand Down Expand Up @@ -70,7 +70,7 @@ func TestStep_Upload(t *testing.T) {
FullName: vela.String("github/octocat"),
Link: vela.String("https://github.com/github/octocat"),
Clone: vela.String("https://github.com/github/octocat.git"),
Branch: vela.String("master"),
Branch: vela.String("main"),
Timeout: vela.Int64(60),
Visibility: vela.String("public"),
Private: vela.Bool(false),
Expand Down
4 changes: 2 additions & 2 deletions mock/worker/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const (
"author": "OctoKitty",
"email": "[email protected]",
"link": "https://vela.example.company.com/github/octocat/1",
"branch": "master",
"ref": "refs/heads/master",
"branch": "main",
"ref": "refs/heads/main",
"base_ref": "",
"host": "example.company.com",
"runtime": "docker",
Expand Down
2 changes: 1 addition & 1 deletion mock/worker/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
"commit": "48afb5bdc41ad69bf22588491333f7cf71135163",
"flavor": "",
"platform": "",
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"type": "yaml",
"version": "1",
"external_secrets": false,
Expand Down
2 changes: 1 addition & 1 deletion mock/worker/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
"full_name": "github/octocat",
"link": "https://github.com/github/octocat",
"clone": "https://github.com/github/octocat",
"branch": "master",
"branch": "main",
"build_limit": 10,
"timeout": 60,
"visibility": "public",
Expand Down
2 changes: 1 addition & 1 deletion runtime/testdata/steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ steps:
pull: true
parameters:
path: hello-world
ref: refs/heads/master
ref: refs/heads/main
remote: https://github.com/octocat/hello-world.git
sha: 7fd1a60b01f91b314f59955a4e4d4e80d8edf11d

Expand Down

0 comments on commit be492bd

Please sign in to comment.