Add reporting about access to admin UI

Change-Id: If784fb7d27223a9f691db987097b0f63794604d4
This commit is contained in:
Dmytro Dovbii
2015-04-15 12:13:59 +03:00
parent fc827e50b2
commit 0db37b5f1d

View File

@@ -67,8 +67,14 @@ Methods:
Body:
- If: $.publish
Then:
- $adminEndpoints: $.applicationEndpoints.where($.scope = $this._scope and $.containerPort = 10081).
select(format('http://{0}:{1}', $.address, $.port))
- $endpoints: $.applicationEndpoints.where($.scope = $this._scope and $.containerPort = 80).
select(format('http://{0}:{1}', $.address, $.port))
- $._environment.reporter.report($this, 'PHPZendServer {0} is available at {1}'.format($.name, join(', ', $endpoints)))
- $._environment.reporter.report($this, 'PHPZendServer {0} Admin UI is available at {1}'.format(
$.name, join(', ', $adminEndpoints)))
- $._environment.reporter.report($this, 'PHPZendServer {0} is available at {1}'.format(
$.name, join(', ', $endpoints)))
Else:
- $._environment.reporter.report($this, 'PHPZendServer {0} has deployed but is not accessible from outside'.format($.name))