diff --git a/rally-jobs/extra/applications/HelloReporter/io.murano.apps.HelloReporter/Classes/HelloReporter.yaml b/rally-jobs/extra/applications/HelloReporter/io.murano.apps.HelloReporter/Classes/HelloReporter.yaml new file mode 100644 index 00000000..2eca9d0d --- /dev/null +++ b/rally-jobs/extra/applications/HelloReporter/io.murano.apps.HelloReporter/Classes/HelloReporter.yaml @@ -0,0 +1,25 @@ +Namespaces: + =: io.murano.apps + std: io.murano + sys: io.murano.system + + +Name: HelloReporter + +Extends: std:Application + +Properties: + name: + Contract: $.string().notNull() + +Workflow: + initialize: + Body: + - $.environment: $.find(std:Environment).require() + + deploy: + Body: + - If: not $.getAttr(deployed, false) + Then: + - $.environment.reporter.report($this, 'Starting deployment! Hello!') + - $.setAttr(deployed, True) diff --git a/rally-jobs/extra/applications/HelloReporter/io.murano.apps.HelloReporter/UI/ui.yaml b/rally-jobs/extra/applications/HelloReporter/io.murano.apps.HelloReporter/UI/ui.yaml new file mode 100644 index 00000000..3836655a --- /dev/null +++ b/rally-jobs/extra/applications/HelloReporter/io.murano.apps.HelloReporter/UI/ui.yaml @@ -0,0 +1,19 @@ +Version: 2 + +Application: + ?: + type: io.murano.apps.HelloReporter + name: $.appConfiguration.name + +Forms: + - appConfiguration: + fields: + - name: name + type: string + label: Application Name + description: >- + Enter a desired name for the application. Just A-Z, a-z, 0-9, dash and + underline are allowed + - name: unitNamingPattern + type: string + required: false diff --git a/rally-jobs/extra/applications/HelloReporter/io.murano.apps.HelloReporter/manifest.yaml b/rally-jobs/extra/applications/HelloReporter/io.murano.apps.HelloReporter/manifest.yaml new file mode 100644 index 00000000..47e4d510 --- /dev/null +++ b/rally-jobs/extra/applications/HelloReporter/io.murano.apps.HelloReporter/manifest.yaml @@ -0,0 +1,10 @@ +Format: 1.0 +Type: Application +FullName: io.murano.apps.HelloReporter +Name: HelloReporter +Description: | + HelloReporter test app. +Author: 'Mirantis, Inc' +Tags: [App, Test, HelloWorld] +Classes: + io.murano.apps.HelloReporter: HelloReporter.yaml diff --git a/rally-jobs/task-murano.yaml b/rally-jobs/task-murano.yaml index 3d77f234..6ca4d9f6 100644 --- a/rally-jobs/task-murano.yaml +++ b/rally-jobs/task-murano.yaml @@ -26,3 +26,23 @@ sla: failure_rate: max: 0 + + MuranoEnvironments.create_and_deploy_environment: + - + args: + packages_per_env: 2 + runner: + type: "constant" + times: 8 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 2 + murano_packages: + app_package: "/home/jenkins/.rally/extra/applications/HelloReporter/io.murano.apps.HelloReporter/" + roles: + - "admin" + sla: + failure_rate: + max: 0