Added tests for REST API. Fixed issues with Web UI.
This commit is contained in:
parent
cf928abf09
commit
7c2119578c
@ -51,7 +51,6 @@
|
||||
{% block modal-footer %}
|
||||
{% if wizard.steps.prev %}
|
||||
<input type="submit" class="btn btn-primary pull-right" value="{% trans 'Create' %}"/>
|
||||
<button name="wizard_goto_step" class="btn btn-small" type="submit" value="{{ wizard.steps.prev }}">{% trans "< Back" %}</button>
|
||||
{% else %}
|
||||
<button name="wizard_goto_step" class="btn btn-small" type="submit" value="{{ wizard.steps.next }}">{% trans "Next >" %}</button>
|
||||
{% endif %}
|
||||
|
@ -1,8 +1,10 @@
|
||||
import untitests
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import untitest2
|
||||
from datacenters_page import DataCentersPage
|
||||
|
||||
|
||||
class SanityTests():
|
||||
class SanityTests(unittest2.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.page = DataCentersPage()
|
||||
@ -45,4 +47,8 @@ class SanityTests():
|
||||
'1-recovery_password': 'AkvareL707!'}
|
||||
self.page.create_service('Active Directory', ad_parameters)
|
||||
|
||||
assert self.page.find_service(name) is not None
|
||||
assert self.page.find_service(name) is not None
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest2.main()
|
Loading…
x
Reference in New Issue
Block a user