Added tests for REST API. Fixed issues with Web UI.

This commit is contained in:
Timur Nurlygayanov 2013-03-18 11:55:46 +04:00
parent cf928abf09
commit 7c2119578c
2 changed files with 9 additions and 4 deletions

View File

@ -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 %}

View File

@ -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()