use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetKeysRequest in project open-smart-grid-platform by OSGP.
the class GetKeys method aGetKeysRequestIsReceived.
@When("^a get keys request is received$")
public void aGetKeysRequestIsReceived(final Map<String, String> settings) throws Throwable {
final GetKeysRequest request = GetKeysRequestFactory.fromParameterMap(settings);
final GetKeysAsyncResponse asyncResponse = this.smartMeteringConfigurationClient.getKeys(request);
assertThat(asyncResponse).as("getKeysAsyncResponse should not be null").isNotNull();
ScenarioContext.current().put(PlatformKeys.KEY_CORRELATION_UID, asyncResponse.getCorrelationUid());
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.GetKeysRequest in project open-smart-grid-platform by OSGP.
the class GetKeysRequestFactory method fromParameterMap.
public static GetKeysRequest fromParameterMap(final Map<String, String> settings) {
final GetKeysRequest request = new GetKeysRequest();
final GetKeysRequestData requestData = new GetKeysRequestData();
requestData.getSecretTypes().addAll(getSecretTypesFromParameterMap(settings));
request.setDeviceIdentification(settings.get(PlatformKeys.KEY_DEVICE_IDENTIFICATION));
request.setGetKeysData(requestData);
return request;
}
Aggregations