-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix --dry-run with --filename tests for all start commands
- Loading branch information
1 parent
6e008c2
commit 60e89c1
Showing
8 changed files
with
462 additions
and
54 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
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
101 changes: 101 additions & 0 deletions
101
...ine/testdata/TestPipelineStart_ExecuteCommand-Dry_Run_with_output=json_-f_v1alpha1.golden
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 |
---|---|---|
@@ -0,0 +1,101 @@ | ||
{ | ||
"kind": "PipelineRun", | ||
"apiVersion": "tekton.dev/v1alpha1", | ||
"metadata": { | ||
"generateName": "test-pipeline-run-", | ||
"namespace": "ns", | ||
"creationTimestamp": null | ||
}, | ||
"spec": { | ||
"pipelineSpec": { | ||
"resources": [ | ||
{ | ||
"name": "source-repo", | ||
"type": "git" | ||
}, | ||
{ | ||
"name": "web-image", | ||
"type": "image" | ||
} | ||
], | ||
"tasks": [ | ||
{ | ||
"name": "build-skaffold-web", | ||
"taskRef": { | ||
"name": "build-docker-image-from-git-source" | ||
}, | ||
"resources": { | ||
"inputs": [ | ||
{ | ||
"name": "docker-source", | ||
"resource": "source-repo" | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"name": "builtImage", | ||
"resource": "web-image" | ||
} | ||
] | ||
}, | ||
"params": [ | ||
{ | ||
"name": "pathToDockerFile", | ||
"value": "Dockerfile" | ||
}, | ||
{ | ||
"name": "pathToContext", | ||
"value": "/workspace/docker-source/examples/microservices/leeroy-web" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "deploy-web", | ||
"taskRef": { | ||
"name": "deploy-using-kubectl" | ||
}, | ||
"resources": { | ||
"inputs": [ | ||
{ | ||
"name": "source", | ||
"resource": "source-repo" | ||
}, | ||
{ | ||
"name": "image", | ||
"resource": "web-image", | ||
"from": [ | ||
"build-skaffold-web" | ||
] | ||
} | ||
] | ||
}, | ||
"params": [ | ||
{ | ||
"name": "path", | ||
"value": "/workspace/source/examples/microservices/leeroy-web/kubernetes/deployment.yaml" | ||
}, | ||
{ | ||
"name": "yamlPathToImage", | ||
"value": "spec.template.spec.containers[0].image" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"resources": [ | ||
{ | ||
"name": "source-repo", | ||
"resourceRef": { | ||
"name": "scaffold-git" | ||
} | ||
}, | ||
{ | ||
"name": "web-image", | ||
"resourceRef": { | ||
"name": "imageres" | ||
} | ||
} | ||
] | ||
}, | ||
"status": {} | ||
} |
53 changes: 53 additions & 0 deletions
53
.../testdata/TestPipelineV1beta1Start_ExecuteCommand-Dry_Run_using_--filename_v1beta1.golden
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: PipelineRun | ||
metadata: | ||
creationTimestamp: null | ||
generateName: test-pipeline-run- | ||
namespace: ns | ||
spec: | ||
pipelineSpec: | ||
resources: | ||
- name: source-repo | ||
type: git | ||
- name: web-image | ||
type: image | ||
tasks: | ||
- name: build-skaffold-web | ||
params: | ||
- name: pathToDockerFile | ||
value: Dockerfile | ||
- name: pathToContext | ||
value: /workspace/docker-source/examples/microservices/leeroy-web | ||
resources: | ||
inputs: | ||
- name: docker-source | ||
resource: source-repo | ||
outputs: | ||
- name: builtImage | ||
resource: web-image | ||
taskRef: | ||
name: build-docker-image-from-git-source | ||
- name: deploy-web | ||
params: | ||
- name: path | ||
value: /workspace/source/examples/microservices/leeroy-web/kubernetes/deployment.yaml | ||
- name: yamlPathToImage | ||
value: spec.template.spec.containers[0].image | ||
resources: | ||
inputs: | ||
- name: source | ||
resource: source-repo | ||
- from: | ||
- build-skaffold-web | ||
name: image | ||
resource: web-image | ||
taskRef: | ||
name: deploy-using-kubectl | ||
resources: | ||
- name: source-repo | ||
resourceRef: | ||
name: scaffold-git | ||
- name: web-image | ||
resourceRef: | ||
name: imageres | ||
status: {} |
101 changes: 101 additions & 0 deletions
101
...stdata/TestPipelineV1beta1Start_ExecuteCommand-Dry_Run_with_output=json_-f_v1beta1.golden
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 |
---|---|---|
@@ -0,0 +1,101 @@ | ||
{ | ||
"kind": "PipelineRun", | ||
"apiVersion": "tekton.dev/v1beta1", | ||
"metadata": { | ||
"generateName": "test-pipeline-run-", | ||
"namespace": "ns", | ||
"creationTimestamp": null | ||
}, | ||
"spec": { | ||
"pipelineSpec": { | ||
"resources": [ | ||
{ | ||
"name": "source-repo", | ||
"type": "git" | ||
}, | ||
{ | ||
"name": "web-image", | ||
"type": "image" | ||
} | ||
], | ||
"tasks": [ | ||
{ | ||
"name": "build-skaffold-web", | ||
"taskRef": { | ||
"name": "build-docker-image-from-git-source" | ||
}, | ||
"resources": { | ||
"inputs": [ | ||
{ | ||
"name": "docker-source", | ||
"resource": "source-repo" | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"name": "builtImage", | ||
"resource": "web-image" | ||
} | ||
] | ||
}, | ||
"params": [ | ||
{ | ||
"name": "pathToDockerFile", | ||
"value": "Dockerfile" | ||
}, | ||
{ | ||
"name": "pathToContext", | ||
"value": "/workspace/docker-source/examples/microservices/leeroy-web" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "deploy-web", | ||
"taskRef": { | ||
"name": "deploy-using-kubectl" | ||
}, | ||
"resources": { | ||
"inputs": [ | ||
{ | ||
"name": "source", | ||
"resource": "source-repo" | ||
}, | ||
{ | ||
"name": "image", | ||
"resource": "web-image", | ||
"from": [ | ||
"build-skaffold-web" | ||
] | ||
} | ||
] | ||
}, | ||
"params": [ | ||
{ | ||
"name": "path", | ||
"value": "/workspace/source/examples/microservices/leeroy-web/kubernetes/deployment.yaml" | ||
}, | ||
{ | ||
"name": "yamlPathToImage", | ||
"value": "spec.template.spec.containers[0].image" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"resources": [ | ||
{ | ||
"name": "source-repo", | ||
"resourceRef": { | ||
"name": "scaffold-git" | ||
} | ||
}, | ||
{ | ||
"name": "web-image", | ||
"resourceRef": { | ||
"name": "imageres" | ||
} | ||
} | ||
] | ||
}, | ||
"status": {} | ||
} |
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.