@@ -812,15 +812,15 @@ class WoTClientTest {
812812 basic_sc : {
813813 scheme : "basic" ,
814814 } ,
815- opcua_secure_channel_sc : {
816- scheme : "uav :channel-security" ,
815+ my_secure_channel_sc : {
816+ scheme : "my :channel-security" ,
817817 } ,
818- opcua_authentication_sc : {
819- scheme : "uav :authentication" ,
818+ my_authentication_sc : {
819+ scheme : "my :authentication" ,
820820 } ,
821821 combo_sc : {
822822 scheme : "combo" ,
823- allOf : [ "opcua_secure_channel_sc " , "opcua_authentication_sc " ] ,
823+ allOf : [ "my_secure_channel_sc " , "my_authentication_sc " ] ,
824824 } ,
825825 } ;
826826 ct . security = [ "combo_sc" ] ;
@@ -835,8 +835,8 @@ class WoTClientTest {
835835 const comboScheme = pc . securitySchemes [ 0 ] as AllOfSecurityScheme ;
836836 expect ( comboScheme . allOf ) . instanceOf ( Array ) ;
837837 expect ( comboScheme . allOf . length ) . equal ( 2 ) ;
838- expect ( comboScheme . allOf [ 0 ] . scheme ) . equals ( "uav :channel-security" ) ;
839- expect ( comboScheme . allOf [ 1 ] . scheme ) . equals ( "uav :authentication" ) ;
838+ expect ( comboScheme . allOf [ 0 ] . scheme ) . equals ( "my :channel-security" ) ;
839+ expect ( comboScheme . allOf [ 1 ] . scheme ) . equals ( "my :authentication" ) ;
840840 }
841841
842842 @test "ensure combo security - oneOf" ( ) {
@@ -845,24 +845,24 @@ class WoTClientTest {
845845 basic_sc : {
846846 scheme : "basic" ,
847847 } ,
848- opcua_secure_channel_encrypt_sc : {
849- scheme : "uav :channel-security" ,
848+ my_secure_channel_encrypt_sc : {
849+ scheme : "my :channel-security" ,
850850 mode : "encrypt" ,
851851 } ,
852- opcua_secure_channel_sign_sc : {
853- scheme : "uav :channel-security" ,
852+ my_secure_channel_sign_sc : {
853+ scheme : "my :channel-security" ,
854854 mode : "sign" ,
855855 } ,
856- opcua_authentication_sc : {
857- scheme : "uav :authentication" ,
856+ my_authentication_sc : {
857+ scheme : "my :authentication" ,
858858 } ,
859- comob_opcua_secure_channel : {
859+ comob_my_secure_channel : {
860860 scheme : "combo" ,
861- oneOf : [ "opcua_secure_channel_encrypt_sc " , "opcua_secure_channel_sign_sc " ] ,
861+ oneOf : [ "my_secure_channel_encrypt_sc " , "my_secure_channel_sign_sc " ] ,
862862 } ,
863863 combo_sc : {
864864 scheme : "combo" ,
865- allOf : [ "comob_opcua_secure_channel " , "opcua_authentication_sc " ] ,
865+ allOf : [ "comob_my_secure_channel " , "my_authentication_sc " ] ,
866866 } ,
867867 } ;
868868 ct . security = [ "combo_sc" ] ;
@@ -879,16 +879,16 @@ class WoTClientTest {
879879 expect ( comboScheme . allOf ) . instanceOf ( Array ) ;
880880 expect ( comboScheme . allOf . length ) . equal ( 2 ) ;
881881 expect ( comboScheme . allOf [ 0 ] . scheme ) . equals ( "combo" ) ;
882- expect ( comboScheme . allOf [ 1 ] . scheme ) . equals ( "uav :authentication" ) ;
882+ expect ( comboScheme . allOf [ 1 ] . scheme ) . equals ( "my :authentication" ) ;
883883
884884 //
885885 const firstScheme = comboScheme . allOf [ 0 ] as OneOfSecurityScheme ;
886886 expect ( firstScheme . scheme ) . equal ( "combo" ) ;
887887 expect ( firstScheme . oneOf ) . instanceOf ( Array ) ;
888888
889889 expect ( firstScheme . oneOf . length ) . equal ( 2 ) ;
890- expect ( firstScheme . oneOf [ 0 ] . scheme ) . equal ( "uav :channel-security" ) ;
891- expect ( firstScheme . oneOf [ 1 ] . scheme ) . equal ( "uav :channel-security" ) ;
890+ expect ( firstScheme . oneOf [ 0 ] . scheme ) . equal ( "my :channel-security" ) ;
891+ expect ( firstScheme . oneOf [ 1 ] . scheme ) . equal ( "my :channel-security" ) ;
892892 }
893893
894894 @test "ensure combo security in form - allOf" ( ) {
@@ -897,15 +897,15 @@ class WoTClientTest {
897897 basic_sc : {
898898 scheme : "basic" ,
899899 } ,
900- opcua_secure_channel_sc : {
901- scheme : "uav :channel-security" ,
900+ my_secure_channel_sc : {
901+ scheme : "my :channel-security" ,
902902 } ,
903- opcua_authentication_sc : {
904- scheme : "uav :authentication" ,
903+ my_authentication_sc : {
904+ scheme : "my :authentication" ,
905905 } ,
906906 combo_sc : {
907907 scheme : "combo" ,
908- allOf : [ "opcua_secure_channel_sc " , "opcua_authentication_sc " ] ,
908+ allOf : [ "my_secure_channel_sc " , "my_authentication_sc " ] ,
909909 } ,
910910 } ;
911911 ct . security = "basic" ;
@@ -918,8 +918,8 @@ class WoTClientTest {
918918 expect ( pc . securitySchemes . length ) . equals ( 1 ) ;
919919 const comboScheme = pc . securitySchemes [ 0 ] as AllOfSecurityScheme ;
920920
921- expect ( comboScheme . allOf [ 0 ] . scheme ) . equals ( "uav :channel-security" ) ;
922- expect ( comboScheme . allOf [ 1 ] . scheme ) . equals ( "uav :authentication" ) ;
921+ expect ( comboScheme . allOf [ 0 ] . scheme ) . equals ( "my :channel-security" ) ;
922+ expect ( comboScheme . allOf [ 1 ] . scheme ) . equals ( "my :authentication" ) ;
923923 }
924924
925925 @test "ensure no infinite loop with recursive combo security" ( ) {
0 commit comments