From: Nick Porter Date: Fri, 5 Jan 2024 11:57:37 +0000 (+0000) Subject: Remove Tmp-Group from keyword tests that don't use lists X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e050245af91bd3b55d81d7783f7ee234575d6f8f;p=thirdparty%2Ffreeradius-server.git Remove Tmp-Group from keyword tests that don't use lists --- diff --git a/src/tests/keywords/edit-add-create b/src/tests/keywords/edit-add-create index 2fc291a0abd..e17e34b9a72 100644 --- a/src/tests/keywords/edit-add-create +++ b/src/tests/keywords/edit-add-create @@ -5,6 +5,7 @@ string test_string uint32 test_integer1 uint32 test_integer2 uint32 test_integer3 +group test_group &test_integer1 += 4 if !(&test_integer1 == 4) { @@ -17,15 +18,15 @@ if !(&test_string == "bar") { test_fail } -&Tmp-Group-0 += { +&test_group += { &Filter-Id = "foo" } -if !&Tmp-Group-0 { +if !&test_group { test_fail } -if !(&Tmp-Group-0.Filter-Id == "foo") { +if !(&test_group.Filter-Id == "foo") { test_fail } diff --git a/src/tests/keywords/edit-list-star b/src/tests/keywords/edit-list-star index 79a38441db3..d8a33e24b51 100644 --- a/src/tests/keywords/edit-list-star +++ b/src/tests/keywords/edit-list-star @@ -1,21 +1,24 @@ # # PRE: edit-leaf-star # -&Tmp-Group-0.NAS-Port := { 1, 3, 5, 7, 11 } +group test_group1 +group test_group2 + +&test_group1.NAS-Port := { 1, 3, 5, 7, 11 } &Port-Limit := 0 # # Do operations on sets of inputs. # -&Port-Limit += &Tmp-Group-0.NAS-Port[*] +&Port-Limit += &test_group1.NAS-Port[*] if (!(&Port-Limit == 27)) { test_fail } -&Tmp-Group-1 := &Tmp-Group-0 +&test_group2 := &test_group1 &Port-Limit := 0 -&Port-Limit += &Tmp-Group-1.NAS-Port[*] +&Port-Limit += &test_group2.NAS-Port[*] if (!(&Port-Limit == 27)) { test_fail }