Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ClusterTask Tests from Test Builders to Structs #1168

Merged
merged 1 commit into from
Sep 18, 2020
Merged

Update ClusterTask Tests from Test Builders to Structs #1168

merged 1 commit into from
Sep 18, 2020

Conversation

danielhelfand
Copy link
Member

Part of #1145

Migrating unit tests for tkn clustertask from test builders to structs.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests (if functionality changed/added)
  • Run the code checkers with make check
  • Regenerate the manpages, docs and go formatting with make generated
  • Commit messages follow commit message best practices

Release Notes

NONE

@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Sep 15, 2020
@tekton-robot tekton-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Sep 15, 2020
Comment on lines -516 to -530
{
name: "Dry run with no output v1beta1",
command: []string{"start", "clustertask-2",
"-i", "my-repo=git",
"-o", "code-image=output-image",
"-l", "key=value",
"-s=svc1",
"--dry-run",
},
dynamic: seeds[4].dynamicClient,
input: seeds[4].pipelineClient,
inputStream: nil,
wantError: false,
goldenFile: true,
},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this test was intended for. The name suggests it's a v1beta1 test, but it's part of the v1alpha1 suite.

@@ -1,23 +0,0 @@
apiVersion: tekton.dev/v1beta1
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This golden file appears to be unused.

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 16, 2020
Copy link
Contributor

@piyush-garg piyush-garg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 18, 2020
@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: piyush-garg, vdemeester

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [piyush-garg,vdemeester]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot merged commit 9e59b20 into tektoncd:master Sep 18, 2020
danielhelfand added a commit that referenced this pull request Sep 30, 2020
#1167 | [Daniel Helfand] update condition tests from test builders to structs | 2020/09/16-11:10
#1154 | [vinamra28] Enable auto-select support in ClusterTaskDescribe if only one is present | 2020/09/16-17:00
#1154 | [vinamra28] Enable auto-select support in TaskRunDescribe if only one is present | 2020/09/16-17:00
#1173 | [Daniel Helfand] update README versions for v0.12.1 | 2020/09/16-17:21
#1176 | [Bart] Artwork/Logo added to the top of the README. | 2020/09/16-18:14
#1172 | [Chmouel Boudjnah] Fix rpm build for release | 2020/09/17-14:34
#1168 | [Daniel Helfand] update clustertask tests from test builders to structs | 2020/09/18-13:26
#1177 | [Vincent Demeester] tests: import pipeline internal builders 🏒 | 2020/09/18-17:31
#1179 | [vinamra28] Use --prefix-name option for tkn clustertask start | 2020/09/18-23:07
#1182 | [Daniel Helfand] update pipelineresource tests from test builders to structs | 2020/09/21-14:29
null | [Vincent Demeester] Remove release-note block indentation in PR template 🌮 | 2020/09/22-11:57
null | [savitaashture] Modify tkn version to accept ldflag and namespace flag | 2020/09/24-10:14
null | [savitaashture] Fix deployment fetch issue for multiple namespaces | 2020/09/25-11:54
null | [PuneetPunamiya] This patch fixes: | 2020/09/28-19:27
null | [Divyansh42] Modify tkn version output to hide Triggers and Dashboard version if they are not installed and added required unit tests. | 2020/09/29-04:57
null | [Piyush Garg] Bump pipeline and triggers dep | 2020/09/29-13:55
null | [Divyansh42] Enable auto-select support in pipelineDescribe if only one pipeline is present | 2020/09/29-17:29
null | [vinamra28] Add --use-taskrun for ClusterTask start | 2020/09/30-11:08
null | [Divyansh42] Enable auto select support in PipelineRunDescribe if only one PipelineRun is present | 2020/09/30-13:13

Signed-off-by: Daniel Helfand <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants