Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarlonGamez committed Sep 6, 2019
1 parent b23d1fc commit e10a90d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/skaffold/generate_pipeline/tasks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func TestGenerateBuildTasks(t *testing.T) {
expectedTasks: []*tekton.Task{
{
TypeMeta: metav1.TypeMeta{Kind: "Task", APIVersion: "tekton.dev/v1alpha1"},
ObjectMeta: metav1.ObjectMeta{Name: "skaffold-build"},
ObjectMeta: metav1.ObjectMeta{Name: "skaffold-build-0"},
Spec: tekton.TaskSpec{
Inputs: &tekton.Inputs{Resources: []tekton.TaskResource{{Name: "source", Type: "git"}}},
Outputs: &tekton.Outputs{Resources: []tekton.TaskResource{{Name: "source", Type: "git"}}},
Expand All @@ -89,7 +89,7 @@ func TestGenerateBuildTasks(t *testing.T) {
},
{
TypeMeta: metav1.TypeMeta{Kind: "Task", APIVersion: "tekton.dev/v1alpha1"},
ObjectMeta: metav1.ObjectMeta{Name: "skaffold-build"},
ObjectMeta: metav1.ObjectMeta{Name: "skaffold-build-1"},
Spec: tekton.TaskSpec{
Inputs: &tekton.Inputs{Resources: []tekton.TaskResource{{Name: "source", Type: "git"}}},
Outputs: &tekton.Outputs{Resources: []tekton.TaskResource{{Name: "source", Type: "git"}}},
Expand Down Expand Up @@ -129,7 +129,7 @@ func TestGenerateBuildTasks(t *testing.T) {
expectedTasks: []*tekton.Task{
{
TypeMeta: metav1.TypeMeta{Kind: "Task", APIVersion: "tekton.dev/v1alpha1"},
ObjectMeta: metav1.ObjectMeta{Name: "skaffold-build"},
ObjectMeta: metav1.ObjectMeta{Name: "skaffold-build-0"},
Spec: tekton.TaskSpec{
Inputs: &tekton.Inputs{Resources: []tekton.TaskResource{{Name: "source", Type: "git"}}},
Outputs: &tekton.Outputs{Resources: []tekton.TaskResource{{Name: "source", Type: "git"}}},
Expand Down Expand Up @@ -248,7 +248,7 @@ func TestGenerateDeployTasks(t *testing.T) {
expectedTasks: []*tekton.Task{
{
TypeMeta: metav1.TypeMeta{Kind: "Task", APIVersion: "tekton.dev/v1alpha1"},
ObjectMeta: metav1.ObjectMeta{Name: "skaffold-deploy"},
ObjectMeta: metav1.ObjectMeta{Name: "skaffold-deploy-0"},
Spec: tekton.TaskSpec{
Inputs: &tekton.Inputs{Resources: []tekton.TaskResource{{Name: "source", Type: "git"}}},
Steps: []corev1.Container{
Expand All @@ -264,7 +264,7 @@ func TestGenerateDeployTasks(t *testing.T) {
},
{
TypeMeta: metav1.TypeMeta{Kind: "Task", APIVersion: "tekton.dev/v1alpha1"},
ObjectMeta: metav1.ObjectMeta{Name: "skaffold-deploy"},
ObjectMeta: metav1.ObjectMeta{Name: "skaffold-deploy-1"},
Spec: tekton.TaskSpec{
Inputs: &tekton.Inputs{Resources: []tekton.TaskResource{{Name: "source", Type: "git"}}},
Steps: []corev1.Container{
Expand Down Expand Up @@ -301,7 +301,7 @@ func TestGenerateDeployTasks(t *testing.T) {
expectedTasks: []*tekton.Task{
{
TypeMeta: metav1.TypeMeta{Kind: "Task", APIVersion: "tekton.dev/v1alpha1"},
ObjectMeta: metav1.ObjectMeta{Name: "skaffold-deploy"},
ObjectMeta: metav1.ObjectMeta{Name: "skaffold-deploy-0"},
Spec: tekton.TaskSpec{
Inputs: &tekton.Inputs{Resources: []tekton.TaskResource{{Name: "source", Type: "git"}}},
Steps: []corev1.Container{
Expand Down

0 comments on commit e10a90d

Please sign in to comment.