aboutsummaryrefslogtreecommitdiffstats
path: root/sli/provider-base/src/test/resources/expression.tests
diff options
context:
space:
mode:
authorSmokowski, Kevin (ks6305) <ks6305@us.att.com>2018-11-30 18:00:42 +0000
committerSmokowski, Kevin (ks6305) <kevin.smokowski@att.com>2018-12-03 17:03:26 +0000
commit7f8fd751c9272c33be0b74f02cd962dd615b63d3 (patch)
tree226b421ffe5d8972f472614d5a64ead0b27b105f /sli/provider-base/src/test/resources/expression.tests
parenta8ba189dac17a5627e6e1cf102e63e7f9f29e8e1 (diff)
refactor sli-provider
split sli-provider into sli-provider and sli-provider-base Change-Id: I7b7edb767c04c9a6caf72a9172f49518655e33b7 Issue-ID: CCSDK-778 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com>
Diffstat (limited to 'sli/provider-base/src/test/resources/expression.tests')
-rw-r--r--sli/provider-base/src/test/resources/expression.tests24
1 files changed, 24 insertions, 0 deletions
diff --git a/sli/provider-base/src/test/resources/expression.tests b/sli/provider-base/src/test/resources/expression.tests
new file mode 100644
index 00000000..848a0e7a
--- /dev/null
+++ b/sli/provider-base/src/test/resources/expression.tests
@@ -0,0 +1,24 @@
+# $uni-circuit-id = abc123
+# $uni-cir-units = 10
+# value = 1
+# $arg1 = 2
+# $network.name = vCE0001.in
+# $network.segment[0].provider-segmentation-id = 1212
+# $network.segment[1].provider-segmentation-id = 1213
+# $availability-zone = mtsnj-esx-az01
+length($uni-circuit-id) > 0 # true
+$uni-cir-units * 1000 * 100 / 100 # 10000
+$uni-cir-units / 1000 # 0
+$uni-cir-units - 100 # -90
+$uni-cir-units + 100 # 110
+(value * 3 - $arg1 > 0) and (length($uni-circuit-id) == 0) # true
+'pg-'+$network.name # pg-vCE0001.in
+$network.segment[0].provider-segmentation-id # 1212
+toUpperCase($network.name) # VCE0001.IN
+toLowerCase($network.name) # vce0001.in
+toUpperCase(substr($availability-zone, 0, 5)) # MTSNJ
+convertBase(1234, 10) # 1234
+convertBase(10, 16, 10) # 16
+convertBase(ZZ, 36, 10) # 1295
+convertBase(10, 10, 36) # a
+(0 - 1) * $arg1 # -1