Rebrand project to PiSCSI (#1016)

* Rebrand project to PiSCSI
- rascsi ->piscsi
- rasctl -> scsictl
- rasdump -> scsidump
- ras* -> piscsi* (rasutil -> piscsi_util, etc.)

* Refined the formatting and wording of the app startup banner
* Kept some references to rascsi and rasctl where backwards compatibility is concerned
* Point to the new github repo URL

Co-authored-by: nucleogenic <nr@nucleogenic.com>
Co-authored-by: Uwe Seimet <Uwe.Seimet@seimet.de>
This commit is contained in:
Daniel Markstedt
2022-12-05 09:58:23 -08:00
committed by GitHub
parent 12068cafb8
commit 52c2aa474f
274 changed files with 2341 additions and 2380 deletions
+4 -4
View File
@@ -3,12 +3,12 @@ from conftest import STATUS_SUCCESS, STATUS_ERROR
# route("/login", methods=["POST"])
def test_login_with_valid_credentials(pytestconfig, http_client_unauthenticated):
# Note: This test depends on the rascsi group existing and 'username' a member the group
# Note: This test depends on the piscsi group existing and 'username' a member the group
response = http_client_unauthenticated.post(
"/login",
data={
"username": pytestconfig.getoption("rascsi_username"),
"password": pytestconfig.getoption("rascsi_password"),
"username": pytestconfig.getoption("piscsi_username"),
"password": pytestconfig.getoption("piscsi_password"),
},
)
@@ -34,7 +34,7 @@ def test_login_with_invalid_credentials(http_client_unauthenticated):
assert response.status_code == 401
assert response_data["status"] == STATUS_ERROR
assert response_data["messages"][0]["message"] == (
"You must log in with valid credentials for a user in the 'rascsi' group"
"You must log in with valid credentials for a user in the 'piscsi' group"
)
+2 -2
View File
@@ -107,11 +107,11 @@ def test_create_image_with_properties_file(http_client, delete_file):
# route("/sys/manpage", methods=["POST"])
def test_show_manpage(http_client):
response = http_client.get("/sys/manpage?app=rascsi")
response = http_client.get("/sys/manpage?app=piscsi")
response_data = response.json()
assert response.status_code == 200
assert "rascsi" in response_data["data"]["manpage"]
assert "piscsi" in response_data["data"]["manpage"]
# route("/healthcheck", methods=["GET"])
+2 -2
View File
@@ -61,7 +61,7 @@ def test_show_logs(http_client):
"/logs/show",
data={
"lines": 100,
"scope": "rascsi",
"scope": "piscsi",
},
)
@@ -69,7 +69,7 @@ def test_show_logs(http_client):
assert response.status_code == 200
assert response_data["data"]["lines"] == "100"
assert response_data["data"]["scope"] == "rascsi"
assert response_data["data"]["scope"] == "piscsi"
# route("/config/save", methods=["POST"])
+5 -5
View File
@@ -11,8 +11,8 @@ def pytest_addoption(parser):
parser.addoption("--base_url", action="store", default=default_base_url)
parser.addoption("--httpserver_host", action="store", default=socket.gethostname())
parser.addoption("--httpserver_listen_address", action="store", default="0.0.0.0")
parser.addoption("--rascsi_username", action="store", default="pi")
parser.addoption("--rascsi_password", action="store", default="rascsi")
parser.addoption("--piscsi_username", action="store", default="pi")
parser.addoption("--piscsi_password", action="store", default="piscsi")
@pytest.fixture(scope="session")
@@ -21,7 +21,7 @@ def env(pytestconfig):
return {
"is_docker": bool(os.getenv("DOCKER")),
"home_dir": home_dir,
"cfg_dir": f"{home_dir}/.config/rascsi",
"cfg_dir": f"{home_dir}/.config/piscsi",
"images_dir": f"{home_dir}/images",
"file_server_dir": f"{home_dir}/shared_files",
}
@@ -63,8 +63,8 @@ def create_http_client(pytestconfig):
session.post(
"/login",
data={
"username": pytestconfig.getoption("rascsi_username"),
"password": pytestconfig.getoption("rascsi_password"),
"username": pytestconfig.getoption("piscsi_username"),
"password": pytestconfig.getoption("piscsi_password"),
},
)
return session