~ubuntu-branches/ubuntu/raring/maas/raring

« back to all changes in this revision

Viewing changes to src/maasserver/tests/test_views_settings_clusters.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-01-30 14:07:52 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20130130140752-k3gksqcql7104whh
Tags: 1.2+bzr1370+dfsg-0ubuntu1
* New upstream release:
  - MAAS file storage mechanism is shifting from a single shared
    namespace to a per-user namespace. Operators of the majority
    of MAAS systems will not notice any change. However, operators
    of the most complex installations may find that a new
    "shared-environment" user is created, and that some resources
    are reassigned to it, such as API credentials and SSH public
    keys. This provides a transitional environment that mimics the
    behaviour of a shared namespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
        self.assertFalse(
136
136
            NodeGroupInterface.objects.filter(id=interface.id).exists())
137
137
 
 
138
    def test_interface_delete_supports_interface_alias(self):
 
139
        nodegroup = factory.make_node_group(
 
140
            management=NODEGROUPINTERFACE_MANAGEMENT.UNMANAGED)
 
141
        interface = factory.make_node_group_interface(
 
142
                nodegroup=nodegroup, interface="eth0:0")
 
143
        delete_link = reverse(
 
144
            'cluster-interface-delete',
 
145
            args=[nodegroup.uuid, interface.interface])
 
146
        # The real test is that reverse() does not blow up when the
 
147
        # interface's name contains an alias.
 
148
        self.assertIsInstance(delete_link, basestring)
 
149
 
138
150
 
139
151
class ClusterInterfaceEditTest(AdminLoggedInTestCase):
140
152
 
155
167
            reload_object(interface),
156
168
            MatchesStructure.byEquality(**data))
157
169
 
 
170
    def test_interface_edit_supports_interface_alias(self):
 
171
        nodegroup = factory.make_node_group(
 
172
            management=NODEGROUPINTERFACE_MANAGEMENT.UNMANAGED)
 
173
        interface = factory.make_node_group_interface(
 
174
                nodegroup=nodegroup, interface="eth0:0")
 
175
        edit_link = reverse(
 
176
            'cluster-interface-edit',
 
177
            args=[nodegroup.uuid, interface.interface])
 
178
        # The real test is that reverse() does not blow up when the
 
179
        # interface's name contains an alias.
 
180
        self.assertIsInstance(edit_link, basestring)
 
181
 
158
182
 
159
183
class ClusterInterfaceCreateTest(AdminLoggedInTestCase):
160
184