Skip to content

Commit

Permalink
SRVKP-6191 new basic test for http resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
jayesh-garg committed Sep 10, 2024
1 parent 6e72a72 commit b0c711e
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 1 deletion.
40 changes: 40 additions & 0 deletions specs/pipelines/http-resolvers.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
PIPELINES-29
# http resolvers spec

Pre condition:
* Validate Operator should be installed
## Test the functionality of http resolvers
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 |

## Test the functionality of http resolvers with authentication
Tags: e2e
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-private.yaml |
* Verify pipelinerun
|S.NO|pipeline_run_name |status |check_label_propagation |
|----|-----------------------------------|--------------------------------------|
|1 |http-resolver-pipelinerun-private |successful |no |
3 changes: 2 additions & 1 deletion tc_spec_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
"PIPELINES-25": "specs/pipelines/bundles-resolvers.spec",
"PIPELINES-26": "specs/results/results.spec",
"PIPELINES-27": "specs/chains/chains.spec",
"PIPELINES-28": "specs/operator/manual-approval-gate.spec"
"PIPELINES-28": "specs/operator/manual-approval-gate.spec",
"PIPELINES-29": "specs/pipelines/git-resolvers.spec"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
name: http-resolver-pipelinerun-private
spec:
pipelineRef:
resolver: http
params:
- name: name
value: resolver-pipeline
- name: repo
value: test-private
- name: org
value: openshift-pipelines
- name: revision
value: main
- name: pathInRepo
value: resolver-pipeline.yaml
16 changes: 16 additions & 0 deletions testdata/resolvers/pipelineruns/http-resolver-pipelinerun.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
name: http-resolver-pipelinerun
spec:
pipelineRef:
resolver: http
params:
- name: name
value: http-resolver-pipeline
- name: url
value: https://github.com/openshift-pipelines/release-tests
- name: revision
value: master
- name: pathInRepo
value: testdata/resolvers/pipelines/http-resolver-pipeline.yaml
18 changes: 18 additions & 0 deletions testdata/resolvers/pipelines/http-resolver-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: tekton.dev/v1
kind: Pipeline
metadata:
name: resolver-pipeline
spec:
tasks:
- name: http-resolver-task
taskRef:
resolver: http
params:
- name: name
value: http-resolver-task
- name: url
value: https://github.com/openshift-pipelines/release-tests
- name: revision
value: master
- name: pathInRepo
value: testdata/resolvers/tasks/http-resolver-task.yaml
10 changes: 10 additions & 0 deletions testdata/resolvers/tasks/http-resolver-task.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: http-resolver-task
spec:
taskRef:
name: git-clone
podTemplate:
securityContext:
fsGroup: 65532

0 comments on commit b0c711e

Please sign in to comment.