Github user ustcweizhou commented on the pull request:

    https://github.com/apache/cloudstack/pull/844#issuecomment-142515867
  
    @wilderrodrigues 
    
    test cases
    1. advanced zone
        (1) a shared network for domain domain1.
                account1: in domain 1, one isolated network
                acocunt2: in domain 1, two isolated networks
                project1: in domain 1, no network
                account3: in domain 2, one isolated network.
                
        (2) assign vm1 (account1, isolated network) to account2. expectation: 
fail, new owner is account2, but no network attached to the vm after assignment.
                assign vm2 (accoung2, isolated network) to account1. 
expectation: succeed. new owner is account1, one isolated network attached to 
vm.
                assign vm3 (account1, shared network) to account2.  
expectation: succeed. new owner is account2, shared network attached to vm.
                assign vm4 (account1, shared network) to account3.  
expectation: succeed. new owner is account3, one isolated network attached to 
vm.
                assign vm5 (account1, shared network) to project1.  
expectation: succeed. new owner is project1, one isolated network created and 
attached to vm
    
    2. advanced zone with security groups
        (1) a shared network 1 for domain domain1.
                a shared network 2 for domain domain2.
                account1: in domain 1
                account2: in domain 1
                account3: in domain 2
        (2) assign vm1 ((account1, shared network) to account2.  expectation: 
succeed. new owner is account2, shared network 1 attached to vm, security group 
applied.
                assign vm1 ((account1, shared network) to account3.  
expectation: succeed. new owner is account3, shared network 2 attached to vm, 
security group applied.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to