@itentialopensource/adapter-f5_bigiq 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12113,5 +12113,150 @@ describe('[unit] F5BigIQ Adapter Test', () => {
12113
12113
  }
12114
12114
  }).timeout(attemptTimeout);
12115
12115
  });
12116
+
12117
+ describe('#rebootDevice - errors', () => {
12118
+ it('should have a rebootDevice function', (done) => {
12119
+ try {
12120
+ assert.equal(true, typeof a.rebootDevice === 'function');
12121
+ done();
12122
+ } catch (error) {
12123
+ log.error(`Test Failure: ${error}`);
12124
+ done(error);
12125
+ }
12126
+ }).timeout(attemptTimeout);
12127
+ it('should error if - missing body', (done) => {
12128
+ try {
12129
+ a.rebootDevice(null, (data, error) => {
12130
+ try {
12131
+ const displayE = 'body is required';
12132
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-rebootDevice', displayE);
12133
+ done();
12134
+ } catch (err) {
12135
+ log.error(`Test Failure: ${err}`);
12136
+ done(err);
12137
+ }
12138
+ });
12139
+ } catch (error) {
12140
+ log.error(`Adapter Exception: ${error}`);
12141
+ done(error);
12142
+ }
12143
+ }).timeout(attemptTimeout);
12144
+ });
12145
+
12146
+ describe('#removeDeviceServices - errors', () => {
12147
+ it('should have a removeDeviceServices function', (done) => {
12148
+ try {
12149
+ assert.equal(true, typeof a.removeDeviceServices === 'function');
12150
+ done();
12151
+ } catch (error) {
12152
+ log.error(`Test Failure: ${error}`);
12153
+ done(error);
12154
+ }
12155
+ }).timeout(attemptTimeout);
12156
+ it('should error if - missing body', (done) => {
12157
+ try {
12158
+ a.removeDeviceServices(null, (data, error) => {
12159
+ try {
12160
+ const displayE = 'body is required';
12161
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-removeDeviceServices', displayE);
12162
+ done();
12163
+ } catch (err) {
12164
+ log.error(`Test Failure: ${err}`);
12165
+ done(err);
12166
+ }
12167
+ });
12168
+ } catch (error) {
12169
+ log.error(`Adapter Exception: ${error}`);
12170
+ done(error);
12171
+ }
12172
+ }).timeout(attemptTimeout);
12173
+ });
12174
+
12175
+ describe('#getRemoveDeviceServicesStatusById - errors', () => {
12176
+ it('should have a getRemoveDeviceServicesStatusById function', (done) => {
12177
+ try {
12178
+ assert.equal(true, typeof a.getRemoveDeviceServicesStatusById === 'function');
12179
+ done();
12180
+ } catch (error) {
12181
+ log.error(`Test Failure: ${error}`);
12182
+ done(error);
12183
+ }
12184
+ }).timeout(attemptTimeout);
12185
+ it('should error if - missing id', (done) => {
12186
+ try {
12187
+ a.getRemoveDeviceServicesStatusById(null, (data, error) => {
12188
+ try {
12189
+ const displayE = 'id is required';
12190
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getRemoveDeviceServicesStatusById', displayE);
12191
+ done();
12192
+ } catch (err) {
12193
+ log.error(`Test Failure: ${err}`);
12194
+ done(err);
12195
+ }
12196
+ });
12197
+ } catch (error) {
12198
+ log.error(`Adapter Exception: ${error}`);
12199
+ done(error);
12200
+ }
12201
+ }).timeout(attemptTimeout);
12202
+ });
12203
+
12204
+ describe('#removeDeviceTrust - errors', () => {
12205
+ it('should have a removeDeviceTrust function', (done) => {
12206
+ try {
12207
+ assert.equal(true, typeof a.removeDeviceTrust === 'function');
12208
+ done();
12209
+ } catch (error) {
12210
+ log.error(`Test Failure: ${error}`);
12211
+ done(error);
12212
+ }
12213
+ }).timeout(attemptTimeout);
12214
+ it('should error if - missing body', (done) => {
12215
+ try {
12216
+ a.removeDeviceTrust(null, (data, error) => {
12217
+ try {
12218
+ const displayE = 'body is required';
12219
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-removeDeviceTrust', displayE);
12220
+ done();
12221
+ } catch (err) {
12222
+ log.error(`Test Failure: ${err}`);
12223
+ done(err);
12224
+ }
12225
+ });
12226
+ } catch (error) {
12227
+ log.error(`Adapter Exception: ${error}`);
12228
+ done(error);
12229
+ }
12230
+ }).timeout(attemptTimeout);
12231
+ });
12232
+
12233
+ describe('#getRemoveDeviceTrustStatusById - errors', () => {
12234
+ it('should have a getRemoveDeviceTrustStatusById function', (done) => {
12235
+ try {
12236
+ assert.equal(true, typeof a.getRemoveDeviceTrustStatusById === 'function');
12237
+ done();
12238
+ } catch (error) {
12239
+ log.error(`Test Failure: ${error}`);
12240
+ done(error);
12241
+ }
12242
+ }).timeout(attemptTimeout);
12243
+ it('should error if - missing id', (done) => {
12244
+ try {
12245
+ a.getRemoveDeviceTrustStatusById(null, (data, error) => {
12246
+ try {
12247
+ const displayE = 'id is required';
12248
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getRemoveDeviceTrustStatusById', displayE);
12249
+ done();
12250
+ } catch (err) {
12251
+ log.error(`Test Failure: ${err}`);
12252
+ done(err);
12253
+ }
12254
+ });
12255
+ } catch (error) {
12256
+ log.error(`Adapter Exception: ${error}`);
12257
+ done(error);
12258
+ }
12259
+ }).timeout(attemptTimeout);
12260
+ });
12116
12261
  });
12117
12262
  });