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());
}