def setUpClass(cls):
        MozReviewWebDriverTest.setUpClass()

        try:
            self = cls('run')
            self.create_users([
                ('*****@*****.**', 'password1', 'Jeremy Smith [:jsmith]'),
                ('*****@*****.**', 'password2', 'Mary Jane [:mary]'),
                ('*****@*****.**', 'password3', 'John Doe [:jdoe]'),
            ])

            self.create_ldap(b'*****@*****.**',
                             b'mjane', 2001, b'Mary Jane')

            bb = self.user_bugzilla('*****@*****.**')
            bb.create_bug('TestProduct', 'TestComponent', 'First Bug')

            lr = self.create_basic_repo('*****@*****.**', 'mjane')
            lr.write('foo', 'first change')
            lr.run(['commit', '-m', 'Bug 1 - Test try;r=jsmith'])
            lr.run(['push', '--config', 'reviewboard.autopublish=true'])
            lr.write('foo', 'second change')
            lr.run(['commit', '-m', 'second change;r=jsmith'])
            lr.run(['push', '--config', 'reviewboard.autopublish=true'])
        except Exception:
            MozReviewWebDriverTest.tearDownClass()
            raise
Beispiel #2
0
    def setUpClass(cls):
        MozReviewWebDriverTest.setUpClass()

        try:
            self = cls('run')
            self.create_users([
                ('*****@*****.**', 'password', 'Joe Smith [:joe]'),
                ('*****@*****.**', 'password', 'Jane Doe [:jane]'),
                ('*****@*****.**', 'password', 'Bob Jones [:bob]'),
                ('*****@*****.**', 'password', 'Peter Nonick'),
                ('*****@*****.**', 'password', 'Joey Somebody [:joey]'),
            ])

            self.create_ldap(b'*****@*****.**', b'bob', 2001, b'Bob User')

            bb = self.user_bugzilla('*****@*****.**')
            bb.create_bug('TestProduct', 'TestComponent', 'First Bug')
            lr = self.create_basic_repo('*****@*****.**', 'bob')

            lr.write('foo', 'first')
            lr.run(['commit', '-m', 'Bug 1 - First commit'])
            lr.run(['push'])
        except Exception:
            MozReviewWebDriverTest.tearDownClass()
            raise
Beispiel #3
0
    def setUpClass(cls):
        MozReviewWebDriverTest.setUpClass()

        try:
            self = cls('run')
            self.create_users([
                ('*****@*****.**', 'password1', 'Jeremy Smith [:jsmith]'),
                ('*****@*****.**', 'password2', 'Mary Jane [:mary]'),
                ('*****@*****.**', 'password3', 'John Doe [:jdoe]'),
            ])

            self.create_ldap(b'*****@*****.**', b'mjane', 2001,
                             b'Mary Jane')

            bb = self.user_bugzilla('*****@*****.**')
            bb.create_bug('TestProduct', 'TestComponent', 'First Bug')

            lr = self.create_basic_repo('*****@*****.**', 'mjane')
            lr.write('foo', 'first change')
            lr.run(['commit', '-m', 'Bug 1 - Test try;r=jsmith'])
            lr.run(['push', '--config', 'reviewboard.autopublish=false'])
            lr.write('foo', 'second change')
            lr.run(['commit', '-m', 'second change;r=jsmith'])
            lr.run(['push', '--config', 'reviewboard.autopublish=false'])
        except Exception:
            MozReviewWebDriverTest.tearDownClass()
            raise
    def setUpClass(cls):
        MozReviewWebDriverTest.setUpClass()

        try:
            self = cls('run')
            self.create_users([
                ('*****@*****.**', 'password1', 'Jeremy Smith [:jsmith]'),
                ('*****@*****.**', 'password2', 'Mary Jane [:mary]'),
            ])
            self.create_ldap(b'*****@*****.**', b'mjane', 2001,
                             b'Mary Jane')
            mjb = self.user_bugzilla('*****@*****.**')
            mjb.create_bug('TestProduct', 'TestComponent', 'bug1')

            lr = self.create_basic_repo('*****@*****.**', 'mjane')
            lr.write('foo', 'first change\n')
            lr.run(['commit', '-m', 'Bug 1 - Test autocomplete; r?jsmith'])
            lr.write('foo', 'second change\n')
            lr.run(['commit', '-m', 'This is the second commit; r?jsmith'])
            lr.write('foo', 'third change\n')
            lr.run(['commit', '-m', 'This is the third commit; r?jsmith'])
            lr.run(['push'])
        except Exception:
            MozReviewWebDriverTest.tearDownClass()
            raise
    def setUpClass(cls):
        MozReviewWebDriverTest.setUpClass()

        try:
            self = cls('run')
            self.create_users([
                ('*****@*****.**', 'password1', 'Jeremy Smith [:jsmith]'),
                ('*****@*****.**', 'password2', 'Mary Jane [:mary]'),
            ])

            self.create_ldap(b'*****@*****.**', b'mjane', 2001, b'Mary Jane')

            bb = self.user_bugzilla('*****@*****.**')
            bb.create_bug('TestProduct', 'TestComponent', 'First Bug')

            lr = self.create_basic_repo('*****@*****.**', 'mjane')
            lr.write('foo', 'first change')
            lr.run(['commit', '-m', 'Bug 1 - Test try'])
            lr.run(['push'])

            # create try tree
            add_tree(self.mr.treestatus_url, 'try')
            close_tree(self.mr.treestatus_url, 'try')

        except Exception:
            MozReviewWebDriverTest.tearDownClass()
            raise
    def setUpClass(cls):
        MozReviewWebDriverTest.setUpClass()

        try:
            self = cls('run')
            self.create_users([
                ('*****@*****.**', 'password1', 'Jeremy Smith [:jsmith]'),
                ('*****@*****.**', 'password2', 'Mary Jane [:mary]'),
            ])

            self.create_ldap(b'*****@*****.**', b'mjane', 2001, b'Mary Jane')

            bb = self.user_bugzilla('*****@*****.**')
            bb.create_bug('TestProduct', 'TestComponent', 'First Bug')

            lr = self.create_basic_repo('*****@*****.**', 'mjane')
            lr.write('foo', 'first change')
            lr.run(['commit', '-m', 'Bug 1 - Test try'])
            lr.run(['push', '--config', 'reviewboard.autopublish=false'])

            # jsmith needs to push for the ldap association magic to happen
            self.create_ldap(b'*****@*****.**', b'jsmith', 2002, b'Jeremy')
            lr = self.create_basic_repo('*****@*****.**', 'jsmith',
                                        'test_repo2')
            lr.write('foo', 'first change')
            lr.run(['commit', '-m', 'Bug 1 - Test try'])
            lr.run(['push', '--config', 'reviewboard.autopublish=false'])
        except Exception:
            MozReviewWebDriverTest.tearDownClass()
            raise
    def setUpClass(cls):
        MozReviewWebDriverTest.setUpClass()

        try:
            self = cls("run")
            self.create_users(
                [
                    ("*****@*****.**", "password1", "Jeremy Smith [:jsmith]"),
                    ("*****@*****.**", "password2", "Mary Jane [:mary]"),
                ]
            )
            self.create_ldap(b"*****@*****.**", b"mjane", 2001, b"Mary Jane")
            mjb = self.user_bugzilla("*****@*****.**")
            mjb.create_bug("TestProduct", "TestComponent", "bug1")

            lr = self.create_basic_repo("*****@*****.**", "mjane")
            lr.write("foo", "first change\n")
            lr.run(["commit", "-m", "Bug 1 - Test autocomplete; r?jsmith"])
            lr.write("foo", "second change\n")
            lr.run(["commit", "-m", "This is the second commit; r?jsmith"])
            lr.write("foo", "third change\n")
            lr.run(["commit", "-m", "This is the third commit; r?jsmith"])
            lr.run(["push", "--config", "reviewboard.autopublish=true"])
        except Exception:
            MozReviewWebDriverTest.tearDownClass()
            raise
Beispiel #8
0
    def setUpClass(cls):
        MozReviewWebDriverTest.setUpClass()

        try:
            self = cls('run')
            self.create_users([
                ('*****@*****.**', 'password', 'Joe Smith [:joe]'),
                ('*****@*****.**', 'password', 'Jane Doe [:jane]'),
                ('*****@*****.**', 'password', 'Bob Jones [:bob]'),
                ('*****@*****.**', 'password', 'Peter Nonick'),
                ('*****@*****.**', 'password', 'Joey Somebody [:joey]'),
            ])

            self.create_ldap(b'*****@*****.**', b'bob', 2001, b'Bob User')

            bb = self.user_bugzilla('*****@*****.**')
            bb.create_bug('TestProduct', 'TestComponent', 'First Bug')
            lr = self.create_basic_repo('*****@*****.**', 'bob')

            lr.write('foo', 'first')
            lr.run(['commit', '-m', 'Bug 1 - First commit'])
            lr.run(['push', '--config', 'reviewboard.autopublish=false'])
        except Exception:
            MozReviewWebDriverTest.tearDownClass()
            raise
    def setUpClass(cls):
        MozReviewWebDriverTest.setUpClass()

        try:
            self = cls("run")
            self.create_users(
                [
                    ("*****@*****.**", "password1", "Jeremy Smith [:jsmith]"),
                    ("*****@*****.**", "password2", "Mary Jane [:mary]"),
                    ("*****@*****.**", "password3", "John Doe [:jdoe]"),
                ]
            )

            self.create_ldap(b"*****@*****.**", b"mjane", 2001, b"Mary Jane")

            bb = self.user_bugzilla("*****@*****.**")
            bb.create_bug("TestProduct", "TestComponent", "First Bug")

            lr = self.create_basic_repo("*****@*****.**", "mjane")
            lr.write("foo", "first change")
            lr.run(["commit", "-m", "Bug 1 - Test try;r=jsmith"])
            lr.run(["push", "--config", "reviewboard.autopublish=false"])
            lr.write("foo", "second change")
            lr.run(["commit", "-m", "second change;r=jsmith"])
            lr.run(["push", "--config", "reviewboard.autopublish=false"])
        except Exception:
            MozReviewWebDriverTest.tearDownClass()
            raise
    def setUpClass(cls):
        MozReviewWebDriverTest.setUpClass()

        try:
            self = cls('run')
            self.create_users([
                ('*****@*****.**', 'password1', 'Jeremy Smith [:jsmith]'),
                ('*****@*****.**', 'password2', 'Mary Jane [:mary]'),
            ])
            self.create_ldap(b'*****@*****.**',
                             b'mjane', 2001, b'Mary Jane')
            mjb = self.user_bugzilla('*****@*****.**')
            mjb.create_bug('TestProduct', 'TestComponent', 'bug1')

            lr = self.create_basic_repo('*****@*****.**', 'mjane')
            lr.write('foo', 'first change\n')
            lr.run(['commit', '-m', 'Bug 1 - Test autocomplete; r?jsmith'])
            lr.write('foo', 'second change\n')
            lr.run(['commit', '-m', 'This is the second commit; r?jsmith'])
            lr.write('foo', 'third change\n')
            lr.run(['commit', '-m', 'This is the third commit; r?jsmith'])
            lr.run(['push'])
        except Exception:
            MozReviewWebDriverTest.tearDownClass()
            raise
    def setUpClass(cls):
        MozReviewWebDriverTest.setUpClass()

        try:
            self = cls('run')
            self.create_users([
                ('*****@*****.**', 'password2', 'Mary Jane [:mary]'),
            ])

            self.create_ldap(b'*****@*****.**', b'mjane', 2001, b'Mary Jane')

            lr = self.create_basic_repo('*****@*****.**', 'mjane')
        except Exception:
            MozReviewWebDriverTest.tearDownClass()
            raise
    def setUpClass(cls):
        MozReviewWebDriverTest.setUpClass()

        try:
            self = cls('run')
            self.create_users([
                ('*****@*****.**', 'password', 'User One [:user1]'),
                ('*****@*****.**', 'password', 'User Two [:user2]'),
            ])

            self.create_ldap(b'*****@*****.**', b'user1', 2001, b'User One')

            bb = self.user_bugzilla('*****@*****.**')
            bb.create_bug('TestProduct', 'TestComponent', 'First Bug')

            lr = self.create_basic_repo('*****@*****.**', 'user1')
            lr.write('foo', 'first change')
            lr.run(['commit', '-m', 'Bug 1 - Commit 1. r?user2'])
            lr.write('foo', 'second change')
            lr.run(['commit', '-m', 'Bug 1 - Commit 2. r?user2'])
            lr.run(['push'])
        except Exception:
            MozReviewWebDriverTest.tearDownClass()
            raise
    def setUpClass(cls):
        MozReviewWebDriverTest.setUpClass()

        try:
            self = cls('run')
            self.create_users([
                ('*****@*****.**', 'password', 'User One [:user1]'),
                ('*****@*****.**', 'password', 'User Two [:user2]'),
            ])

            self.create_ldap(b'*****@*****.**', b'user1', 2001, b'User One')

            bb = self.user_bugzilla('*****@*****.**')
            bb.create_bug('TestProduct', 'TestComponent', 'First Bug')

            lr = self.create_basic_repo('*****@*****.**', 'user1')
            lr.write('foo', 'first change')
            lr.run(['commit', '-m', 'Bug 1 - Commit 1. r?user2'])
            lr.write('foo', 'second change')
            lr.run(['commit', '-m', 'Bug 1 - Commit 2. r?user2'])
            lr.run(['push'])
        except Exception:
            MozReviewWebDriverTest.tearDownClass()
            raise
    def setUpClass(cls):
        MozReviewWebDriverTest.setUpClass()

        try:
            self = cls("run")
            self.create_users(
                [
                    ("*****@*****.**", "password1", "Jeremy Smith [:jsmith]"),
                    ("*****@*****.**", "password2", "Mary Jane [:mary]"),
                ]
            )

            self.create_ldap(b"*****@*****.**", b"mjane", 2001, b"Mary Jane", scm_level=3)

            mjb = self.user_bugzilla("*****@*****.**")
            mjb.create_bug("TestProduct", "TestComponent", "First Bug")

            lr = self.create_basic_repo("*****@*****.**", "mjane")
            lr.write("foo", "first change")
            lr.run(["commit", "-m", "Bug 1 - Test publish; r?jsmith"])
            lr.run(["push"])
        except Exception:
            MozReviewWebDriverTest.tearDownClass()
            raise