aboutsummaryrefslogtreecommitdiffstats
path: root/sli/provider/src/test/resources/expression.tests
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-07-18 19:40:01 -0400
committerDan Timoney <dtimoney@att.com>2017-07-20 16:05:57 -0400
commit2a93b9ddf308b6bdd135be182c1b3fa779891840 (patch)
tree0333ca07b5858e94e21daad13d32cdacf995861f /sli/provider/src/test/resources/expression.tests
parentf5882cb4cd6338dcd9780c770056f4047c9ff174 (diff)
Populate seed code
Add seed code for sli/core repository Issue: CCSDK-6 Change-Id: Iaeb54c6135a94a6ffec0c7fd96505d72d18aeb00 Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'sli/provider/src/test/resources/expression.tests')
-rwxr-xr-xsli/provider/src/test/resources/expression.tests24
1 files changed, 24 insertions, 0 deletions
diff --git a/sli/provider/src/test/resources/expression.tests b/sli/provider/src/test/resources/expression.tests
new file mode 100755
index 00000000..848a0e7a
--- /dev/null
+++ b/sli/provider/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