~free.ekanayaka/landscape-client/jaunty-proposed

« back to all changes in this revision

Viewing changes to landscape/package/tests/helpers.py

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2009-09-21 17:59:31 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090921175931-4ucv40j9ro26i3lm
Tags: 1.3.2.3-0ubuntu0.9.04.0
* New upstream release (LP: #347983):
  - Don't clear the hash_id_requests table upon resynchronize (LP #417122)
  - Include the README file in landscape-client (LP: #396260)
  - Fix client capturing stderr from run_command when constructing
    hash-id-databases url (LP: #397480)
  - Use substvars to conditionally depend on update-motd or
    libpam-modules (LP: #393454)
  - Fix reporting wrong version to the server (LP: #391225)
  - The init script does not wait for the network to be available
    before checking for EC2 user data (LP: #383336)
  - When the broker is restarted by the watchdog, the state of the client
    is inconsistent (LP: #380633)
  - Package stays unknown forever in the client with hash-id-databases
    support (LP: #381356)
  - Standard error not captured when calling smart-update (LP: #387441)
  - Changer calls reporter without switching groups, just user (LP: #388092)
  - Run smart update in the package-reporter instead of having a cronjob (LP: #362355)
  - Package changer does not inherit proxy settings (LP: #381241)
  - The ./test script doesn't work in landscape-client (LP: #381613)
  - The source package should build on all supported releases (LP: #385098)
  - Strip smart update's output (LP: #387331)
  - The fetch() timeout isn't based on activity (#389224)
  - Client can use a UUID of "None" when fetching the hash-id-database (LP: #381291)
  - Registration should use the fqdn rather than just the hostname (LP: #385730)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    def set_up(self, test_case):
22
22
        super(SmartFacadeHelper, self).set_up(test_case)
23
23
 
24
 
        from landscape.package.facade import SmartFacade
 
24
        from landscape.package.facade import SmartFacade, make_deb_dir_channel
25
25
 
26
26
        class Facade(SmartFacade):
27
27
            repository_dir = test_case.repository_dir
28
28
 
29
29
            def smart_initialized(self):
30
 
                smart.sysconf.set("channels",
31
 
                                  {"alias": {"type": "deb-dir",
32
 
                                             "path": test_case.repository_dir}})
 
30
                self.reset_channels()
 
31
                self.add_channel("alias",
 
32
                                 make_deb_dir_channel(test_case.repository_dir))
33
33
 
34
34
        test_case.Facade = Facade
35
35
        test_case.facade = Facade({"datadir": test_case.smart_dir})