예제 #1
0
    def test_bugzilla_1077386(self):
        """
        @Test: List subcommand returns standard output
        @Feature: Lifecycle Environment
        @Assert: There should not be an error returned
        """

        # List avaialble lifecycle environments using default Table
        # output
        cmd = u"lifecycle-environment list --organization-id=\"%s\""
        result = LifecycleEnvironment.execute(
            cmd % self.org['id'],
            None,
            None,
            False
        )

        self.assertEqual(
            result.return_code, 0, "Could not find the lifecycle environment"
        )
        self.assertEqual(
            len(result.stderr), 0, "There should not be an error here.")
        self.assertGreater(
            len(result.stdout), 0, "No output was returned"
        )
    def test_verify_bugzilla_1077386(self):
        """List subcommand returns standard output

        @id: cca249d0-fb77-422b-aae3-3361887269db

        @Assert: There should not be an error returned

        """

        # List available lifecycle environments using default Table
        # output
        cmd = u'lifecycle-environment list --organization-id="%s"'
        result = LifecycleEnvironment.execute(cmd % self.org["id"], None, None, False)
        self.assertGreater(len(result), 0)
예제 #3
0
    def test_verify_bugzilla_1077386(self):
        """List subcommand returns standard output

        :id: cca249d0-fb77-422b-aae3-3361887269db

        :expectedresults: There should not be an error returned

        :CaseImportance: High
        """

        # List available lifecycle environments using default Table
        # output
        cmd = 'lifecycle-environment list --organization-id="%s"'
        result = LifecycleEnvironment.execute(cmd % self.org['id'], None, None,
                                              False)
        self.assertGreater(len(result), 0)
def test_positive_list_subcommand(module_org):
    """List subcommand returns standard output

    :id: cca249d0-fb77-422b-aae3-3361887269db

    :expectedresults: There should not be an error returned

    :BZ: 1077386

    :CaseImportance: High
    """

    # List available lifecycle environments using default Table
    # output
    cmd = 'lifecycle-environment list --organization-id="%s"'
    result = LifecycleEnvironment.execute(cmd % module_org.id, None, None,
                                          False)
    assert len(result) > 0
    def test_verify_bugzilla_1077386(self):
        """List subcommand returns standard output

        @Feature: Lifecycle Environment

        @Assert: There should not be an error returned

        """

        # List available lifecycle environments using default Table
        # output
        cmd = u'lifecycle-environment list --organization-id="%s"'
        result = LifecycleEnvironment.execute(
            cmd % self.org['id'],
            None,
            None,
            False,
        )
        self.assertGreater(len(result), 0)
    def test_verify_bugzilla_1077386(self):
        """List subcommand returns standard output

        @Feature: Lifecycle Environment

        @Assert: There should not be an error returned

        """

        # List available lifecycle environments using default Table
        # output
        cmd = u'lifecycle-environment list --organization-id="%s"'
        result = LifecycleEnvironment.execute(
            cmd % self.org['id'],
            None,
            None,
            False,
        )
        self.assertGreater(len(result), 0)
예제 #7
0
    def test_bugzilla_1077386(self):
        """@Test: List subcommand returns standard output

        @Feature: Lifecycle Environment

        @Assert: There should not be an error returned

        """

        # List avaialble lifecycle environments using default Table
        # output
        cmd = u"lifecycle-environment list --organization-id=\"%s\""
        result = LifecycleEnvironment.execute(cmd % self.org['id'], None, None,
                                              False)

        self.assertEqual(result.return_code, 0,
                         "Could not find the lifecycle environment")
        self.assertEqual(len(result.stderr), 0,
                         "There should not be an error here.")
        self.assertGreater(len(result.stdout), 0, "No output was returned")