Skip to content

Commit

Permalink
feat(tekton): locked property support
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Gleeson <brian.gleeson@ie.ibm.com>
  • Loading branch information
briangleeson committed May 22, 2024
1 parent 6d6af08 commit 5aefc0e
Show file tree
Hide file tree
Showing 6 changed files with 906 additions and 822 deletions.
29 changes: 28 additions & 1 deletion examples/test_cd_tekton_pipeline_v2_examples.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# (C) Copyright IBM Corp. 2023.
# (C) Copyright IBM Corp. 2024.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -82,6 +82,7 @@ def test_create_tekton_pipeline_example(self):
"""
try:
print("\ncreate_tekton_pipeline() result:")

# begin-create_tekton_pipeline

worker_identity_model = {
Expand All @@ -108,6 +109,7 @@ def test_get_tekton_pipeline_example(self):
"""
try:
print("\nget_tekton_pipeline() result:")

# begin-get_tekton_pipeline

response = cd_tekton_pipeline_service.get_tekton_pipeline(
Expand All @@ -129,6 +131,7 @@ def test_update_tekton_pipeline_example(self):
"""
try:
print("\nupdate_tekton_pipeline() result:")

# begin-update_tekton_pipeline

worker_identity_model = {
Expand Down Expand Up @@ -159,6 +162,7 @@ def test_list_tekton_pipeline_runs_example(self):
"""
try:
print("\nlist_tekton_pipeline_runs() result:")

# begin-list_tekton_pipeline_runs

all_results = []
Expand Down Expand Up @@ -187,6 +191,7 @@ def test_create_tekton_pipeline_run_example(self):
"""
try:
print("\ncreate_tekton_pipeline_run() result:")

# begin-create_tekton_pipeline_run

pipeline_run_trigger_model = {
Expand Down Expand Up @@ -221,6 +226,7 @@ def test_get_tekton_pipeline_run_example(self):
"""
try:
print("\nget_tekton_pipeline_run() result:")

# begin-get_tekton_pipeline_run

response = cd_tekton_pipeline_service.get_tekton_pipeline_run(
Expand All @@ -244,6 +250,7 @@ def test_cancel_tekton_pipeline_run_example(self):
"""
try:
print("\ncancel_tekton_pipeline_run() result:")

# begin-cancel_tekton_pipeline_run

response = cd_tekton_pipeline_service.cancel_tekton_pipeline_run(
Expand All @@ -267,6 +274,7 @@ def test_rerun_tekton_pipeline_run_example(self):
"""
try:
print("\nrerun_tekton_pipeline_run() result:")

# begin-rerun_tekton_pipeline_run

response = cd_tekton_pipeline_service.rerun_tekton_pipeline_run(
Expand All @@ -289,6 +297,7 @@ def test_get_tekton_pipeline_run_logs_example(self):
"""
try:
print("\nget_tekton_pipeline_run_logs() result:")

# begin-get_tekton_pipeline_run_logs

response = cd_tekton_pipeline_service.get_tekton_pipeline_run_logs(
Expand All @@ -311,6 +320,7 @@ def test_get_tekton_pipeline_run_log_content_example(self):
"""
try:
print("\nget_tekton_pipeline_run_log_content() result:")

# begin-get_tekton_pipeline_run_log_content

response = cd_tekton_pipeline_service.get_tekton_pipeline_run_log_content(
Expand All @@ -334,6 +344,7 @@ def test_list_tekton_pipeline_definitions_example(self):
"""
try:
print("\nlist_tekton_pipeline_definitions() result:")

# begin-list_tekton_pipeline_definitions

response = cd_tekton_pipeline_service.list_tekton_pipeline_definitions(
Expand All @@ -355,6 +366,7 @@ def test_create_tekton_pipeline_definition_example(self):
"""
try:
print("\ncreate_tekton_pipeline_definition() result:")

# begin-create_tekton_pipeline_definition

definition_source_properties_model = {
Expand Down Expand Up @@ -388,6 +400,7 @@ def test_get_tekton_pipeline_definition_example(self):
"""
try:
print("\nget_tekton_pipeline_definition() result:")

# begin-get_tekton_pipeline_definition

response = cd_tekton_pipeline_service.get_tekton_pipeline_definition(
Expand All @@ -410,6 +423,7 @@ def test_replace_tekton_pipeline_definition_example(self):
"""
try:
print("\nreplace_tekton_pipeline_definition() result:")

# begin-replace_tekton_pipeline_definition

definition_source_properties_model = {
Expand Down Expand Up @@ -443,6 +457,7 @@ def test_list_tekton_pipeline_properties_example(self):
"""
try:
print("\nlist_tekton_pipeline_properties() result:")

# begin-list_tekton_pipeline_properties

response = cd_tekton_pipeline_service.list_tekton_pipeline_properties(
Expand All @@ -467,6 +482,7 @@ def test_create_tekton_pipeline_properties_example(self):
"""
try:
print("\ncreate_tekton_pipeline_properties() result:")

# begin-create_tekton_pipeline_properties

response = cd_tekton_pipeline_service.create_tekton_pipeline_properties(
Expand All @@ -491,6 +507,7 @@ def test_get_tekton_pipeline_property_example(self):
"""
try:
print("\nget_tekton_pipeline_property() result:")

# begin-get_tekton_pipeline_property

response = cd_tekton_pipeline_service.get_tekton_pipeline_property(
Expand All @@ -513,6 +530,7 @@ def test_replace_tekton_pipeline_property_example(self):
"""
try:
print("\nreplace_tekton_pipeline_property() result:")

# begin-replace_tekton_pipeline_property

response = cd_tekton_pipeline_service.replace_tekton_pipeline_property(
Expand All @@ -538,6 +556,7 @@ def test_list_tekton_pipeline_triggers_example(self):
"""
try:
print("\nlist_tekton_pipeline_triggers() result:")

# begin-list_tekton_pipeline_triggers

response = cd_tekton_pipeline_service.list_tekton_pipeline_triggers(
Expand All @@ -562,6 +581,7 @@ def test_create_tekton_pipeline_trigger_example(self):
"""
try:
print("\ncreate_tekton_pipeline_trigger() result:")

# begin-create_tekton_pipeline_trigger

worker_identity_model = {
Expand Down Expand Up @@ -593,6 +613,7 @@ def test_get_tekton_pipeline_trigger_example(self):
"""
try:
print("\nget_tekton_pipeline_trigger() result:")

# begin-get_tekton_pipeline_trigger

response = cd_tekton_pipeline_service.get_tekton_pipeline_trigger(
Expand All @@ -615,6 +636,7 @@ def test_update_tekton_pipeline_trigger_example(self):
"""
try:
print("\nupdate_tekton_pipeline_trigger() result:")

# begin-update_tekton_pipeline_trigger

trigger_patch_model = {
Expand Down Expand Up @@ -642,6 +664,7 @@ def test_duplicate_tekton_pipeline_trigger_example(self):
"""
try:
print("\nduplicate_tekton_pipeline_trigger() result:")

# begin-duplicate_tekton_pipeline_trigger

response = cd_tekton_pipeline_service.duplicate_tekton_pipeline_trigger(
Expand All @@ -665,6 +688,7 @@ def test_list_tekton_pipeline_trigger_properties_example(self):
"""
try:
print("\nlist_tekton_pipeline_trigger_properties() result:")

# begin-list_tekton_pipeline_trigger_properties

response = (
Expand Down Expand Up @@ -692,6 +716,7 @@ def test_create_tekton_pipeline_trigger_properties_example(self):
"""
try:
print("\ncreate_tekton_pipeline_trigger_properties() result:")

# begin-create_tekton_pipeline_trigger_properties

response = (
Expand Down Expand Up @@ -719,6 +744,7 @@ def test_get_tekton_pipeline_trigger_property_example(self):
"""
try:
print("\nget_tekton_pipeline_trigger_property() result:")

# begin-get_tekton_pipeline_trigger_property

response = cd_tekton_pipeline_service.get_tekton_pipeline_trigger_property(
Expand All @@ -742,6 +768,7 @@ def test_replace_tekton_pipeline_trigger_property_example(self):
"""
try:
print("\nreplace_tekton_pipeline_trigger_property() result:")

# begin-replace_tekton_pipeline_trigger_property

response = (
Expand Down
Loading

0 comments on commit 5aefc0e

Please sign in to comment.