Merge "Refactor test plugin app"

This commit is contained in:
Jenkins
2015-06-04 12:13:53 +00:00
committed by Gerrit Code Review
4 changed files with 10 additions and 12 deletions

View File

@@ -16,25 +16,25 @@ Properties:
instance:
Contract: $.class(res:Instance).notNull()
Workflow:
Methods:
initialize:
Body:
- $.environment: $.find(std:Environment).require()
- $._environment: $.find(std:Environment).require()
deploy:
Body:
- If: !yaql "not bool($.getAttr(deployed))"
Then:
- $this.find(std:Environment).reporter.report($this, 'Creating VM ')
- $._environment.reporter.report($this, 'Creating VM ')
- $securityGroupIngress:
- ToPort: 22
FromPort: 22
IpProtocol: tcp
External: True
- $.environment.securityGroupManager.addGroupIngress($securityGroupIngress)
External: true
- $._environment.securityGroupManager.addGroupIngress($securityGroupIngress)
- $.instance.deploy()
- $resources: new(sys:Resources)
- $this.find(std:Environment).reporter.report($this, 'Test VM is installed')
- $._environment.reporter.report($this, 'Test VM is installed')
- $.host: $.instance.ipAddresses[0]
- $.user: 'root'
- $.setAttr(deployed, True)
- $.setAttr(deployed, true)

View File

@@ -8,7 +8,7 @@ Extends:
- res:LinuxMuranoInstance
- ImageValidatorMixin
Workflow:
Methods:
deploy:
Body:
- $.validateImage()

View File

@@ -11,7 +11,7 @@ Properties:
requiredType:
Contract: $.string().notNull()
Workflow:
Methods:
validateImage:
Body:
- Try:

View File

@@ -76,6 +76,4 @@ Forms:
label: Hostname
type: string
required: false
widgetMedia:
js: ['muranodashboard/js/support_placeholder.js']
css: {all: ['muranodashboard/css/support_placeholder.css']}