diff options
Diffstat (limited to 'crates/rocie-server/tests')
20 files changed, 193 insertions, 2 deletions
diff --git a/crates/rocie-server/tests/_testenv/init.rs b/crates/rocie-server/tests/_testenv/init.rs index 89384a5..1918595 100644 --- a/crates/rocie-server/tests/_testenv/init.rs +++ b/crates/rocie-server/tests/_testenv/init.rs @@ -1,9 +1,10 @@ -// yt - A fully featured command line YouTube client +// rocie - An enterprise grocery management system // // Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> // SPDX-License-Identifier: GPL-3.0-or-later // -// This file is part of Yt. +// This file is part of Rocie. // // You should have received a copy of the License along with this program. // If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. diff --git a/crates/rocie-server/tests/_testenv/log.rs b/crates/rocie-server/tests/_testenv/log.rs index 837ccdd..05a5a62 100644 --- a/crates/rocie-server/tests/_testenv/log.rs +++ b/crates/rocie-server/tests/_testenv/log.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use crate::testenv::TestEnv; macro_rules! request { diff --git a/crates/rocie-server/tests/_testenv/mod.rs b/crates/rocie-server/tests/_testenv/mod.rs index 56cea71..58acaa5 100644 --- a/crates/rocie-server/tests/_testenv/mod.rs +++ b/crates/rocie-server/tests/_testenv/mod.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + //! This code was taken from *fd* at 30-06-2025. use std::{path::PathBuf, process}; diff --git a/crates/rocie-server/tests/defaults/mod.rs b/crates/rocie-server/tests/defaults/mod.rs index 6a334b0..28eef01 100644 --- a/crates/rocie-server/tests/defaults/mod.rs +++ b/crates/rocie-server/tests/defaults/mod.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use rocie_client::{ apis::{api_get_auth_unit_api::units, api_set_no_auth_user_api::provision}, models::{ProvisionInfo, UserStub}, diff --git a/crates/rocie-server/tests/product_parents/mod.rs b/crates/rocie-server/tests/product_parents/mod.rs index d3799a7..a18950b 100644 --- a/crates/rocie-server/tests/product_parents/mod.rs +++ b/crates/rocie-server/tests/product_parents/mod.rs @@ -1,2 +1,12 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + mod query; mod register; diff --git a/crates/rocie-server/tests/product_parents/query.rs b/crates/rocie-server/tests/product_parents/query.rs index b05ad7c..acce42e 100644 --- a/crates/rocie-server/tests/product_parents/query.rs +++ b/crates/rocie-server/tests/product_parents/query.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use rocie_client::{ apis::{ api_get_auth_product_api::{ diff --git a/crates/rocie-server/tests/product_parents/register.rs b/crates/rocie-server/tests/product_parents/register.rs index c9e48f2..6aeb2c9 100644 --- a/crates/rocie-server/tests/product_parents/register.rs +++ b/crates/rocie-server/tests/product_parents/register.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use rocie_client::{ apis::{ api_get_auth_product_api::product_by_id, api_set_auth_product_api::register_product, diff --git a/crates/rocie-server/tests/products/barcode.rs b/crates/rocie-server/tests/products/barcode.rs index 7b48ab7..c377137 100644 --- a/crates/rocie-server/tests/products/barcode.rs +++ b/crates/rocie-server/tests/products/barcode.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use rocie_client::{ apis::{ api_get_auth_inventory_api::amount_by_id, diff --git a/crates/rocie-server/tests/products/mod.rs b/crates/rocie-server/tests/products/mod.rs index e503684..f1b4e95 100644 --- a/crates/rocie-server/tests/products/mod.rs +++ b/crates/rocie-server/tests/products/mod.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use rocie_client::{ apis::{ api_set_auth_product_api::{associate_barcode, register_product}, diff --git a/crates/rocie-server/tests/products/query.rs b/crates/rocie-server/tests/products/query.rs index b2095cb..f90ebb4 100644 --- a/crates/rocie-server/tests/products/query.rs +++ b/crates/rocie-server/tests/products/query.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use rocie_client::{ apis::{ api_get_auth_product_api::{product_by_name, product_suggestion_by_name}, diff --git a/crates/rocie-server/tests/products/register.rs b/crates/rocie-server/tests/products/register.rs index 2d4bf7e..f0dd182 100644 --- a/crates/rocie-server/tests/products/register.rs +++ b/crates/rocie-server/tests/products/register.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use rocie_client::{ apis::{ api_get_auth_product_api::product_by_id, api_set_auth_product_api::register_product, diff --git a/crates/rocie-server/tests/recipe_parents/mod.rs b/crates/rocie-server/tests/recipe_parents/mod.rs index d3799a7..a18950b 100644 --- a/crates/rocie-server/tests/recipe_parents/mod.rs +++ b/crates/rocie-server/tests/recipe_parents/mod.rs @@ -1,2 +1,12 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + mod query; mod register; diff --git a/crates/rocie-server/tests/recipe_parents/query.rs b/crates/rocie-server/tests/recipe_parents/query.rs index bcbf00b..438fcf1 100644 --- a/crates/rocie-server/tests/recipe_parents/query.rs +++ b/crates/rocie-server/tests/recipe_parents/query.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use rocie_client::{ apis::{ api_get_auth_recipe_api::{ diff --git a/crates/rocie-server/tests/recipe_parents/register.rs b/crates/rocie-server/tests/recipe_parents/register.rs index a113bd3..f525ae9 100644 --- a/crates/rocie-server/tests/recipe_parents/register.rs +++ b/crates/rocie-server/tests/recipe_parents/register.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use rocie_client::{ apis::{ api_get_auth_recipe_api::recipe_by_id, api_set_auth_recipe_api::add_recipe, diff --git a/crates/rocie-server/tests/recipies/mod.rs b/crates/rocie-server/tests/recipies/mod.rs index 15680f1..23a8c19 100644 --- a/crates/rocie-server/tests/recipies/mod.rs +++ b/crates/rocie-server/tests/recipies/mod.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use rocie_client::{ apis::{ api_get_auth_recipe_api::{recipe_by_id, recipe_by_name}, diff --git a/crates/rocie-server/tests/tests.rs b/crates/rocie-server/tests/tests.rs index 6222017..57d58b2 100644 --- a/crates/rocie-server/tests/tests.rs +++ b/crates/rocie-server/tests/tests.rs @@ -1,5 +1,15 @@ #![allow(unused_crate_dependencies)] +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + mod _testenv; pub(crate) use _testenv as testenv; diff --git a/crates/rocie-server/tests/units/fetch.rs b/crates/rocie-server/tests/units/fetch.rs index a0ffd9b..f6cb640 100644 --- a/crates/rocie-server/tests/units/fetch.rs +++ b/crates/rocie-server/tests/units/fetch.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use rocie_client::{ apis::{ api_get_auth_unit_api::units_by_property_id, api_set_auth_unit_api::register_unit, diff --git a/crates/rocie-server/tests/units/mod.rs b/crates/rocie-server/tests/units/mod.rs index 54ff0ab..23c102a 100644 --- a/crates/rocie-server/tests/units/mod.rs +++ b/crates/rocie-server/tests/units/mod.rs @@ -1,2 +1,12 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + mod fetch; mod register; diff --git a/crates/rocie-server/tests/units/register.rs b/crates/rocie-server/tests/units/register.rs index e725a5c..c0e9c09 100644 --- a/crates/rocie-server/tests/units/register.rs +++ b/crates/rocie-server/tests/units/register.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use rocie_client::{ apis::{ api_get_auth_unit_api::unit_by_id, api_set_auth_unit_api::register_unit, diff --git a/crates/rocie-server/tests/users/mod.rs b/crates/rocie-server/tests/users/mod.rs index c7ba6f8..df66c64 100644 --- a/crates/rocie-server/tests/users/mod.rs +++ b/crates/rocie-server/tests/users/mod.rs @@ -1,3 +1,13 @@ +// rocie - An enterprise grocery management system +// +// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de> +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Rocie. +// +// You should have received a copy of the License along with this program. +// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. + use rocie_client::{ apis::{ api_get_auth_user_api::user_by_id, |
