Liron Aravot has posted comments on this change.

Change subject: core: Limitation addition for downgrading DC's compatible 
version.
......................................................................


Patch Set 2:

(2 comments)

http://gerrit.ovirt.org/#/c/37478/2/backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/storage/StorageHandlingCommandBaseTest.java
File 
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/storage/StorageHandlingCommandBaseTest.java:

Line 241:         
storageDomain.setStorageDomainSharedStatus(StorageDomainSharedStatus.Locked);
Line 242:         assertFalse("Attaching domain in locked status succeeded 
while it should have failed", cmd.checkDomainCanBeAttached(storageDomain));
Line 243:         CanDoActionTestUtils.assertCanDoActionMessages("Attaching 
domain with in locked status failed with the wrong message", cmd,
Line 244:                 
VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL);
Line 245:     }
please leave the test and make it fit with the new code
Line 246: 
Line 247:     @Test
Line 248:     public void testCanAttachISOOrExport() {
Line 249:         for (StorageDomainType type : Arrays.<StorageDomainType> 
asList(StorageDomainType.ISO, StorageDomainType.ImportExport)) {


http://gerrit.ovirt.org/#/c/37478/2/backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/storage/UpdateStoragePoolCommandTest.java
File 
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/storage/UpdateStoragePoolCommandTest.java:

Line 295: 
Line 296:             // Set the specific validator for this domain.
Line 297:             /*AttachDomainValidatorForTesting attachDomainValidator = 
spy(new AttachDomainValidatorForTesting(sd.getStorageStaticData(), 
cmd.getStoragePool()));
Line 298:             
doReturn(attachDomainValidator).when(cmd).getAttachDomainValidator(sd.getStorageStaticData());
Line 299:             
doReturn(spDao).when(attachDomainValidator).getStoragePoolDao();*/
please either remove or return :)
Line 300:         }
Line 301: 
Line 302:         
when(sdDao.getAllForStoragePool(any(Guid.class))).thenReturn(sdListWithDomains);
Line 303:     }


-- 
To view, visit http://gerrit.ovirt.org/37478
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib97488c705a32fe73b390ef226b1ad19a3784b76
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Amit Aviram <aavi...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to