test(crud): remove restrictions that http based protocols can't support CA
This commit is contained in:
Родитель
be34c366ee
Коммит
a91bdf90e7
|
@ -28,25 +28,20 @@ var maximumMessageSize = ((256*1024)-512);
|
|||
[
|
||||
DeviceIdentityHelper.createDeviceWithSas,
|
||||
DeviceIdentityHelper.createDeviceWithSymmetricKey,
|
||||
DeviceIdentityHelper.createDeviceWithX509SelfSignedCert
|
||||
DeviceIdentityHelper.createDeviceWithX509SelfSignedCert,
|
||||
DeviceIdentityHelper.createDeviceWithX509CASignedCert
|
||||
].forEach(function (createDeviceMethod) {
|
||||
[
|
||||
deviceHttp.Http,
|
||||
deviceAmqp.Amqp,
|
||||
deviceAmqp.AmqpWs,
|
||||
deviceMqtt.Mqtt
|
||||
deviceMqtt.Mqtt,
|
||||
deviceMqtt.MqttWs
|
||||
].forEach(function (deviceTransport) {
|
||||
device_service_tests(deviceTransport, createDeviceMethod);
|
||||
});
|
||||
});
|
||||
|
||||
[
|
||||
deviceAmqp.Amqp,
|
||||
deviceMqtt.Mqtt
|
||||
].forEach(function (deviceTransport) {
|
||||
device_service_tests(deviceTransport, DeviceIdentityHelper.createDeviceWithX509CASignedCert);
|
||||
});
|
||||
|
||||
function device_service_tests(deviceTransport, createDeviceMethod) {
|
||||
describe('Over ' + deviceTransport.name + ' using device/service clients c2d with ' + createDeviceMethod.name + ' authentication', function () {
|
||||
this.timeout(60000);
|
||||
|
|
Загрузка…
Ссылка в новой задаче