Merge "Refactor test plugin app"
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -8,7 +8,7 @@ Extends:
|
||||
- res:LinuxMuranoInstance
|
||||
- ImageValidatorMixin
|
||||
|
||||
Workflow:
|
||||
Methods:
|
||||
deploy:
|
||||
Body:
|
||||
- $.validateImage()
|
||||
|
||||
@@ -11,7 +11,7 @@ Properties:
|
||||
requiredType:
|
||||
Contract: $.string().notNull()
|
||||
|
||||
Workflow:
|
||||
Methods:
|
||||
validateImage:
|
||||
Body:
|
||||
- Try:
|
||||
|
||||
@@ -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']}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user