From 8f09f97d30b5c7db6df0fef95184bbdb1f3f9827 Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Tue, 5 Oct 2021 18:39:26 -0700 Subject: [PATCH] Cleanup rascsi-web mocking for current develop (#301) --- src/web/README.md | 4 +++- src/web/mock/bin/ip | 12 ------------ src/web/mock/bin/rasctl | 12 ------------ 3 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 src/web/mock/bin/ip delete mode 100755 src/web/mock/bin/rasctl diff --git a/src/web/README.md b/src/web/README.md index 352e5ce3..8ad84a76 100644 --- a/src/web/README.md +++ b/src/web/README.md @@ -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 diff --git a/src/web/mock/bin/ip b/src/web/mock/bin/ip deleted file mode 100644 index 259dc4b6..00000000 --- a/src/web/mock/bin/ip +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -# Mock responses to rascsi-web -case $1 in - "link") - echo "link here" - ;; - - **) - echo "default" - ;; -esac diff --git a/src/web/mock/bin/rasctl b/src/web/mock/bin/rasctl deleted file mode 100755 index c414d9b1..00000000 --- a/src/web/mock/bin/rasctl +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -# Mock responses to rascsi-web -case $1 in - -f) - echo "logs here" - ;; - - **) - echo "default" - ;; -esac