~free.ekanayaka/landscape-client/jaunty-1.5.4-0ubuntu0.9.04.0

« back to all changes in this revision

Viewing changes to landscape/tests/test_watchdog.py

  • Committer: Bazaar Package Importer
  • Author(s): Christopher Armstrong
  • Date: 2008-12-11 17:11:08 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20081211171108-14cdra1twl5t1f37
Tags: 1.0.25-0ubuntu0.9.04
* New upstream release supporting custom graphs (LP: #306360)
  - Multiple custom graphs can be used at the same time (LP: #307314)
  - PATH is now set for scripts in script execution (LP: #257018)
* debian/landscape-common.postinst: Only chown parts of /var/lib/landscape
  because we now store files in it that should maintain their ownership
  (LP: #307321).
* debian/landscape-client.postinst: Work around chfn/system user problem
  by not specifying a --gecos (LP: #238755)
* debian/landscape-client.logrotate: logrotate no longer reports spurious
  errors when the client isn't running (LP: #271767)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1104
1104
        chown(path(), 1234, 5678)
1105
1105
        chown(path("messages"), 1234, 5678)
1106
1106
        chown(path("package"), 1234, 5678)
 
1107
        chown(path("custom-graph-scripts"), 1234, 5678)
1107
1108
        chown(path("package/database"), 1234, 5678)
1108
1109
        chown(log_dir, 1234, 5678)
1109
1110
 
1114
1115
 
1115
1116
        self.assertTrue(os.path.isdir(path()))
1116
1117
        self.assertTrue(os.path.isdir(path("package")))
 
1118
        self.assertTrue(os.path.isdir(path("messages")))
 
1119
        self.assertTrue(os.path.isdir(path("custom-graph-scripts")))
1117
1120
        self.assertTrue(os.path.isdir(log_dir))
1118
1121
        self.assertTrue(os.path.isfile(path("package/database")))
1119
1122
 
1123
1126
        self.assertEquals(mode(), 0755)
1124
1127
        self.assertEquals(mode("messages"), 0755)
1125
1128
        self.assertEquals(mode("package"), 0755)
 
1129
        self.assertEquals(mode("custom-graph-scripts"), 0755)
1126
1130
        self.assertEquals(mode("package/database"), 0644)
1127
1131
 
1128
1132
    def test_log_notification(self):