Exemplo n.º 1
0
    def testCase2944(self):
        policy = SecurityGroup(self)
        policy.name = "testCase2944"
        # default values
        policy.description = testlib.RandomString(
            "~!@#$%^&*()_+=-`][}{;?><,./)", 361)

        data = policy.tostring()
        policy = self.connection.get_object('%s/' % (self.connection.REST_SECURITY_GROUP),
                                            SecurityGroup, data=data, method='POST')
        # create policy
        self.assertEqual(policy, None)
Exemplo n.º 2
0
    def testCase2943(self):
        policy = SecurityGroup(self)
        policy.name = "testCase2943"
        # default values
        policy.description = testlib.RandomString(
            string.ascii_uppercase + string.digits, 361)

        data = policy.tostring()
        policy = self.connection.get_object('%s/' % (self.connection.REST_SECURITY_GROUP),
                                            SecurityGroup, data=data, method='POST')
        # create policy
        self.assertEqual(policy, None)
Exemplo n.º 3
0
    def testCase2944(self):
        policy = SecurityGroup(self)
        policy.name = "testCase2944"
        # default values
        policy.description = testlib.RandomString(
            "~!@#$%^&*()_+=-`][}{;?><,./)", 361)

        data = policy.tostring()
        policy = self.connection.get_object(
            '%s/' % (self.connection.REST_SECURITY_GROUP),
            SecurityGroup,
            data=data,
            method='POST')
        # create policy
        self.assertEqual(policy, None)
Exemplo n.º 4
0
    def testCase2943(self):
        policy = SecurityGroup(self)
        policy.name = "testCase2943"
        # default values
        policy.description = testlib.RandomString(
            string.ascii_uppercase + string.digits, 361)

        data = policy.tostring()
        policy = self.connection.get_object(
            '%s/' % (self.connection.REST_SECURITY_GROUP),
            SecurityGroup,
            data=data,
            method='POST')
        # create policy
        self.assertEqual(policy, None)