diff options
Diffstat (limited to 'k8s/plugin_testing_blueprints/operations')
6 files changed, 51 insertions, 0 deletions
diff --git a/k8s/plugin_testing_blueprints/operations/README.md b/k8s/plugin_testing_blueprints/operations/README.md new file mode 100644 index 0000000..895427d --- /dev/null +++ b/k8s/plugin_testing_blueprints/operations/README.md @@ -0,0 +1,14 @@ +# Parameter Files for Testing Operations +The k8s plugin supports some operations beyond just installation and uninstallation: +- `scale`: change the number of replicas of component +- `update_image`: change the Docker image used for the component +- `policy_update`: update a component's configuration in Consul and notify the component of the change + +The files in this directory contain parameters for testing the additional operations. +The specific values in the files are tied to values in the blueprints in the `../blueprints` directory. + +## Invoking an operation +Invoking the operations here involves running the Cloudify `execute_operation` workflow. + + `cfy executions start -p `_/path/to/operation_file_` -d `_name_of_cloudify_deployment_` execute_operation` + diff --git a/k8s/plugin_testing_blueprints/operations/policy_update-bad.yaml b/k8s/plugin_testing_blueprints/operations/policy_update-bad.yaml new file mode 100644 index 0000000..29b5bc3 --- /dev/null +++ b/k8s/plugin_testing_blueprints/operations/policy_update-bad.yaml @@ -0,0 +1,11 @@ +operation: dcae.interfaces.policy.policy_update +operation_kwargs: + updated_policies: + - policy_id: org.onap.policy008 + policy_body: + policyVersion: "1463" + policyName: "org.onap.policy007.1463.xml" + config: {"type": "NoParking", "start": "0100", "end": "0630"} +node_ids: + - "web_server" +allow_kwargs_override: true diff --git a/k8s/plugin_testing_blueprints/operations/policy_update.yaml b/k8s/plugin_testing_blueprints/operations/policy_update.yaml new file mode 100644 index 0000000..ef91df2 --- /dev/null +++ b/k8s/plugin_testing_blueprints/operations/policy_update.yaml @@ -0,0 +1,11 @@ +operation: dcae.interfaces.policy.policy_update +operation_kwargs: + updated_policies: + - policy_id: org.onap.policy007 + policy_body: + policyVersion: "1463" + policyName: "org.onap.policy007.1463.xml" + config: {"type": "NoParking", "start": "0100", "end": "0630"} +node_ids: + - "web_server" +allow_kwargs_override: true diff --git a/k8s/plugin_testing_blueprints/operations/scaleto1.yaml b/k8s/plugin_testing_blueprints/operations/scaleto1.yaml new file mode 100644 index 0000000..1cbe4a2 --- /dev/null +++ b/k8s/plugin_testing_blueprints/operations/scaleto1.yaml @@ -0,0 +1,5 @@ +operation: scale +operation_kwargs: + replicas: 1 +node_ids: + - "web_server" diff --git a/k8s/plugin_testing_blueprints/operations/scaleto3.yaml b/k8s/plugin_testing_blueprints/operations/scaleto3.yaml new file mode 100644 index 0000000..e188225 --- /dev/null +++ b/k8s/plugin_testing_blueprints/operations/scaleto3.yaml @@ -0,0 +1,5 @@ +operation: scale +operation_kwargs: + replicas: 3 +node_ids: + - "web_server" diff --git a/k8s/plugin_testing_blueprints/operations/update_image-1.15.yaml b/k8s/plugin_testing_blueprints/operations/update_image-1.15.yaml new file mode 100644 index 0000000..27a2c22 --- /dev/null +++ b/k8s/plugin_testing_blueprints/operations/update_image-1.15.yaml @@ -0,0 +1,5 @@ +operation: update_image +operation_kwargs: + image: nginx:1.15 +node_ids: + - "web_server" |