wiki-story Pub

Generic unit test for wiki messages functionality

Browse a tag

send::  msg snakk.text  (url ="http://www.effectiveskiing.com"...="http://ww...)

expect::  (payload contains "Knowticing")

How to read the contents of a topic in a few formats:

send::  msg diesel.wiki.content  (wpath ="Sample:sample-json-data"...="Sample:sa..., type="JSON"="JSON")

expect::  (payload is JSON)
expect::  (payload[="name"] is "Jake")

send::  msg diesel.wiki.content  (wpath ="Sample:sample-json-data"...="Sample:sa...)

expect::  (payload is String)
send::  msg snakk.parse.json 

expect::  (payload is JSON)

You can format a topic:

send::  msg diesel.wiki.format  (wpath="Admin:UserHome"="Admin:Use...)

expect::  (payload is HTML)

TODO test also the diesel.wiki.updated (wpath, realm, event, userName)


Was this useful?    

By: Razie | 2017-11-30 .. 2022-06-17 | Tags: story , dsl , sanity


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

You need to log in to post a comment!

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