@@ -3607,10 +3607,6 @@ test_deviation(void **state)
3607
3607
"deviation /top {deviate replace {mandatory true;}}}" , LYS_IN_YANG , & mod ));
3608
3608
CHECK_LOG_CTX ("Invalid deviation of container node - it is not possible to replace \"mandatory\" property." ,
3609
3609
"/kk2:{deviation='/top'}" , 0 );
3610
- assert_int_equal (LY_EVALID , lys_parse_mem (UTEST_LYCTX , "module kk3 {namespace urn:kk3;prefix kk3; container top {leaf x {type string;}}"
3611
- "deviation /top/x {deviate replace {mandatory true;}}}" , LYS_IN_YANG , & mod ));
3612
- CHECK_LOG_CTX ("Invalid deviation replacing \"mandatory\" property \"mandatory true\" which is not present." ,
3613
- "/kk3:{deviation='/top/x'}" , 0 );
3614
3610
assert_int_equal (LY_EVALID , lys_parse_mem (UTEST_LYCTX , "module kk4 {namespace urn:kk4;prefix kk4; leaf x {mandatory true; type string;}"
3615
3611
"deviation /x {deviate add {mandatory false;}}}" , LYS_IN_YANG , & mod ));
3616
3612
CHECK_LOG_CTX ("Invalid deviation adding \"mandatory\" property which already exists (with value \"mandatory true\")." ,
@@ -3661,18 +3657,6 @@ test_deviation(void **state)
3661
3657
"deviation /x {deviate add {max-elements 1;}}}" , LYS_IN_YANG , & mod ));
3662
3658
CHECK_LOG_CTX ("Invalid deviation adding \"max-elements\" property which already exists (with value \"5\")." ,
3663
3659
"/mm8:{deviation='/x'}" , 0 );
3664
- assert_int_equal (LY_EVALID , lys_parse_mem (UTEST_LYCTX , "module mm9 {namespace urn:mm9;prefix mm9; leaf-list x {type string;}"
3665
- "deviation /x {deviate replace {min-elements 1;}}}" , LYS_IN_YANG , & mod ));
3666
- CHECK_LOG_CTX ("Invalid deviation replacing \"min-elements\" property which is not present." , "/mm9:{deviation='/x'}" , 0 );
3667
- assert_int_equal (LY_EVALID , lys_parse_mem (UTEST_LYCTX , "module mm10 {namespace urn:mm10;prefix mm10; list x {config false;}"
3668
- "deviation /x {deviate replace {min-elements 1;}}}" , LYS_IN_YANG , & mod ));
3669
- CHECK_LOG_CTX ("Invalid deviation replacing \"min-elements\" property which is not present." , "/mm10:{deviation='/x'}" , 0 );
3670
- assert_int_equal (LY_EVALID , lys_parse_mem (UTEST_LYCTX , "module mm11 {namespace urn:mm11;prefix mm11; leaf-list x {type string;}"
3671
- "deviation /x {deviate replace {max-elements 1;}}}" , LYS_IN_YANG , & mod ));
3672
- CHECK_LOG_CTX ("Invalid deviation replacing \"max-elements\" property which is not present." , "/mm11:{deviation='/x'}" , 0 );
3673
- assert_int_equal (LY_EVALID , lys_parse_mem (UTEST_LYCTX , "module mm12 {namespace urn:mm12;prefix mm12; list x {config false; }"
3674
- "deviation /x {deviate replace {max-elements 1;}}}" , LYS_IN_YANG , & mod ));
3675
- CHECK_LOG_CTX ("Invalid deviation replacing \"max-elements\" property which is not present." , "/mm12:{deviation='/x'}" , 0 );
3676
3660
3677
3661
assert_int_equal (LY_EVALID , lys_parse_mem (UTEST_LYCTX , "module nn1 {namespace urn:nn1;prefix nn1; anyxml x;"
3678
3662
"deviation /x {deviate replace {type string;}}}" , LYS_IN_YANG , & mod ));
0 commit comments