Search in sources :

Example 1 with Default

use of org.csanchez.jenkins.plugins.kubernetes.pod.retention.Default in project kubernetes-plugin by jenkinsci.

the class KubernetesTest method upgradeFrom_1_10.

@Test
@LocalData()
public void upgradeFrom_1_10() throws Exception {
    List<PodTemplate> templates = cloud.getTemplates();
    assertPodTemplates(templates);
    assertEquals(new Never(), cloud.getPodRetention());
    PodTemplate template = templates.get(0);
    assertEquals(new Default(), template.getPodRetention());
    assertEquals(cloud.DEFAULT_WAIT_FOR_POD_SEC, cloud.getWaitForPodSec());
    assertTrue(template.isShowRawYaml());
    assertEquals(Collections.emptyList(), template.getYamls());
    assertNull(template.getYaml());
}
Also used : Never(org.csanchez.jenkins.plugins.kubernetes.pod.retention.Never) Default(org.csanchez.jenkins.plugins.kubernetes.pod.retention.Default) LocalData(org.jvnet.hudson.test.recipes.LocalData) Test(org.junit.Test)

Aggregations

Default (org.csanchez.jenkins.plugins.kubernetes.pod.retention.Default)1 Never (org.csanchez.jenkins.plugins.kubernetes.pod.retention.Never)1 Test (org.junit.Test)1 LocalData (org.jvnet.hudson.test.recipes.LocalData)1