Example #1
0
    def testMatchingName(self):
        tmpfile = utils.PathJoin(self.tmpdir, "ssconf_cluster_name")

        for content in ["cluster.example.com", "cluster.example.com\n\n"]:
            utils.WriteFile(tmpfile, data=content)
            ssconf.VerifyClusterName("cluster.example.com",
                                     _cfg_location=self.tmpdir)
Example #2
0
 def testMissingFile(self):
     tmploc = utils.PathJoin(self.tmpdir, "does-not-exist")
     ssconf.VerifyClusterName(NotImplemented, _cfg_location=tmploc)