~landscape/landscape-client/landscape-client-12.04-0ubuntu0.12.04.0

« back to all changes in this revision

Viewing changes to landscape/tests/test_configuration.py

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Hervé
  • Date: 2011-01-14 10:11:04 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20110114101104-ps2j8z04e9j8zwth
Tags: 11.01-0ubuntu0.11.04.0
* New upstream version (LP: #702928)

  - Use a better load check for the sysinfo wrapper, taking into account the
    number of cores (LP: #643565).

  - Add an option to bootstrap cloud instances using cloud-init
    (LP: #701972).

  - Fix packaging for Natty (LP: #688115).

  - Force deletion of all the persist data for the monitoring plugins at
    resynchronization, instead of relying each one of them to do
    (LP: #688161).

  - Don't send the mount-activity message to the server anymore
    (LP: #688514).

  - Workaround a new behavior in NetworkManager where getfqdn would report
    localhost instead of useful hostname (LP: #649142).

Show diffs side-by-side

added added

removed removed

Lines of Context:
738
738
        config = self.get_config(["--silent", "-t", "rex"])
739
739
        self.assertRaises(ConfigurationError, setup, config)
740
740
 
 
741
    def test_silent_setup_with_otp(self):
 
742
        """
 
743
        If the OTP is specified, there is no need to pass the account name and
 
744
        the computer title.
 
745
        """
 
746
        sysvconfig_mock = self.mocker.patch(SysVConfig)
 
747
        sysvconfig_mock.set_start_on_boot(True)
 
748
        self.mocker.replay()
 
749
 
 
750
        config = self.get_config(["--silent", "--otp", "otp1"])
 
751
        setup(config)
 
752
 
 
753
        self.assertEqual("otp1", config.otp)
 
754
 
741
755
    def test_silent_script_users_imply_script_execution_plugin(self):
742
756
        """
743
757
        If C{--script-users} is specified, without C{ScriptExecution} in the