Example #1
0
  @Test
  public void invalidDefaultManagementNetworkAttachement() {
    newDefaultManagementNetworkFound();
    final EngineMessage expected = EngineMessage.Unassigned;
    when(networkClusterValidator.managementNetworkChange())
        .thenReturn(new ValidationResult(expected));

    createCommandWithDefaultCluster();
    oldGroupIsDetachedDefault();
    setupCpu();
    validateFailedWithReason(expected);
  }
Example #2
0
 private void prepareManagementNetworkMocks() {
   newDefaultManagementNetworkFound();
   when(networkClusterValidator.managementNetworkChange()).thenReturn(ValidationResult.VALID);
 }