Merge "Simple test for the tuskar.boxes_progress"
This commit is contained in:
commit
86b1977609
@ -0,0 +1,27 @@
|
|||||||
|
|
||||||
|
horizon.addInitFunction(function () {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
module("Tuskar boxes progress (tuskar.boxes_progress.js)");
|
||||||
|
|
||||||
|
test("update_progress", function () {
|
||||||
|
var data = {
|
||||||
|
"nodes": [{
|
||||||
|
"uuid": "I'm sorry, Dave.",
|
||||||
|
"cpu_arch": "HAL 9000",
|
||||||
|
"role_slug": "exterminate",
|
||||||
|
"state_slug": "smug",
|
||||||
|
"node_title": "I'm afraid I can't do that.",
|
||||||
|
"cpus": 1,
|
||||||
|
"memory_mb": 0,
|
||||||
|
"local_gb": 1000,
|
||||||
|
"state_icon": "fa-circle-o"
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
|
||||||
|
tuskar.boxes_progress.update_progress(data);
|
||||||
|
|
||||||
|
// No logic to test here, just make sure the function runs without errors.
|
||||||
|
expect(0);
|
||||||
|
});
|
||||||
|
});
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
{% comment %}Load test modules here.{% endcomment %}
|
{% comment %}Load test modules here.{% endcomment %}
|
||||||
<script type="text/javascript" src="{{ STATIC_URL }}tuskar_boxes/tests/tuskar.boxes.js"></script>
|
<script type="text/javascript" src="{{ STATIC_URL }}tuskar_boxes/tests/tuskar.boxes.js"></script>
|
||||||
|
<script type="text/javascript" src="{{ STATIC_URL }}tuskar_boxes/tests/tuskar.boxes_progress.js"></script>
|
||||||
{% comment %}End test modules.{% endcomment %}
|
{% comment %}End test modules.{% endcomment %}
|
||||||
|
|
||||||
{% include "horizon/_scripts.html" %}
|
{% include "horizon/_scripts.html" %}
|
||||||
@ -22,7 +23,6 @@
|
|||||||
<h2 id="qunit-userAgent"></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id="qunit-tests"></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
<div id="qunit-fixture">
|
<div id="qunit-fixture">
|
||||||
|
|
||||||
<div class="boxes-available-roles"></div>
|
<div class="boxes-available-roles"></div>
|
||||||
|
|
||||||
<div class="boxes-flavor" data-flavor="baremetal">
|
<div class="boxes-flavor" data-flavor="baremetal">
|
||||||
@ -74,5 +74,6 @@
|
|||||||
<div class="boxes-node boxes-role-controller" data-toggle="popover" title="Controller node" data-content="<dl><dt>Node UUID</dt><dd>9262d80e-7a25-4ded-abca-3261a77dbae1</dd><dt>Architecture</dt><dd>x86_64</dd><dt>CPUs</dt><dd>1</dt><dt>RAM (MB)</dt><dd>4096</dd><dt>HDD (GB)</dt><dd>40</dd></dl>"><i class="fa fa-lg fa-check"></i></div>
|
<div class="boxes-node boxes-role-controller" data-toggle="popover" title="Controller node" data-content="<dl><dt>Node UUID</dt><dd>9262d80e-7a25-4ded-abca-3261a77dbae1</dd><dt>Architecture</dt><dd>x86_64</dd><dt>CPUs</dt><dd>1</dt><dt>RAM (MB)</dt><dd>4096</dd><dt>HDD (GB)</dt><dd>40</dd></dl>"><i class="fa fa-lg fa-check"></i></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% include "tuskar_boxes/overview/_node_info_js.html" %}
|
||||||
</div>
|
</div>
|
||||||
</body></html>
|
</body></html>
|
||||||
|
Loading…
Reference in New Issue
Block a user