]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
more typos
authorAlan T. DeKok <aland@freeradius.org>
Sun, 8 Oct 2023 13:13:08 +0000 (09:13 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 8 Oct 2023 13:13:08 +0000 (09:13 -0400)
src/tests/modules/redis_ippool/update.unlang

index 26b0ecd5e4f6de69d7feba5b6248e7b52d17ab79..ad593047e98c316591a703bc9422abfed5be2992 100644 (file)
@@ -27,7 +27,7 @@ if !(&reply.Session-Timeout == 30) {
 }
 
 # 4. Verify the gateway was set
-if !(%redis('HGET', "{%{control.IP-Pool.Name}}:ip:%{reply.Framed-IP-Address}", "gateway") == '127.0.0.1') {
+if !(%redis('HGET', "{%{control.IP-Pool.Name}}:ip:%{reply.Framed-IP-Address}", 'gateway') == '127.0.0.1') {
        test_fail
 }
 
@@ -64,12 +64,12 @@ if !(&reply.Framed-IP-Address == %redis('GET', "{%{control.IP-Pool.Name}}:device
 }
 
 # 11. And that the device object will expire a suitable number of seconds into the future
-if !(%redis("TTL", "{%{control.IP-Pool.Name}}:device:%{Calling-Station-ID}") == 60) {
+if !(%redis('TTL', "{%{control.IP-Pool.Name}}:device:%{Calling-Station-ID}") == 60) {
        test_fail
 }
 
 # 12. Verify the gateway was updated
-if !(%redis('HGET', "{%{control.IP-Pool.Name}}:ip:%{Framed-IP-Address} gateway") == '127.0.0.2') {
+if !(%redis('HGET', "{%{control.IP-Pool.Name}}:ip:%{Framed-IP-Address}", 'gateway') == '127.0.0.2') {
        test_fail
 }
 
@@ -101,7 +101,7 @@ if (!invalid) {
 }
 
 # 16. Verify the lease is still associated with the previous device
-if !(&reply.Framed-IP-Address == %redis('GET', "{%{control.IP-Pool.Name}}:device:00:11:22:33:44:55") {
+if !(&reply.Framed-IP-Address == %redis('GET', "{%{control.IP-Pool.Name}}:device:00:11:22:33:44:55")) {
        test_fail
 }