Skip to content

Commit

Permalink
test: update main to be default (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMerrick authored Oct 5, 2023
1 parent f37b1ae commit 393ca32
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion vela/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func TestAdmin_Deployment_Update_200(t *testing.T) {

req := library.Deployment{
Commit: String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Ref: String("refs/heads/master"),
Ref: String("refs/heads/main"),
Task: String("vela-deploy"),
Target: String("production"),
Description: String("Deployment request from Vela"),
Expand Down
6 changes: 3 additions & 3 deletions vela/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ func TestBuild_Add_201(t *testing.T) {
Author: String("OctoKitty"),
Email: String("[email protected]"),
Link: String("https://vela.example.company.com/github/octocat/1"),
Branch: String("master"),
Ref: String("refs/heads/master"),
Branch: String("main"),
Ref: String("refs/heads/main"),
BaseRef: String(""),
Host: String("example.company.com"),
Runtime: String("docker"),
Expand Down Expand Up @@ -609,7 +609,7 @@ func ExampleBuildService_Add() {
Author: String("someone"),
Email: String("[email protected]"),
Link: String("https://vela.example.company.com/go-vela/server/1"),
Branch: String("master"),
Branch: String("main"),
Ref: String(""),
BaseRef: String(""),
Host: String("example.company.com"),
Expand Down
4 changes: 2 additions & 2 deletions vela/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func TestDeployment_Add_201(t *testing.T) {

req := library.Deployment{
Commit: String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Ref: String("refs/heads/master"),
Ref: String("refs/heads/main"),
Task: String("vela-deploy"),
Target: String("production"),
Description: String("Deployment request from Vela"),
Expand Down Expand Up @@ -174,7 +174,7 @@ func ExampleDeploymentService_Add() {

req := library.Deployment{
Commit: String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Ref: String("refs/heads/master"),
Ref: String("refs/heads/main"),
Task: String("vela-deploy"),
Target: String("production"),
Description: String("Deployment request from Vela"),
Expand Down
4 changes: 2 additions & 2 deletions vela/hook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func TestHook_Add_201(t *testing.T) {
Error: String(""),
Created: Int64(1563474076),
Link: String("https://github.com/github/octocat/settings/hooks/1"),
Branch: String("master"),
Branch: String("main"),
Host: String("github.com"),
}

Expand Down Expand Up @@ -287,7 +287,7 @@ func ExampleHookService_Add() {
Error: String(""),
Created: Int64(1563474076),
Link: String("https://github.com/github/octocat/settings/hooks/1"),
Branch: String("master"),
Branch: String("main"),
Host: String("github.com"),
}

Expand Down
4 changes: 2 additions & 2 deletions vela/pipeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func TestPipeline_Add_201(t *testing.T) {

req := library.Pipeline{
Commit: String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Ref: String("refs/heads/master"),
Ref: String("refs/heads/main"),
Type: String("yaml"),
Version: String("1"),
Steps: Bool(true),
Expand Down Expand Up @@ -472,7 +472,7 @@ func ExamplePipelineService_Add() {

req := library.Pipeline{
Commit: String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Ref: String("refs/heads/master"),
Ref: String("refs/heads/main"),
Type: String("yaml"),
Version: String("1"),
Steps: Bool(true),
Expand Down
4 changes: 2 additions & 2 deletions vela/repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func TestRepo_Add_201(t *testing.T) {
FullName: String("github/octocat"),
Link: String("https://github.com/github/octocat"),
Clone: String("https://github.com/github/octocat.git"),
Branch: String("master"),
Branch: String("main"),
Timeout: Int64(60),
Visibility: String("public"),
Private: Bool(false),
Expand Down Expand Up @@ -375,7 +375,7 @@ func ExampleRepoService_Add() {
FullName: String("github/octocat"),
Link: String("https://github.com/github/octocat"),
Clone: String("https://github.com/github/octocat.git"),
Branch: String("master"),
Branch: String("main"),
Timeout: Int64(60),
Visibility: String("public"),
Private: Bool(false),
Expand Down

0 comments on commit 393ca32

Please sign in to comment.