about summary refs log tree commit diff stats
path: root/crates/rocie-server/tests/products
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rocie-server/tests/products')
-rw-r--r--crates/rocie-server/tests/products/barcode.rs26
-rw-r--r--crates/rocie-server/tests/products/mod.rs6
-rw-r--r--crates/rocie-server/tests/products/query.rs16
-rw-r--r--crates/rocie-server/tests/products/register.rs6
4 files changed, 27 insertions, 27 deletions
diff --git a/crates/rocie-server/tests/products/barcode.rs b/crates/rocie-server/tests/products/barcode.rs
index 5335eb7..7b48ab7 100644
--- a/crates/rocie-server/tests/products/barcode.rs
+++ b/crates/rocie-server/tests/products/barcode.rs
@@ -1,10 +1,10 @@
 use rocie_client::{
     apis::{
-        api_get_inventory_api::amount_by_id,
-        api_set_barcode_api::{buy_barcode, consume_barcode},
-        api_set_product_api::{associate_barcode, register_product},
-        api_set_unit_api::register_unit,
-        api_set_unit_property_api::register_unit_property,
+        api_get_auth_inventory_api::amount_by_id,
+        api_set_auth_barcode_api::{buy_barcode, consume_barcode},
+        api_set_auth_product_api::{associate_barcode, register_product},
+        api_set_auth_unit_api::register_unit,
+        api_set_auth_unit_property_api::register_unit_property,
     },
     models::{Barcode, BarcodeId, ProductStub, UnitAmount, UnitPropertyStub, UnitStub},
 };
@@ -17,7 +17,7 @@ use crate::{
 
 #[tokio::test]
 async fn test_barcode_buy() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let barcode_id = 23;
     let unit_value = 1;
@@ -36,7 +36,7 @@ async fn test_barcode_buy() {
 
 #[tokio::test]
 async fn test_barcode_buy_multiple() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let barcode_id = 23;
     let unit_value = 1;
@@ -55,7 +55,7 @@ async fn test_barcode_buy_multiple() {
 
 #[tokio::test]
 async fn test_barcode_consume() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let barcode_id = BarcodeId { value: 23 };
     let unit_value = 1;
@@ -92,7 +92,7 @@ async fn test_barcode_consume() {
 
 #[tokio::test]
 async fn test_barcode_consume_error() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let barcode_id = BarcodeId { value: 23 };
     let unit_value = 1;
@@ -131,7 +131,7 @@ async fn test_barcode_consume_error() {
 
 #[tokio::test]
 async fn test_barcode_consume_error_other() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let barcode_id = BarcodeId { value: 23 };
     let unit_value = 1;
@@ -181,7 +181,7 @@ async fn test_barcode_consume_error_other() {
 
 #[tokio::test]
 async fn test_barcode_multiple_buy_and_consume() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let barcode_id = BarcodeId { value: 23 };
     let unit_value = 1;
@@ -237,7 +237,7 @@ async fn test_barcode_multiple_buy_and_consume() {
 
 #[tokio::test]
 async fn test_barcode_fill_up() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let milk_id = BarcodeId { value: 23 };
     let bread_id = BarcodeId { value: 24 };
@@ -254,7 +254,7 @@ async fn test_barcode_fill_up() {
 
 #[tokio::test]
 async fn test_barcode_associate_false_unit() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let unit_property_mass = request!(
         env,
diff --git a/crates/rocie-server/tests/products/mod.rs b/crates/rocie-server/tests/products/mod.rs
index ee139f0..e503684 100644
--- a/crates/rocie-server/tests/products/mod.rs
+++ b/crates/rocie-server/tests/products/mod.rs
@@ -1,8 +1,8 @@
 use rocie_client::{
     apis::{
-        api_set_product_api::{associate_barcode, register_product},
-        api_set_unit_api::register_unit,
-        api_set_unit_property_api::register_unit_property,
+        api_set_auth_product_api::{associate_barcode, register_product},
+        api_set_auth_unit_api::register_unit,
+        api_set_auth_unit_property_api::register_unit_property,
     },
     models::{
         Barcode, BarcodeId, ProductId, ProductStub, UnitAmount, UnitId, UnitPropertyId,
diff --git a/crates/rocie-server/tests/products/query.rs b/crates/rocie-server/tests/products/query.rs
index 8adfbb5..b2095cb 100644
--- a/crates/rocie-server/tests/products/query.rs
+++ b/crates/rocie-server/tests/products/query.rs
@@ -1,7 +1,7 @@
 use rocie_client::{
     apis::{
-        api_get_product_api::{product_by_name, product_suggestion_by_name},
-        api_set_unit_property_api::register_unit_property,
+        api_get_auth_product_api::{product_by_name, product_suggestion_by_name},
+        api_set_auth_unit_property_api::register_unit_property,
     },
     models::UnitPropertyStub,
 };
@@ -14,7 +14,7 @@ use crate::{
 #[tokio::test]
 #[expect(clippy::similar_names)]
 async fn test_product_name_suggestions() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let unit_property = request!(
         env,
@@ -46,7 +46,7 @@ async fn test_product_name_suggestions() {
 
 #[tokio::test]
 async fn test_product_name_suggest_space() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let unit_property = request!(
         env,
@@ -68,7 +68,7 @@ async fn test_product_name_suggest_space() {
 
 #[tokio::test]
 async fn test_product_name_lookup_space() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let unit_property = request!(
         env,
@@ -87,7 +87,7 @@ async fn test_product_name_lookup_space() {
 
 #[tokio::test]
 async fn test_product_name_lookup_fancy() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let unit_property = request!(
         env,
@@ -106,7 +106,7 @@ async fn test_product_name_lookup_fancy() {
 
 #[tokio::test]
 async fn test_product_name_lookup_emoji() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let unit_property = request!(
         env,
@@ -125,7 +125,7 @@ async fn test_product_name_lookup_emoji() {
 
 #[tokio::test]
 async fn test_product_name_lookup_plus() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let unit_property = request!(
         env,
diff --git a/crates/rocie-server/tests/products/register.rs b/crates/rocie-server/tests/products/register.rs
index bae7bc7..2d4bf7e 100644
--- a/crates/rocie-server/tests/products/register.rs
+++ b/crates/rocie-server/tests/products/register.rs
@@ -1,7 +1,7 @@
 use rocie_client::{
     apis::{
-        api_get_product_api::product_by_id, api_set_product_api::register_product,
-        api_set_unit_property_api::register_unit_property,
+        api_get_auth_product_api::product_by_id, api_set_auth_product_api::register_product,
+        api_set_auth_unit_property_api::register_unit_property,
     },
     models::{ProductStub, UnitPropertyStub},
 };
@@ -13,7 +13,7 @@ use crate::{
 
 #[tokio::test]
 async fn test_product_register_roundtrip() {
-    let env = TestEnv::new(function_name!());
+    let env = TestEnv::new(function_name!()).await;
 
     let unit_property = request!(
         env,