use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project weblogic-kubernetes-operator by oracle.
the class PodHelperConfigTest method getActualAdminServerPodConfigForServerStartupAndDefaults.
private V1Pod getActualAdminServerPodConfigForServerStartupAndDefaults() throws Exception {
// default image & default image pull policy
Domain domain = getDomainCustomResourceForDefaults(null, null);
domain.getSpec().withServerStartup(newTestServersStartupList());
// no pvc
return getActualAdminServerPodConfig(domain, newPersistentVolumeClaimList());
}
use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project weblogic-kubernetes-operator by oracle.
the class PodHelperConfigTest method getDomainCustomResourceForDefaults.
private Domain getDomainCustomResourceForDefaults(String image, String imagePullPolicy) {
DomainSpec spec = newDomainSpec();
spec.setDomainUID(DOMAIN_UID);
spec.setDomainName(DOMAIN_NAME);
spec.setAsName(ADMIN_SERVER_NAME);
spec.setAdminSecret(newSecretReference().name(WEBLOGIC_CREDENTIALS_SECRET_NAME));
spec.setAsPort(ADMIN_SERVER_PORT);
if (image != null) {
spec.setImage(image);
}
if (imagePullPolicy != null) {
spec.setImagePullPolicy(imagePullPolicy);
}
Domain domain = new Domain();
domain.setMetadata(newObjectMeta().namespace(NAMESPACE));
domain.setSpec(spec);
return domain;
}
use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project weblogic-kubernetes-operator by oracle.
the class WatchBuilderTest method whenDomainWatchReceivesModifyAndDeleteResponses_returnBothFromIterator.
@SuppressWarnings("unchecked")
@Test
public void whenDomainWatchReceivesModifyAndDeleteResponses_returnBothFromIterator() throws Exception {
Domain domain1 = new Domain().withApiVersion(API_VERSION).withKind("Domain").withMetadata(createMetaData("domain1", NAMESPACE));
Domain domain2 = new Domain().withApiVersion(API_VERSION).withKind("Domain").withMetadata(createMetaData("domain2", NAMESPACE));
defineHttpResponse(DOMAIN_RESOURCE, withResponses(createModifiedResponse(domain1), createDeletedResponse(domain2)));
WatchI<Domain> domainWatch = new WatchBuilder().createDomainWatch(NAMESPACE);
assertThat(domainWatch, contains(modifyEvent(domain1), deleteEvent(domain2)));
}
use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project weblogic-kubernetes-operator by oracle.
the class CreateDomainGeneratedFilesOptionalFeaturesEnabledTest method getExpectedDomain.
@Override
protected Domain getExpectedDomain() {
Domain expected = super.getExpectedDomain();
expected.getSpec().withExportT3Channels(newStringList().addElement("T3Channel"));
// there is only one server startup item in the base domain config - set its node port:
expected.getSpec().getServerStartup().get(0).withNodePort(Integer.parseInt(getInputs().getAdminNodePort()));
return expected;
}
use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project openstack4j by ContainX.
the class KeystoneDomainServiceTests method crud_domain_test.
// ------------ Domain Tests ------------
// Tests here just address the missing update() spec feature.
// Find more tests in the respective KeystoneXService.spec in
// core-integration-test module
public void crud_domain_test() throws Exception {
// create a new domain
Domain domain = Builders.domain().name(DOMAIN_NAME).description(DOMAIN_DESCRIPTION).enabled(true).build();
respondWith(JSON_DOMAINS_CREATE);
Domain newDomain = osv3().identity().domains().create(domain);
assertEquals(newDomain.getName(), DOMAIN_NAME);
assertEquals(newDomain.getDescription(), DOMAIN_DESCRIPTION);
String DOMAIN_ID = newDomain.getId();
// update an existing domain
respondWith(JSON_DOMAINS_UPDATE);
Domain updatedDomain = osv3().identity().domains().update(Builders.domain().id(DOMAIN_ID).description(DOMAIN_DESCRIPTION_UPDATED).enabled(true).build());
assertEquals(updatedDomain.getId(), DOMAIN_ID);
assertEquals(updatedDomain.getName(), DOMAIN_NAME);
assertEquals(updatedDomain.getDescription(), DOMAIN_DESCRIPTION_UPDATED);
}
Aggregations