use of org.talend.esb.servicelocator.client.Endpoint in project tesb-rt-se by Talend.
the class RegisterEndpointProviderTest method registerServiceExistsEndpointExistsNot.
@Ignore
@Test
public void registerServiceExistsEndpointExistsNot() throws Exception {
Endpoint endpoint = create(SERVICE_QNAME_1, ENDPOINT_1);
serviceExists(SERVICE_PATH_1);
endpointExistsNot(ENDPOINT_PATH_11);
ep2Data(endpoint, NEW_DATA);
createEndpointAndSetData(ENDPOINT_PATH_11, NEW_DATA);
createEndpointStatus(ENDPOINT_PATH_11);
replayAll();
ServiceLocatorImpl slc = createServiceLocatorSuccess();
slc.setEndpointTransformer(trans);
slc.register(endpoint);
verifyAll();
}
use of org.talend.esb.servicelocator.client.Endpoint in project tesb-rt-se by Talend.
the class RegisterEndpointProviderTest method registerServiceExistsNotWithAuthentication.
@Ignore
@Test
public void registerServiceExistsNotWithAuthentication() throws Exception {
Endpoint endpoint = create(SERVICE_QNAME_1, ENDPOINT_1);
setAuthentication(true);
zkMock.addAuthInfo(eq("sl"), aryEq(USER_NAME_PASSWORD_BYTES));
serviceExistsNot(SERVICE_PATH_1);
createService(SERVICE_PATH_1);
endpointExistsNot(ENDPOINT_PATH_11);
ep2Data(endpoint, NEW_DATA);
createEndpointAndSetData(ENDPOINT_PATH_11, NEW_DATA);
createEndpointStatus(ENDPOINT_PATH_11);
replayAll();
ServiceLocatorImpl slc = createServiceLocatorSuccess();
slc.setEndpointTransformer(trans);
// slc.setName(USER_NAME);
// slc.setPassword(PASSWORD);
slc.register(endpoint);
verifyAll();
}
use of org.talend.esb.servicelocator.client.Endpoint in project tesb-rt-se by Talend.
the class RegisterEndpointProviderTest method registerEndpointStatusExists.
@Ignore
@Test
public void registerEndpointStatusExists() throws Exception {
Endpoint endpoint = create(SERVICE_QNAME_1, ENDPOINT_1);
serviceExists(SERVICE_PATH_1);
endpointExists(ENDPOINT_PATH_11);
getData(ENDPOINT_PATH_11, OLD_DATA);
data2Ep(SERVICE_QNAME_1, OLD_DATA);
ep2Data(endpoint, NEW_DATA);
setData(ENDPOINT_PATH_11, NEW_DATA);
createEndpointStatusFails(ENDPOINT_PATH_11);
replayAll();
ServiceLocatorImpl slc = createServiceLocatorSuccess();
slc.setEndpointTransformer(trans);
slc.register(endpoint);
verifyAll();
}
use of org.talend.esb.servicelocator.client.Endpoint in project tesb-rt-se by Talend.
the class RegisterEndpointProviderTest method unregisterEndpointExistsNot.
@Ignore
@Test
public void unregisterEndpointExistsNot() throws Exception {
endpointExistsNot(ENDPOINT_PATH_11);
Endpoint eprProvider = create(SERVICE_QNAME_1, ENDPOINT_1);
replayAll();
ServiceLocatorImpl slc = createServiceLocatorSuccess();
slc.setEndpointTransformer(trans);
slc.unregister(eprProvider);
verifyAll();
}
use of org.talend.esb.servicelocator.client.Endpoint in project tesb-rt-se by Talend.
the class RegisterEndpointProviderTest method registerServiceExistsNotButConcurrentlyCreated.
@Ignore
@Test
public void registerServiceExistsNotButConcurrentlyCreated() throws Exception {
Endpoint endpoint = create(SERVICE_QNAME_1, ENDPOINT_1);
serviceExistsNot(SERVICE_PATH_1);
createServiceFails(SERVICE_PATH_1);
endpointExistsNot(ENDPOINT_PATH_11);
ep2Data(endpoint, NEW_DATA);
createEndpointAndSetData(ENDPOINT_PATH_11, NEW_DATA);
createEndpointStatus(ENDPOINT_PATH_11);
replayAll();
ServiceLocatorImpl slc = createServiceLocatorSuccess();
slc.setEndpointTransformer(trans);
slc.register(endpoint);
verifyAll();
}
Aggregations