cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From remibergsma <...@git.apache.org>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-6276 Fixing affinity groups fo...
Date Sun, 29 Nov 2015 08:02:44 GMT
Github user remibergsma commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1134#discussion_r46088753
  
    --- Diff: test/integration/component/test_affinity_groups_projects.py ---
    @@ -0,0 +1,1083 @@
    +#!/usr/bin/env python
    +#  Licensed to the Apache Software Foundation (ASF) under one
    +#  or more contributor license agreements.  See the NOTICE file
    +#  distributed with this work for additional information
    +#  regarding copyright ownership.  The ASF licenses this file
    +#  to you under the Apache License, Version 2.0 (the
    +#  "License"); you may not use this file except in compliance
    +#  with the License.  You may obtain a copy of the License at
    +# 
    +#    http://www.apache.org/licenses/LICENSE-2.0
    +# 
    +#  Unless required by applicable law or agreed to in writing,
    +#  software distributed under the License is distributed on an
    +#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    +#  KIND, either express or implied.  See the License for the
    +#  specific language governing permissions and limitations
    +#  under the License.
    +from marvin.cloudstackTestCase import cloudstackTestCase, unittest
    +from marvin.cloudstackAPI import deleteAffinityGroup
    +from marvin.lib.utils import (cleanup_resources,
    +                        random_gen)
    +from marvin.lib.base import (Account,
    +                        Project,
    +                        ServiceOffering,
    +                        VirtualMachine,
    +                        AffinityGroup,
    +                        Domain)
    +from marvin.lib.common import (get_zone,
    +                         get_domain,
    +                         get_template,
    +                         list_hosts,
    +                         list_virtual_machines,
    +                         wait_for_cleanup)
    +from nose.plugins.attrib import attr
    +
    +class Services:
    +    """Test Account Services
    +    """
    +
    +    def __init__(self):
    +       self.services = {
    +          "domain": {
    +             "name": "NonRootDomain"
    +          },
    +          "domain_admin_account": {
    +             "email": "newtest@test.com",
    +             "firstname": "Test",
    +             "lastname": "User",
    +             "username": "doadmintest",
    +             "password": "password"
    +          },
    +          "account": {
    +             "email": "newtest@test.com",
    +             "firstname": "Test",
    +             "lastname": "User",
    +             "username": "acc",
    +             "password": "password"
    +          },
    +          "account_not_in_project": {
    +             "email": "newtest@test.com",
    +             "firstname": "Test",
    +             "lastname": "User",
    +             "username": "account_not_in_project",
    +             "password": "password"
    +          },
    +          "project": {
    +             "name": "Project",
    +             "displaytext": "Project"
    +          },
    +          "project2": {
    +             "name": "Project2",
    +             "displaytext": "Project2"
    +          },
    +          "service_offering": {
    +             "name": "Tiny Instance",
    +             "displaytext": "Tiny Instance",
    +             "cpunumber": 1,
    +             "cpuspeed": 100,
    +             "memory": 64
    +          },
    +          "ostype": 'CentOS 5.3 (64-bit)',
    +          "host_anti_affinity": {
    +                "name": "",
    +                "type": "host anti-affinity"
    +             },
    +          "virtual_machine" : {
    +             "hypervisor" : "KVM"
    --- End diff --
    
    @pdube Even better, thanks!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message