Merge "RefStack UI should display DefCore guideline status."
This commit is contained in:
commit
3f08865327
@ -21,6 +21,11 @@
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<div ng-if="ctrl.capabilities">
|
||||
<strong>Guideline Status:</strong>
|
||||
{{ctrl.capabilities.status | capitalize}}
|
||||
</div>
|
||||
|
||||
<div ng-show="ctrl.capabilities">
|
||||
<strong>Corresponding OpenStack Releases:</strong>
|
||||
<ul class="list-inline">
|
||||
|
@ -51,6 +51,11 @@
|
||||
<!-- End User Options -->
|
||||
|
||||
<br />
|
||||
<div ng-if="ctrl.capabilityData">
|
||||
<strong>Guideline Status:</strong>
|
||||
{{ctrl.capabilityData.status | capitalize}}
|
||||
</div>
|
||||
|
||||
<strong>Corresponding OpenStack Releases:</strong>
|
||||
<ul class="list-inline">
|
||||
<li ng-repeat="release in ctrl.capabilityData.releases">
|
||||
|
@ -78,6 +78,7 @@ describe('Refstack controllers', function () {
|
||||
function () {
|
||||
var fakeCaps = {
|
||||
'schema': '1.3',
|
||||
'status': 'approved',
|
||||
'platform': {'required': ['compute']},
|
||||
'components': {
|
||||
'compute': {
|
||||
@ -99,6 +100,8 @@ describe('Refstack controllers', function () {
|
||||
expect(ctrl.versionList).toEqual(['2015.04.json',
|
||||
'2015.03.json']);
|
||||
expect(ctrl.capabilities).toEqual(fakeCaps);
|
||||
// The guideline status should be approved.
|
||||
expect(ctrl.capabilities.status).toEqual('approved');
|
||||
var expectedTargetCaps = {
|
||||
'cap_id_1': 'required',
|
||||
'cap_id_2': 'advisory',
|
||||
@ -217,6 +220,7 @@ describe('Refstack controllers', function () {
|
||||
var fakeCapabilityResponse = {
|
||||
'platform': {'required': ['compute']},
|
||||
'schema': '1.2',
|
||||
'status': 'approved',
|
||||
'components': {
|
||||
'compute': {
|
||||
'required': ['cap_id_1'],
|
||||
@ -256,6 +260,8 @@ describe('Refstack controllers', function () {
|
||||
expect(ctrl.versionList).toEqual(['2015.04.json',
|
||||
'2015.03.json']);
|
||||
expect(ctrl.capabilityData).toEqual(fakeCapabilityResponse);
|
||||
// The guideline status should be approved.
|
||||
expect(ctrl.capabilityData.status).toEqual('approved');
|
||||
expect(ctrl.schemaVersion).toEqual('1.2');
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user