Esempio n. 1
0
    def test_negative_create_with_name(self):
        """Don't create an Environment with invalid data.

        @id: 8a4141b0-3bb9-47e5-baca-f9f027086d4c

        @Assert: Environment is not created.
        """
        for name in invalid_values_list():
            with self.subTest(name):
                with self.assertRaises(CLIReturnCodeError):
                    Environment.create({'name': name})
    def test_negative_create_with_name(self):
        """Don't create an Environment with invalid data.

        @Feature: Environment

        @Assert: Environment is not created.
        """
        for name in invalid_values_list():
            with self.subTest(name):
                with self.assertRaises(CLIReturnCodeError):
                    Environment.create({'name': name})
Esempio n. 3
0
    def test_negative_create_with_name(self):
        """Don't create an Environment with invalid data.

        @Feature: Environment

        @Assert: Environment is not created.
        """
        for name in invalid_values_list():
            with self.subTest(name):
                with self.assertRaises(CLIReturnCodeError):
                    Environment.create({'name': name})
Esempio n. 4
0
    def test_negative_create_with_name(self):
        """Don't create an Environment with invalid data.

        @id: 8a4141b0-3bb9-47e5-baca-f9f027086d4c

        @Assert: Environment is not created.
        """
        for name in invalid_values_list():
            with self.subTest(name):
                with self.assertRaises(CLIReturnCodeError):
                    Environment.create({'name': name})
Esempio n. 5
0
    def test_negative_create_with_name(self):
        """Don't create an Environment with invalid data.

        :id: 8a4141b0-3bb9-47e5-baca-f9f027086d4c

        :expectedresults: Environment is not created.

        :CaseImportance: Critical
        """
        for name in invalid_values_list():
            with self.subTest(name):
                with self.assertRaises(CLIReturnCodeError):
                    Environment.create({'name': name})
Esempio n. 6
0
def test_negative_create_with_name(name):
    """Don't create an Environment with invalid data.

    :id: 8a4141b0-3bb9-47e5-baca-f9f027086d4c

    :parametrized: yes

    :expectedresults: Environment is not created.

    :CaseImportance: Critical
    """
    with pytest.raises(CLIReturnCodeError):
        Environment.create({'name': name})
    def test_positive_list_with_name(self):
        """Test Environment List

        @Feature: Environment

        @Assert: Environment list is displayed
        """
        for name in valid_environments_list():
            with self.subTest(name):
                Environment.create({'name': name})
                result = Environment.list({'search': 'name={0}'.format(name)})
                self.assertEqual(len(result), 1)
                self.assertEqual(result[0]['name'], name)
Esempio n. 8
0
    def test_negative_create_with_name(self):
        """Don't create an Environment with invalid data.

        :id: 8a4141b0-3bb9-47e5-baca-f9f027086d4c

        :expectedresults: Environment is not created.

        :CaseImportance: Critical
        """
        for name in invalid_values_list():
            with self.subTest(name):
                with self.assertRaises(CLIReturnCodeError):
                    Environment.create({'name': name})
Esempio n. 9
0
    def test_positive_list_with_name(self):
        """Test Environment List

        @Feature: Environment

        @Assert: Environment list is displayed
        """
        for name in valid_environments_list():
            with self.subTest(name):
                Environment.create({'name': name})
                result = Environment.list({
                    'search': 'name={0}'.format(name)
                })
                self.assertEqual(len(result), 1)
                self.assertEqual(result[0]['name'], name)
Esempio n. 10
0
    def test_positive_list_with_name(self):
        """Test Environment List

        :id: 8a81f853-929c-4eaa-8ae0-4c92ebf1f250

        :expectedresults: Environment list is displayed

        :CaseLevel: Integration
        """
        for name in valid_environments_list():
            with self.subTest(name):
                Environment.create({'name': name})
                result = Environment.list({'search': 'name={0}'.format(name)})
                self.assertEqual(len(result), 1)
                self.assertEqual(result[0]['name'], name)
Esempio n. 11
0
    def test_positive_list_with_name(self):
        """Test Environment List

        :id: 8a81f853-929c-4eaa-8ae0-4c92ebf1f250

        :expectedresults: Environment list is displayed

        :CaseLevel: Integration
        """
        for name in valid_environments_list():
            with self.subTest(name):
                Environment.create({'name': name})
                result = Environment.list({
                    'search': 'name={0}'.format(name)
                })
                self.assertEqual(len(result), 1)
                self.assertEqual(result[0]['name'], name)