Merge lp:~matsubara/maas/packaging.precise.sru into lp:~maas-maintainers/maas/packaging.precise.sru

Proposed by Diogo Matsubara
Status: Merged
Approved by: Diogo Matsubara
Approved revision: 163
Merged at revision: 163
Proposed branch: lp:~matsubara/maas/packaging.precise.sru
Merge into: lp:~maas-maintainers/maas/packaging.precise.sru
Diff against target: 106 lines (+0/-80)
4 files modified
debian/control (+0/-1)
debian/tests/control (+0/-2)
debian/tests/maas-integration.py (+0/-72)
debian/tests/maas-package-test (+0/-5)
To merge this branch: bzr merge lp:~matsubara/maas/packaging.precise.sru
Reviewer Review Type Date Requested Status
Raphaël Badin (community) Approve
Review via email: mp+148680@code.launchpad.net

Commit message

removes the debian/tests dir and removes the XS-Testsuite header

Description of the change

This branch removes the debian/tests dir as we're maintaining the test in its own branch. Also removes the XS-Testsuite header from the package so the ubuntu qa scripts won't pick it up and automatically create jenkins jobs for the package.

To post a comment you must log in.
Revision history for this message
Raphaël Badin (rvb) :
review: Approve
Revision history for this message
Raphaël Badin (rvb) wrote :

IIRC there is no tarmac job for lp:~maas-maintainers/maas/packaging.precise.sru so you need to merge this manually.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/control'
--- debian/control 2013-02-02 00:25:55 +0000
+++ debian/control 2013-02-15 12:00:39 +0000
@@ -10,7 +10,6 @@
10 python-django10 python-django
11Standards-Version: 3.9.311Standards-Version: 3.9.3
12X-Python-Version: >= 2.712X-Python-Version: >= 2.7
13XS-Testsuite: autopkgtest
14Homepage: https://launchpad.net/maas13Homepage: https://launchpad.net/maas
1514
16Package: maas15Package: maas
1716
=== removed directory 'debian/tests'
=== removed file 'debian/tests/control'
--- debian/tests/control 2012-09-10 19:28:15 +0000
+++ debian/tests/control 1970-01-01 00:00:00 +0000
@@ -1,2 +0,0 @@
1Tests: maas-package-test
2Depends: @, python-nose, xvfb, python-pip
30
=== removed file 'debian/tests/maas-integration.py'
--- debian/tests/maas-integration.py 2012-09-20 02:22:33 +0000
+++ debian/tests/maas-integration.py 1970-01-01 00:00:00 +0000
@@ -1,72 +0,0 @@
1# TODO
2# - send ipmi commands to turn on/off nodes
3# - run import pxe files
4# - check node states once they're on/off
5# - check node state changes (declared -> commissionig -> ready)
6import os
7from subprocess import check_output
8import sys
9from unittest import TestCase
10
11from pyvirtualdisplay import Display
12from sst.actions import (
13 assert_url, assert_text_contains, assert_title_contains, click_button,
14 get_element, go_to, write_textfield)
15
16
17sys.path.insert(0, "/usr/share/maas")
18os.environ['DJANGO_SETTINGS_MODULE'] = 'maas.settings'
19from maasserver.models import User
20
21MAAS_URL = "http://10.98.0.13/MAAS"
22ADMIN_USER = "admin"
23PASSWORD = "test"
24
25
26class TestMAASIntegration(TestCase):
27
28 def setUp(self):
29 self.display = Display(visible=0, size=(1280, 1024))
30 self.display.start()
31
32 def tearDown(self):
33 self.display.stop()
34
35 def createadmin(self):
36 """Run sudo maas createsuperuser."""
37 cmd_output = check_output(
38 ["sudo", "maas", "createsuperuser", "--username=%s" % ADMIN_USER,
39 "--email=example@canonical.com", "--noinput"])
40 ## Set password for admin user.
41 try:
42 admin = User.objects.get(username=ADMIN_USER)
43 except User.DoesNotExist:
44 admin = User(username=ADMIN_USER)
45 admin.set_password(PASSWORD)
46 admin.save()
47 return cmd_output
48
49 def installation(self):
50 # Check the installation worked.
51 go_to(MAAS_URL)
52 assert_text_contains(
53 get_element(tag="body"), "No admin user has been created yet")
54
55 def createadmin_and_login(self):
56 ## Creates the admin user.
57 output = self.createadmin()
58 self.assertEqual(output, 'Superuser created successfully.')
59 ## Login with the newly created admin user
60 go_to(MAAS_URL)
61 assert_text_contains(
62 get_element(tag="body"), "Login to lenovo-RD230-01 MAAS")
63 write_textfield("id_username", ADMIN_USER)
64 write_textfield("id_password", PASSWORD)
65 click_button("Login")
66 assert_url("MAAS/")
67 assert_title_contains("Dashboard")
68
69 def test_integration(self):
70 # Run the integration tests in order.
71 self.installation()
72 self.createadmin_and_login()
730
=== removed file 'debian/tests/maas-package-test'
--- debian/tests/maas-package-test 2012-09-20 02:22:33 +0000
+++ debian/tests/maas-package-test 1970-01-01 00:00:00 +0000
@@ -1,5 +0,0 @@
1#!/bin/sh
2set -e -u
3exec 2>&1
4pip install sst
5nosetests debian/tests/maas-integration.py

Subscribers

People subscribed via source and target branches