~ubuntu-branches/debian/jessie/mysql-utilities/jessie

« back to all changes in this revision

Viewing changes to mysql-test/t/copy_user_parameters.py

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-05-14 15:02:12 UTC
  • mfrom: (4.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130514150212-cfj83guqqo0kx7l0
Tags: 1.1.2-1
* Upload to unstable.
* "X-Python-Version: >= 2.7" to stop using deprecated python-2.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        if not res:
43
43
            raise MUTLibError("%s: failed" % comment)
44
44
 
 
45
        cmd_str = "mysqluserclone.py --source=%s" % \
 
46
                  self.build_connection_string(self.server2)
 
47
        comment = "Test case 4 - use --dump and --list to show all users"
 
48
        res = self.run_test_case(0, cmd_str + " --list --dump --format=csv",
 
49
                                 comment)
 
50
        if not res:
 
51
            raise MUTLibError("%s: failed" % comment)
 
52
            
 
53
        self.remove_result("root,")
 
54
        self.remove_result("# Dumping grants for user 'root'")
 
55
        self.remove_result("GRANT ALL PRIVILEGES ON *.* TO 'root'")
 
56
        self.remove_result("GRANT PROXY ON ''@'' TO 'root'")
 
57
        self.remove_result("# Cannot show grants for user")
 
58
 
45
59
        return True
46
60
 
47
61
    def get_result(self):