From 393ca3262d597c937cf8eb4ba9149a6affd27470 Mon Sep 17 00:00:00 2001 From: Kelly Merrick Date: Thu, 5 Oct 2023 08:20:20 -0500 Subject: [PATCH] test: update main to be default (#267) --- vela/admin_test.go | 2 +- vela/build_test.go | 6 +++--- vela/deployment_test.go | 4 ++-- vela/hook_test.go | 4 ++-- vela/pipeline_test.go | 4 ++-- vela/repo_test.go | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/vela/admin_test.go b/vela/admin_test.go index e1f5306..5406ff0 100644 --- a/vela/admin_test.go +++ b/vela/admin_test.go @@ -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"), diff --git a/vela/build_test.go b/vela/build_test.go index d433d76..bd2001a 100644 --- a/vela/build_test.go +++ b/vela/build_test.go @@ -236,8 +236,8 @@ func TestBuild_Add_201(t *testing.T) { Author: String("OctoKitty"), Email: String("octokitty@github.com"), 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"), @@ -609,7 +609,7 @@ func ExampleBuildService_Add() { Author: String("someone"), Email: String("someone@example.com"), 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"), diff --git a/vela/deployment_test.go b/vela/deployment_test.go index 6198ece..39b73b0 100644 --- a/vela/deployment_test.go +++ b/vela/deployment_test.go @@ -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"), @@ -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"), diff --git a/vela/hook_test.go b/vela/hook_test.go index 630828e..50024ba 100644 --- a/vela/hook_test.go +++ b/vela/hook_test.go @@ -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"), } @@ -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"), } diff --git a/vela/pipeline_test.go b/vela/pipeline_test.go index 473c3fc..ae436a1 100644 --- a/vela/pipeline_test.go +++ b/vela/pipeline_test.go @@ -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), @@ -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), diff --git a/vela/repo_test.go b/vela/repo_test.go index e22a840..2fe630d 100644 --- a/vela/repo_test.go +++ b/vela/repo_test.go @@ -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), @@ -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),