Cleanup rascsi-web mocking for current develop (#301)

This commit is contained in:
Daniel Markstedt 2021-10-05 18:39:26 -07:00 committed by GitHub
parent b79fd17f6f
commit 8f09f97d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 25 deletions

View File

@ -15,7 +15,9 @@ $ BASE_DIR=/tmp/images/ PATH=$PATH:`pwd`/mock/bin/ python3 web.py
### Mocks for local development
You may edit the files under `mock/bin` to simulate rascsi command responses.
You may edit the files under `mock/bin` to simulate Linux command responses.
TODO: rascsi-web uses protobuf commands to send and receive data from rascsi.
A separate mocking solusion will be needed for this interface.
## Pushing to the Pi via git

View File

@ -1,12 +0,0 @@
#!/usr/bin/env bash
# Mock responses to rascsi-web
case $1 in
"link")
echo "link here"
;;
**)
echo "default"
;;
esac

View File

@ -1,12 +0,0 @@
#!/usr/bin/env bash
# Mock responses to rascsi-web
case $1 in
-f)
echo "logs here"
;;
**)
echo "default"
;;
esac