Skip to content

Commit

Permalink
Fix tkn and opc task
Browse files Browse the repository at this point in the history
  • Loading branch information
savitaashture authored and openshift-merge-bot[bot] committed Jun 18, 2024
1 parent 7e6dc99 commit 2f1238e
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
name: task-openshift
version: 0.1.0
version: 0.1.1
description: Contains the Tekton Tasks to manage CLI related tasks
type: application
2 changes: 1 addition & 1 deletion scripts/opc-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ source "$(dirname ${BASH_SOURCE[0]})/opc-common.sh"
[[ -f ${WORKSPACES_KUBECONFIG_DIR_PATH}/kubeconfig ]] && \
export KUBECONFIG=${WORKSPACES_KUBECONFIG_DIR_PATH}/kubeconfig

${PARAMS_SCRIPT}
eval ${PARAMS_SCRIPT}
2 changes: 1 addition & 1 deletion scripts/tkn-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ source "$(dirname ${BASH_SOURCE[0]})/tkn-common.sh"
[[ -f ${WORKSPACES_KUBECONFIG_DIR_PATH}/kubeconfig ]] && \
export KUBECONFIG=${WORKSPACES_KUBECONFIG_DIR_PATH}/kubeconfig

${PARAMS_SCRIPT}
eval ${PARAMS_SCRIPT}
14 changes: 13 additions & 1 deletion test/e2e/opc-e2e.bats
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,19 @@ source ./test/helper/helper.sh

# waiting a few seconds before asserting results
sleep 15


run kubectl delete taskrun --all
assert_success

run tkn task start opc \
--use-param-defaults \
--skip-optional-workspace \
--showlog >&3
assert_success

# waiting a few seconds before asserting results
sleep 15

# assering the taskrun status, making sure all steps have been successful
declare tmpl_file="${BASE_DIR}/go-template.tpl"
# the following template is able to extract information from TaskRun and PipelineRun resources,
Expand Down
12 changes: 12 additions & 0 deletions test/e2e/tkn-e2e.bats
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ source ./test/helper/helper.sh
--showlog >&3
assert_success

# waiting a few seconds before asserting results
sleep 15

run kubectl delete taskrun --all
assert_success

run tkn task start tkn \
--use-param-defaults \
--skip-optional-workspace \
--showlog >&3
assert_success

# waiting a few seconds before asserting results
sleep 15

Expand Down

0 comments on commit 2f1238e

Please sign in to comment.