~landscape/landscape-client/landscape-client-12.05-0ubuntu1-quantal

« back to all changes in this revision

Viewing changes to landscape/monitor/tests/test_networkdevice.py

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2010-07-28 08:14:02 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20100728081402-2ygupluqwc2bbe8j
Tags: 1.5.4-0ubuntu0.10.10.0
* New upstream version (LP: #610744):

  - The Eucalyptus management plugin reports the output of the
    'euca-describe-availability-zones verbose' command, which includes
    information about the available instance types and the maximum
    number of each instance type that the cloud can support (LP: #599338)

  - Check if the package directory exists before trying to check the
    package changer lock in the dbus-proxy. This fixes a bug when upgrading
    a dbus-landscape which never registered (LP: #603514).

  - Allow an LDS server to bootstrap new cloud instances with its own CA,
    which is picked up by the client, written to a file on the instance, and
    used in subsequent exchanges with the server (LP: #605079).

  - Skip loopback interface when reporting device info (LP: #608314)

  - Disable landscape-sysinfo when load is more than 1 (LP: #608278)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from landscape.tests.helpers import LandscapeTest, MonitorHelper
 
2
from landscape.lib.network import get_active_device_info
2
3
from landscape.monitor.networkdevice import NetworkDevice
3
4
 
4
5
 
 
6
def test_get_active_device_info():
 
7
    # Don't skip any interfaces for the tests
 
8
    return get_active_device_info(skipped_interfaces=())
 
9
 
 
10
 
5
11
class NetworkDeviceTest(LandscapeTest):
6
12
 
7
13
    helpers = [MonitorHelper]
8
14
 
9
15
    def setUp(self):
10
16
        super(NetworkDeviceTest, self).setUp()
11
 
        self.plugin = NetworkDevice()
 
17
        self.plugin = NetworkDevice(test_get_active_device_info)
12
18
        self.monitor.add(self.plugin)
13
19
        self.broker_service.message_store.set_accepted_types(
14
20
            [self.plugin.message_type])