-
Notifications
You must be signed in to change notification settings - Fork 24
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
[WIP] SRVKP-6191 new basic test for http resolver #370
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
PIPELINES-31 | ||
# http resolvers spec | ||
|
||
Pre condition: | ||
* Validate Operator should be installed | ||
## Test the functionality of http resolvers: PIPELINES-31-TC01 | ||
Tags: e2e, sanity | ||
Component: Resolvers | ||
Level: Integration | ||
Type: Functional | ||
Importance: High | ||
|
||
Steps: | ||
* Verify ServiceAccount "pipeline" exist | ||
* Create | ||
|S.NO|resource_dir | | ||
|----|-----------------------------------------------------------------| | ||
|1 |testdata/resolvers/pipelineruns/http-resolver-pipelinerun.yaml | | ||
* Verify pipelinerun | ||
|S.NO|pipeline_run_name |status |check_label_propagation | | ||
|----|-----------------------------------|--------------------------------------| | ||
|1 |http-resolver-pipelinerun |successful |no | |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: tekton.dev/v1 | ||
kind: PipelineRun | ||
metadata: | ||
name: http-resolver-pipelinerun | ||
spec: | ||
pipelineRef: | ||
name: http-resolver-pipeline | ||
params: | ||
- name: url | ||
value: "https://github.com/tektoncd/catalog" | ||
- name: method | ||
value: "GET" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pipeline doesn't have any params |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: tekton.dev/v1 | ||
kind: Pipeline | ||
metadata: | ||
name: http-resolver-pipeline | ||
spec: | ||
tasks: | ||
- name: resolve-http | ||
taskRef: | ||
resolver: http | ||
params: | ||
url: https://github.com/tektoncd/catalog | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this will not work |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: tekton.dev/v1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this good for? You are not using HTTP resolver anywhere 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this task is not used at all |
||
kind: Task | ||
metadata: | ||
name: http-resolver-task | ||
annotations: | ||
tekton.dev/resolver: "http" | ||
spec: | ||
steps: | ||
- name: http-request | ||
image: curlimages/curl:latest | ||
script: | | ||
#!/bin/sh | ||
echo "Making HTTP Request" | ||
curl -X GET https://github.com/openshift-pipelines/release-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test it? This will fail because pipeline doesn't exist