From 8db1109cc6dfa9be16b267e5ec45739285bc8945 Mon Sep 17 00:00:00 2001 From: Sergey Lukjanov Date: Tue, 18 Aug 2015 17:27:25 +0300 Subject: [PATCH] Add separated dir with fake plugin scenario for gate testing Change-Id: I765fd2bfada54a15278b7e78b43167b998476591 --- etc/scenario/gate/README.rst | 0 etc/scenario/gate/credentials.yaml.mako | 10 ++++++++ etc/scenario/gate/edp.yaml.mako | 15 +++++++++++ etc/scenario/gate/fake.yaml.mako | 34 +++++++++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 etc/scenario/gate/README.rst create mode 100644 etc/scenario/gate/credentials.yaml.mako create mode 100644 etc/scenario/gate/edp.yaml.mako create mode 100644 etc/scenario/gate/fake.yaml.mako diff --git a/etc/scenario/gate/README.rst b/etc/scenario/gate/README.rst new file mode 100644 index 00000000..e69de29b diff --git a/etc/scenario/gate/credentials.yaml.mako b/etc/scenario/gate/credentials.yaml.mako new file mode 100644 index 00000000..2b790618 --- /dev/null +++ b/etc/scenario/gate/credentials.yaml.mako @@ -0,0 +1,10 @@ +credentials: + os_username: ${OS_USERNAME} + os_password: ${OS_PASSWORD} + os_tenant: ${OS_TENANT_NAME} + os_auth_url: ${OS_AUTH_URL} + +network: + type: ${network_type} + private_network: ${network_private_name} + public_network: ${network_public_name} diff --git a/etc/scenario/gate/edp.yaml.mako b/etc/scenario/gate/edp.yaml.mako new file mode 100644 index 00000000..6a98b568 --- /dev/null +++ b/etc/scenario/gate/edp.yaml.mako @@ -0,0 +1,15 @@ +edp_jobs_flow: + fake: + - type: Pig + input_datasource: + type: swift + source: etc/edp-examples/edp-pig/trim-spaces/data/input + output_datasource: + type: hdfs + destination: /user/hadoop/edp-output + main_lib: + type: swift + source: etc/edp-examples/edp-pig/trim-spaces/example.pig + additional_libs: + - type: swift + source: etc/edp-examples/edp-pig/trim-spaces/udf.jar diff --git a/etc/scenario/gate/fake.yaml.mako b/etc/scenario/gate/fake.yaml.mako new file mode 100644 index 00000000..ab0f4a17 --- /dev/null +++ b/etc/scenario/gate/fake.yaml.mako @@ -0,0 +1,34 @@ +clusters: + - plugin_name: fake + plugin_version: "0.1" + image: ${fake_plugin_image} + node_group_templates: + - name: aio + flavor: ${ci_flavor_id} + node_processes: + - namenode + - jobtracker + - datanode + - tasktracker + volumes_per_node: 2 + volumes_size: 2 + auto_security_group: true + - name: worker + flavor: ${ci_flavor_id} + node_processes: + - datanode + - jobtracker + volumes_per_node: 2 + volumes_size: 2 + auto_security_group: true + cluster_template: + name: fake01 + node_group_templates: + aio: 1 + cluster: + name: ${cluster_name} + scaling: + - operation: add + node_group: worker + size: 1 + edp_jobs_flow: fake