expr-localhost-story Pub

Properties

send::  msg diesel.try 

send::  msg ctx.echo  (userDir=js{{ java....)

send::  msg diesel.props.system 

expect::  (payload containsNot "No permission")$ifc:: diesel[="isLocalhost"]
expect::  (payload contains "No permission")$ifc:: NOT (diesel[="isLocalhost"])
expect::  (payload[="diesel.testprop"="diesel.testprop"] is "tp")$ifc:: diesel[="isLocaldevbox"]

val tp=diesel[="props"][="system"][="java.runtime.name"="java.runtime.name"] expect::  (tp contains "Ja")$ifc:: diesel[="isLocaldevbox"]

val tp=diesel[="props"][="system"][="dieselTestProp"] expect::  (tp is "dtp")$ifc:: diesel[="isLocaldevbox"]

send::  msg diesel.props.file  (path="./rk-test.properties"="./rk-test...)

expect::  (payload[="rk.safemode"] is defined)$ifc:: diesel[="isLocaldevbox"]

send::  msg diesel.props.jsonFile  (path="./conf/testdoc.json"="./conf/te...)

expect::  (payload[="ENV_NAME"] is defined)$ifc:: diesel[="isLocaldevbox"]

Props

Can only access system props in your local server, not our cloud

send::  msg diesel.props.system 

expect::  (payload containsNot "No permission")$ifc:: diesel[="isLocalhost"]
expect::  (payload contains "No permission")$ifc:: NOT (diesel[="isLocalhost"])

send::  msg diesel.catch 


Was this useful?    

By: Razie | 2021-01-24 .. 2022-06-18 | Tags: story , dsl , sanity


Viewed 151 times ( | History | Print ) this page.

You need to log in to post a comment!

© Copyright DieselApps, 2012-2022, all rights reserved.