Astroport.ONE/specs/astroport_spec.sh

47 lines
1.2 KiB
Bash
Raw Normal View History

#shellcheck shell=sh
Describe 'Dependency'
Describe 'ipfs:'
It 'is available'
When run ipfs --help
The output should include "ipfs"
The status should be success
The stderr should equal ""
End
End
End
Describe 'Astroport'
2022-12-26 23:24:52 +01:00
Describe 'tools/my.sh'
Include ./tools/my.sh
2022-12-25 17:27:07 +01:00
It 'does my env variables'
2022-12-26 23:24:52 +01:00
myhost() {
2022-12-29 14:51:05 +01:00
echo $myHOST
echo $myIPFS
2022-12-26 23:24:52 +01:00
}
2022-12-25 15:39:47 +01:00
When call myhost
The output should include astroport.
The output should include ipfs.
The status should be success
The stderr should equal ""
End
2022-12-25 17:27:07 +01:00
It 'does host html register page'
2022-12-29 14:51:05 +01:00
When call myHtml
2022-12-25 17:27:07 +01:00
The stdout should include $(hostname)
The stdout should include $IPFSNODEID
The stdout should include $myASTROPORT
The stdout should include $myIPFS
The status should be success
The stderr should equal ""
End
2022-12-25 18:11:26 +01:00
It 'does localhost html register page'
2022-12-26 23:24:52 +01:00
isLAN=true
2022-12-29 14:51:05 +01:00
When call myHtml
2022-12-25 18:11:26 +01:00
The stdout should include "input name='salt' value=''"
The stdout should include "input name='pepper' value=''"
The status should be success
The stderr should equal ""
End
End
End