@itentialopensource/adapter-paragon_insights 0.1.2 → 0.1.3

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.
@@ -14652,5 +14652,568 @@ describe('[unit] Paragon_insights Adapter Test', () => {
14652
14652
  }
14653
14653
  }).timeout(attemptTimeout);
14654
14654
  });
14655
+
14656
+ describe('#retrieveDeviceTriggerInfo - errors', () => {
14657
+ it('should have a retrieveDeviceTriggerInfo function', (done) => {
14658
+ try {
14659
+ assert.equal(true, typeof a.retrieveDeviceTriggerInfo === 'function');
14660
+ done();
14661
+ } catch (error) {
14662
+ log.error(`Test Failure: ${error}`);
14663
+ done(error);
14664
+ }
14665
+ }).timeout(attemptTimeout);
14666
+ it('should error if - missing deviceId', (done) => {
14667
+ try {
14668
+ a.retrieveDeviceTriggerInfo(null, (data, error) => {
14669
+ try {
14670
+ const displayE = 'deviceId is required';
14671
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-retrieveDeviceTriggerInfo', displayE);
14672
+ done();
14673
+ } catch (err) {
14674
+ log.error(`Test Failure: ${err}`);
14675
+ done(err);
14676
+ }
14677
+ });
14678
+ } catch (error) {
14679
+ log.error(`Adapter Exception: ${error}`);
14680
+ done(error);
14681
+ }
14682
+ }).timeout(attemptTimeout);
14683
+ });
14684
+
14685
+ describe('#removeIcebergDevicesFromGroup - errors', () => {
14686
+ it('should have a removeIcebergDevicesFromGroup function', (done) => {
14687
+ try {
14688
+ assert.equal(true, typeof a.removeIcebergDevicesFromGroup === 'function');
14689
+ done();
14690
+ } catch (error) {
14691
+ log.error(`Test Failure: ${error}`);
14692
+ done(error);
14693
+ }
14694
+ }).timeout(attemptTimeout);
14695
+ it('should error if - missing deviceGroupName', (done) => {
14696
+ try {
14697
+ a.removeIcebergDevicesFromGroup(null, (data, error) => {
14698
+ try {
14699
+ const displayE = 'deviceGroupName is required';
14700
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-removeIcebergDevicesFromGroup', displayE);
14701
+ done();
14702
+ } catch (err) {
14703
+ log.error(`Test Failure: ${err}`);
14704
+ done(err);
14705
+ }
14706
+ });
14707
+ } catch (error) {
14708
+ log.error(`Adapter Exception: ${error}`);
14709
+ done(error);
14710
+ }
14711
+ }).timeout(attemptTimeout);
14712
+ });
14713
+
14714
+ describe('#removeIcebergNetworkGroupNetworkGroupById - errors', () => {
14715
+ it('should have a removeIcebergNetworkGroupNetworkGroupById function', (done) => {
14716
+ try {
14717
+ assert.equal(true, typeof a.removeIcebergNetworkGroupNetworkGroupById === 'function');
14718
+ done();
14719
+ } catch (error) {
14720
+ log.error(`Test Failure: ${error}`);
14721
+ done(error);
14722
+ }
14723
+ }).timeout(attemptTimeout);
14724
+ it('should error if - missing networkGroupName', (done) => {
14725
+ try {
14726
+ a.removeIcebergNetworkGroupNetworkGroupById(null, (data, error) => {
14727
+ try {
14728
+ const displayE = 'networkGroupName is required';
14729
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-removeIcebergNetworkGroupNetworkGroupById', displayE);
14730
+ done();
14731
+ } catch (err) {
14732
+ log.error(`Test Failure: ${err}`);
14733
+ done(err);
14734
+ }
14735
+ });
14736
+ } catch (error) {
14737
+ log.error(`Adapter Exception: ${error}`);
14738
+ done(error);
14739
+ }
14740
+ }).timeout(attemptTimeout);
14741
+ });
14742
+
14743
+ describe('#retrieveHealthbotIngestSettingsPaa - errors', () => {
14744
+ it('should have a retrieveHealthbotIngestSettingsPaa function', (done) => {
14745
+ try {
14746
+ assert.equal(true, typeof a.retrieveHealthbotIngestSettingsPaa === 'function');
14747
+ done();
14748
+ } catch (error) {
14749
+ log.error(`Test Failure: ${error}`);
14750
+ done(error);
14751
+ }
14752
+ }).timeout(attemptTimeout);
14753
+ });
14754
+
14755
+ describe('#deleteHealthbotIngestPaaByPaaName - errors', () => {
14756
+ it('should have a deleteHealthbotIngestPaaByPaaName function', (done) => {
14757
+ try {
14758
+ assert.equal(true, typeof a.deleteHealthbotIngestPaaByPaaName === 'function');
14759
+ done();
14760
+ } catch (error) {
14761
+ log.error(`Test Failure: ${error}`);
14762
+ done(error);
14763
+ }
14764
+ }).timeout(attemptTimeout);
14765
+ it('should error if - missing paaName', (done) => {
14766
+ try {
14767
+ a.deleteHealthbotIngestPaaByPaaName(null, (data, error) => {
14768
+ try {
14769
+ const displayE = 'paaName is required';
14770
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-deleteHealthbotIngestPaaByPaaName', displayE);
14771
+ done();
14772
+ } catch (err) {
14773
+ log.error(`Test Failure: ${err}`);
14774
+ done(err);
14775
+ }
14776
+ });
14777
+ } catch (error) {
14778
+ log.error(`Adapter Exception: ${error}`);
14779
+ done(error);
14780
+ }
14781
+ }).timeout(attemptTimeout);
14782
+ });
14783
+
14784
+ describe('#retrieveHealthbotIngestPaaByPaaName - errors', () => {
14785
+ it('should have a retrieveHealthbotIngestPaaByPaaName function', (done) => {
14786
+ try {
14787
+ assert.equal(true, typeof a.retrieveHealthbotIngestPaaByPaaName === 'function');
14788
+ done();
14789
+ } catch (error) {
14790
+ log.error(`Test Failure: ${error}`);
14791
+ done(error);
14792
+ }
14793
+ }).timeout(attemptTimeout);
14794
+ it('should error if - missing paaName', (done) => {
14795
+ try {
14796
+ a.retrieveHealthbotIngestPaaByPaaName(null, null, (data, error) => {
14797
+ try {
14798
+ const displayE = 'paaName is required';
14799
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-retrieveHealthbotIngestPaaByPaaName', displayE);
14800
+ done();
14801
+ } catch (err) {
14802
+ log.error(`Test Failure: ${err}`);
14803
+ done(err);
14804
+ }
14805
+ });
14806
+ } catch (error) {
14807
+ log.error(`Adapter Exception: ${error}`);
14808
+ done(error);
14809
+ }
14810
+ }).timeout(attemptTimeout);
14811
+ });
14812
+
14813
+ describe('#updateIngestPaaByPaaName - errors', () => {
14814
+ it('should have a updateIngestPaaByPaaName function', (done) => {
14815
+ try {
14816
+ assert.equal(true, typeof a.updateIngestPaaByPaaName === 'function');
14817
+ done();
14818
+ } catch (error) {
14819
+ log.error(`Test Failure: ${error}`);
14820
+ done(error);
14821
+ }
14822
+ }).timeout(attemptTimeout);
14823
+ it('should error if - missing paaName', (done) => {
14824
+ try {
14825
+ a.updateIngestPaaByPaaName(null, null, (data, error) => {
14826
+ try {
14827
+ const displayE = 'paaName is required';
14828
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-updateIngestPaaByPaaName', displayE);
14829
+ done();
14830
+ } catch (err) {
14831
+ log.error(`Test Failure: ${err}`);
14832
+ done(err);
14833
+ }
14834
+ });
14835
+ } catch (error) {
14836
+ log.error(`Adapter Exception: ${error}`);
14837
+ done(error);
14838
+ }
14839
+ }).timeout(attemptTimeout);
14840
+ it('should error if - missing body', (done) => {
14841
+ try {
14842
+ a.updateIngestPaaByPaaName('fakeparam', null, (data, error) => {
14843
+ try {
14844
+ const displayE = 'body is required';
14845
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-updateIngestPaaByPaaName', displayE);
14846
+ done();
14847
+ } catch (err) {
14848
+ log.error(`Test Failure: ${err}`);
14849
+ done(err);
14850
+ }
14851
+ });
14852
+ } catch (error) {
14853
+ log.error(`Adapter Exception: ${error}`);
14854
+ done(error);
14855
+ }
14856
+ }).timeout(attemptTimeout);
14857
+ });
14858
+
14859
+ describe('#createIngestPaaByPaaName - errors', () => {
14860
+ it('should have a createIngestPaaByPaaName function', (done) => {
14861
+ try {
14862
+ assert.equal(true, typeof a.createIngestPaaByPaaName === 'function');
14863
+ done();
14864
+ } catch (error) {
14865
+ log.error(`Test Failure: ${error}`);
14866
+ done(error);
14867
+ }
14868
+ }).timeout(attemptTimeout);
14869
+ it('should error if - missing paaName', (done) => {
14870
+ try {
14871
+ a.createIngestPaaByPaaName(null, null, (data, error) => {
14872
+ try {
14873
+ const displayE = 'paaName is required';
14874
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-createIngestPaaByPaaName', displayE);
14875
+ done();
14876
+ } catch (err) {
14877
+ log.error(`Test Failure: ${err}`);
14878
+ done(err);
14879
+ }
14880
+ });
14881
+ } catch (error) {
14882
+ log.error(`Adapter Exception: ${error}`);
14883
+ done(error);
14884
+ }
14885
+ }).timeout(attemptTimeout);
14886
+ it('should error if - missing body', (done) => {
14887
+ try {
14888
+ a.createIngestPaaByPaaName('fakeparam', null, (data, error) => {
14889
+ try {
14890
+ const displayE = 'body is required';
14891
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-createIngestPaaByPaaName', displayE);
14892
+ done();
14893
+ } catch (err) {
14894
+ log.error(`Test Failure: ${err}`);
14895
+ done(err);
14896
+ }
14897
+ });
14898
+ } catch (error) {
14899
+ log.error(`Adapter Exception: ${error}`);
14900
+ done(error);
14901
+ }
14902
+ }).timeout(attemptTimeout);
14903
+ });
14904
+
14905
+ describe('#deleteHealthbotIngestIfa - errors', () => {
14906
+ it('should have a deleteHealthbotIngestIfa function', (done) => {
14907
+ try {
14908
+ assert.equal(true, typeof a.deleteHealthbotIngestIfa === 'function');
14909
+ done();
14910
+ } catch (error) {
14911
+ log.error(`Test Failure: ${error}`);
14912
+ done(error);
14913
+ }
14914
+ }).timeout(attemptTimeout);
14915
+ });
14916
+
14917
+ describe('#retrieveHealthbotIngestIfa - errors', () => {
14918
+ it('should have a retrieveHealthbotIngestIfa function', (done) => {
14919
+ try {
14920
+ assert.equal(true, typeof a.retrieveHealthbotIngestIfa === 'function');
14921
+ done();
14922
+ } catch (error) {
14923
+ log.error(`Test Failure: ${error}`);
14924
+ done(error);
14925
+ }
14926
+ }).timeout(attemptTimeout);
14927
+ });
14928
+
14929
+ describe('#createHealthbotIngestIfa - errors', () => {
14930
+ it('should have a createHealthbotIngestIfa function', (done) => {
14931
+ try {
14932
+ assert.equal(true, typeof a.createHealthbotIngestIfa === 'function');
14933
+ done();
14934
+ } catch (error) {
14935
+ log.error(`Test Failure: ${error}`);
14936
+ done(error);
14937
+ }
14938
+ }).timeout(attemptTimeout);
14939
+ it('should error if - missing body', (done) => {
14940
+ try {
14941
+ a.createHealthbotIngestIfa(null, (data, error) => {
14942
+ try {
14943
+ const displayE = 'body is required';
14944
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-createHealthbotIngestIfa', displayE);
14945
+ done();
14946
+ } catch (err) {
14947
+ log.error(`Test Failure: ${err}`);
14948
+ done(err);
14949
+ }
14950
+ });
14951
+ } catch (error) {
14952
+ log.error(`Adapter Exception: ${error}`);
14953
+ done(error);
14954
+ }
14955
+ }).timeout(attemptTimeout);
14956
+ });
14957
+
14958
+ describe('#updateHealthbotIngestIfa - errors', () => {
14959
+ it('should have a updateHealthbotIngestIfa function', (done) => {
14960
+ try {
14961
+ assert.equal(true, typeof a.updateHealthbotIngestIfa === 'function');
14962
+ done();
14963
+ } catch (error) {
14964
+ log.error(`Test Failure: ${error}`);
14965
+ done(error);
14966
+ }
14967
+ }).timeout(attemptTimeout);
14968
+ it('should error if - missing body', (done) => {
14969
+ try {
14970
+ a.updateHealthbotIngestIfa(null, (data, error) => {
14971
+ try {
14972
+ const displayE = 'body is required';
14973
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-updateHealthbotIngestIfa', displayE);
14974
+ done();
14975
+ } catch (err) {
14976
+ log.error(`Test Failure: ${err}`);
14977
+ done(err);
14978
+ }
14979
+ });
14980
+ } catch (error) {
14981
+ log.error(`Adapter Exception: ${error}`);
14982
+ done(error);
14983
+ }
14984
+ }).timeout(attemptTimeout);
14985
+ });
14986
+
14987
+ describe('#retrieveHealthbotIngestIfaDeviceIds - errors', () => {
14988
+ it('should have a retrieveHealthbotIngestIfaDeviceIds function', (done) => {
14989
+ try {
14990
+ assert.equal(true, typeof a.retrieveHealthbotIngestIfaDeviceIds === 'function');
14991
+ done();
14992
+ } catch (error) {
14993
+ log.error(`Test Failure: ${error}`);
14994
+ done(error);
14995
+ }
14996
+ }).timeout(attemptTimeout);
14997
+ });
14998
+
14999
+ describe('#retrieveHealthbotIngestIfaDevices - errors', () => {
15000
+ it('should have a retrieveHealthbotIngestIfaDevices function', (done) => {
15001
+ try {
15002
+ assert.equal(true, typeof a.retrieveHealthbotIngestIfaDevices === 'function');
15003
+ done();
15004
+ } catch (error) {
15005
+ log.error(`Test Failure: ${error}`);
15006
+ done(error);
15007
+ }
15008
+ }).timeout(attemptTimeout);
15009
+ });
15010
+
15011
+ describe('#deleteHealthbotIngestIfaDeviceById - errors', () => {
15012
+ it('should have a deleteHealthbotIngestIfaDeviceById function', (done) => {
15013
+ try {
15014
+ assert.equal(true, typeof a.deleteHealthbotIngestIfaDeviceById === 'function');
15015
+ done();
15016
+ } catch (error) {
15017
+ log.error(`Test Failure: ${error}`);
15018
+ done(error);
15019
+ }
15020
+ }).timeout(attemptTimeout);
15021
+ it('should error if - missing id', (done) => {
15022
+ try {
15023
+ a.deleteHealthbotIngestIfaDeviceById(null, (data, error) => {
15024
+ try {
15025
+ const displayE = 'id is required';
15026
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-deleteHealthbotIngestIfaDeviceById', displayE);
15027
+ done();
15028
+ } catch (err) {
15029
+ log.error(`Test Failure: ${err}`);
15030
+ done(err);
15031
+ }
15032
+ });
15033
+ } catch (error) {
15034
+ log.error(`Adapter Exception: ${error}`);
15035
+ done(error);
15036
+ }
15037
+ }).timeout(attemptTimeout);
15038
+ });
15039
+
15040
+ describe('#retrieveHealthbotIngestIfaDeviceById - errors', () => {
15041
+ it('should have a retrieveHealthbotIngestIfaDeviceById function', (done) => {
15042
+ try {
15043
+ assert.equal(true, typeof a.retrieveHealthbotIngestIfaDeviceById === 'function');
15044
+ done();
15045
+ } catch (error) {
15046
+ log.error(`Test Failure: ${error}`);
15047
+ done(error);
15048
+ }
15049
+ }).timeout(attemptTimeout);
15050
+ it('should error if - missing id', (done) => {
15051
+ try {
15052
+ a.retrieveHealthbotIngestIfaDeviceById(null, null, (data, error) => {
15053
+ try {
15054
+ const displayE = 'id is required';
15055
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-retrieveHealthbotIngestIfaDeviceById', displayE);
15056
+ done();
15057
+ } catch (err) {
15058
+ log.error(`Test Failure: ${err}`);
15059
+ done(err);
15060
+ }
15061
+ });
15062
+ } catch (error) {
15063
+ log.error(`Adapter Exception: ${error}`);
15064
+ done(error);
15065
+ }
15066
+ }).timeout(attemptTimeout);
15067
+ });
15068
+
15069
+ describe('#createHealthbotIngestIfaDeviceById - errors', () => {
15070
+ it('should have a createHealthbotIngestIfaDeviceById function', (done) => {
15071
+ try {
15072
+ assert.equal(true, typeof a.createHealthbotIngestIfaDeviceById === 'function');
15073
+ done();
15074
+ } catch (error) {
15075
+ log.error(`Test Failure: ${error}`);
15076
+ done(error);
15077
+ }
15078
+ }).timeout(attemptTimeout);
15079
+ it('should error if - missing id', (done) => {
15080
+ try {
15081
+ a.createHealthbotIngestIfaDeviceById(null, null, (data, error) => {
15082
+ try {
15083
+ const displayE = 'id is required';
15084
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-createHealthbotIngestIfaDeviceById', displayE);
15085
+ done();
15086
+ } catch (err) {
15087
+ log.error(`Test Failure: ${err}`);
15088
+ done(err);
15089
+ }
15090
+ });
15091
+ } catch (error) {
15092
+ log.error(`Adapter Exception: ${error}`);
15093
+ done(error);
15094
+ }
15095
+ }).timeout(attemptTimeout);
15096
+ it('should error if - missing body', (done) => {
15097
+ try {
15098
+ a.createHealthbotIngestIfaDeviceById('fakeparam', null, (data, error) => {
15099
+ try {
15100
+ const displayE = 'body is required';
15101
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-createHealthbotIngestIfaDeviceById', displayE);
15102
+ done();
15103
+ } catch (err) {
15104
+ log.error(`Test Failure: ${err}`);
15105
+ done(err);
15106
+ }
15107
+ });
15108
+ } catch (error) {
15109
+ log.error(`Adapter Exception: ${error}`);
15110
+ done(error);
15111
+ }
15112
+ }).timeout(attemptTimeout);
15113
+ });
15114
+
15115
+ describe('#updateHealthbotIngestIfaDeviceById - errors', () => {
15116
+ it('should have a updateHealthbotIngestIfaDeviceById function', (done) => {
15117
+ try {
15118
+ assert.equal(true, typeof a.updateHealthbotIngestIfaDeviceById === 'function');
15119
+ done();
15120
+ } catch (error) {
15121
+ log.error(`Test Failure: ${error}`);
15122
+ done(error);
15123
+ }
15124
+ }).timeout(attemptTimeout);
15125
+ it('should error if - missing id', (done) => {
15126
+ try {
15127
+ a.updateHealthbotIngestIfaDeviceById(null, null, (data, error) => {
15128
+ try {
15129
+ const displayE = 'id is required';
15130
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-updateHealthbotIngestIfaDeviceById', displayE);
15131
+ done();
15132
+ } catch (err) {
15133
+ log.error(`Test Failure: ${err}`);
15134
+ done(err);
15135
+ }
15136
+ });
15137
+ } catch (error) {
15138
+ log.error(`Adapter Exception: ${error}`);
15139
+ done(error);
15140
+ }
15141
+ }).timeout(attemptTimeout);
15142
+ it('should error if - missing body', (done) => {
15143
+ try {
15144
+ a.updateHealthbotIngestIfaDeviceById('fakeparam', null, (data, error) => {
15145
+ try {
15146
+ const displayE = 'body is required';
15147
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-updateHealthbotIngestIfaDeviceById', displayE);
15148
+ done();
15149
+ } catch (err) {
15150
+ log.error(`Test Failure: ${err}`);
15151
+ done(err);
15152
+ }
15153
+ });
15154
+ } catch (error) {
15155
+ log.error(`Adapter Exception: ${error}`);
15156
+ done(error);
15157
+ }
15158
+ }).timeout(attemptTimeout);
15159
+ });
15160
+
15161
+ describe('#postJunosEncode - errors', () => {
15162
+ it('should have a postJunosEncode function', (done) => {
15163
+ try {
15164
+ assert.equal(true, typeof a.postJunosEncode === 'function');
15165
+ done();
15166
+ } catch (error) {
15167
+ log.error(`Test Failure: ${error}`);
15168
+ done(error);
15169
+ }
15170
+ }).timeout(attemptTimeout);
15171
+ it('should error if - missing body', (done) => {
15172
+ try {
15173
+ a.postJunosEncode(null, (data, error) => {
15174
+ try {
15175
+ const displayE = 'body is required';
15176
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-postJunosEncode', displayE);
15177
+ done();
15178
+ } catch (err) {
15179
+ log.error(`Test Failure: ${err}`);
15180
+ done(err);
15181
+ }
15182
+ });
15183
+ } catch (error) {
15184
+ log.error(`Adapter Exception: ${error}`);
15185
+ done(error);
15186
+ }
15187
+ }).timeout(attemptTimeout);
15188
+ });
15189
+
15190
+ describe('#postJunosDecode - errors', () => {
15191
+ it('should have a postJunosDecode function', (done) => {
15192
+ try {
15193
+ assert.equal(true, typeof a.postJunosDecode === 'function');
15194
+ done();
15195
+ } catch (error) {
15196
+ log.error(`Test Failure: ${error}`);
15197
+ done(error);
15198
+ }
15199
+ }).timeout(attemptTimeout);
15200
+ it('should error if - missing body', (done) => {
15201
+ try {
15202
+ a.postJunosDecode(null, (data, error) => {
15203
+ try {
15204
+ const displayE = 'body is required';
15205
+ runErrorAsserts(data, error, 'AD.300', 'Test-paragon_insights-adapter-postJunosDecode', displayE);
15206
+ done();
15207
+ } catch (err) {
15208
+ log.error(`Test Failure: ${err}`);
15209
+ done(err);
15210
+ }
15211
+ });
15212
+ } catch (error) {
15213
+ log.error(`Adapter Exception: ${error}`);
15214
+ done(error);
15215
+ }
15216
+ }).timeout(attemptTimeout);
15217
+ });
14655
15218
  });
14656
15219
  });