mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 11:40:11 +03:00
gall: fix tests
This commit is contained in:
parent
6a406e6b29
commit
1c398594c7
@ -1,3 +0,0 @@
|
|||||||
:- %say
|
|
||||||
|= [[now=@da eny=@uvJ bec=beak] ~ ~]
|
|
||||||
[%tapp-admin %cancel]
|
|
@ -1,3 +0,0 @@
|
|||||||
:- %say
|
|
||||||
|= [[now=@da eny=@uvJ bec=beak] ~ ~]
|
|
||||||
[%tapp-admin %restart]
|
|
@ -1,7 +1,7 @@
|
|||||||
:: eth-watcher: ethereum event log collector
|
:: eth-watcher: ethereum event log collector
|
||||||
::
|
::
|
||||||
/- spider, *eth-watcher
|
/- spider, *eth-watcher
|
||||||
/+ tapp, strandio, ethio
|
/+ strandio, ethio
|
||||||
=, ethereum-types
|
=, ethereum-types
|
||||||
=, able:jael
|
=, able:jael
|
||||||
::
|
::
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
/+ *test
|
|
||||||
::
|
|
||||||
/= app /: /===/app/acme
|
|
||||||
/!noun/
|
|
||||||
::
|
|
||||||
|%
|
|
||||||
:: tests that acme preps without moves
|
|
||||||
::
|
|
||||||
++ test-prep
|
|
||||||
=^ moves app (~(prep app *bowl:gall *acme:app) ~)
|
|
||||||
%+ expect-eq
|
|
||||||
!> &
|
|
||||||
!> ?=([[bone %serve *] ~] moves)
|
|
||||||
:: tests that acme inits on first order
|
|
||||||
::
|
|
||||||
++ test-first-order
|
|
||||||
=/ dom=(set turf) (sy /org/urbit/zod ~)
|
|
||||||
=^ moves app (~(poke-acme-order app *bowl:gall *acme:app) dom)
|
|
||||||
;: weld
|
|
||||||
%+ expect-eq
|
|
||||||
!> 2
|
|
||||||
!> (lent moves)
|
|
||||||
::
|
|
||||||
%+ expect-eq
|
|
||||||
!> [~ dom]
|
|
||||||
!> ?~(next-order.app ~ (some ~(key by dom.u.next-order.app)))
|
|
||||||
::
|
|
||||||
%+ expect-eq
|
|
||||||
!> &
|
|
||||||
!> !=(*key:rsa:app key.act.app)
|
|
||||||
::
|
|
||||||
%+ expect-eq
|
|
||||||
!> &
|
|
||||||
!> !=(*key:rsa:app cey.app)
|
|
||||||
==
|
|
||||||
:: tests that acme requests service directory on %wake
|
|
||||||
::
|
|
||||||
++ test-first-order-wake
|
|
||||||
=^ moves app (~(wake app *bowl:gall *acme:app) /acme/try/1/directory ~)
|
|
||||||
%+ expect-eq
|
|
||||||
!> :~ :* ost.bow.app
|
|
||||||
%request
|
|
||||||
/acme/try/2/directory
|
|
||||||
[%'GET' (crip (en-purl:html directory-base:app)) ~ ~]
|
|
||||||
*outbound-config:iris
|
|
||||||
== ==
|
|
||||||
!> moves
|
|
||||||
--
|
|
Loading…
Reference in New Issue
Block a user