expr-localhost-story Pub Share

Properties

send::  msg diesel.try 

send::  msg ctx.echo  (userDir)

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 ="./project/build.properties"...)

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

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

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 710 times ( | History | Print ) this page.

You need to log in to post a comment!

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