Skip to content

Commit

Permalink
fixup! CHE-8265: Add Workspace.Next objects applier for k8s recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Garagatyi committed Jun 4, 2018
1 parent 965d1ab commit 0c95ef6
Showing 1 changed file with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import static java.util.Collections.emptyMap;
import static java.util.Collections.singletonList;
import static java.util.Collections.singletonMap;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyZeroInteractions;
Expand Down Expand Up @@ -143,33 +142,6 @@ public void canAddMultipleToolingContainersToAPodFromSeveralServices() throws Ex
}
}

@Test
public void addMachineWithServer() throws Exception {
// TODO
applier.apply(internalEnvironment, singletonList(testService()));


verify(machines).put(anyString(), machineCaptor.capture());
InternalMachineConfig capturedMachine = machineCaptor.getValue();
assertEquals(capturedMachine.getServers(), );
}

@Test
public void addMachineWithVolume() throws Exception {
// TODO
applier.apply(internalEnvironment, singletonList(testService()));


verify(machines).put(anyString(), machineCaptor.capture());
InternalMachineConfig capturedMachine = machineCaptor.getValue();
assertEquals(capturedMachine.getVolumes(), )
}

@Test
public void addMachineWithDefaultMemoryLimitIfNotSetInCheService() throws Exception {
// TODO
}

private CheService testService() {
CheService service = new CheService();
CheServiceSpec cheServiceSpec = new CheServiceSpec();
Expand Down

0 comments on commit 0c95ef6

Please sign in to comment.