diff --git a/src/App/src/components/common/TeamSelector.tsx b/src/App/src/components/common/TeamSelector.tsx
index 21e177fe5..33b27bf88 100644
--- a/src/App/src/components/common/TeamSelector.tsx
+++ b/src/App/src/components/common/TeamSelector.tsx
@@ -721,7 +721,7 @@ const TeamSelector: React.FC
= ({
Are you sure you want to delete "{teamToDelete?.name}"?
- This team configurations and its agents are shared across all users in the system. Deleting this team will permanently remove it for everyone, and this action cannot be undone.
+ This team configuration and its agents are shared across all users in the system. Deleting this team will permanently remove it for everyone, and this action cannot be undone.
diff --git a/src/App/vitest.config.ts b/src/App/vitest.config.ts
index 17a2289c9..ac7ed4067 100644
--- a/src/App/vitest.config.ts
+++ b/src/App/vitest.config.ts
@@ -8,7 +8,7 @@ export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
- setupFiles: ['./src/setupTests.ts'],
+ setupFiles: ['./src/setupTests.tsx'],
css: true,
},
resolve: {
diff --git a/src/backend/auth/auth_utils.py b/src/backend/auth/auth_utils.py
index e1d7efcb9..abd2678da 100644
--- a/src/backend/auth/auth_utils.py
+++ b/src/backend/auth/auth_utils.py
@@ -40,7 +40,7 @@ def get_tenantid(client_principal_b64):
# Decode the base64 header to get the JSON string
decoded_bytes = base64.b64decode(client_principal_b64)
decoded_string = decoded_bytes.decode("utf-8")
- # Convert the JSON string1into a Python dictionary
+ # Convert the JSON string into a Python dictionary
user_info = json.loads(decoded_string)
# Extract the tenant ID
tenant_id = user_info.get("tid") # 'tid' typically holds the tenant ID
diff --git a/src/backend/common/utils/otlp_tracing.py b/src/backend/common/utils/otlp_tracing.py
index e76951025..9f0daff8f 100644
--- a/src/backend/common/utils/otlp_tracing.py
+++ b/src/backend/common/utils/otlp_tracing.py
@@ -7,7 +7,7 @@
def configure_oltp_tracing(endpoint: str = None) -> trace.TracerProvider:
# Configure Tracing
- tracer_provider = TracerProvider(resource=Resource({"service.name": "macwe"}))
+ tracer_provider = TracerProvider(resource=Resource({"service.name": "macae"}))
processor = BatchSpanProcessor(OTLPSpanExporter())
tracer_provider.add_span_processor(processor)
trace.set_tracer_provider(tracer_provider)
diff --git a/src/tests/backend/common/utils/test_otlp_tracing.py b/src/tests/backend/common/utils/test_otlp_tracing.py
index ac7474f1e..1e76e3976 100644
--- a/src/tests/backend/common/utils/test_otlp_tracing.py
+++ b/src/tests/backend/common/utils/test_otlp_tracing.py
@@ -79,7 +79,7 @@ def test_configure_oltp_tracing_default_parameters(
result = configure_oltp_tracing()
# Verify Resource creation
- mock_resource.assert_called_once_with({"service.name": "macwe"})
+ mock_resource.assert_called_once_with({"service.name": "macae"})
# Verify TracerProvider creation
mock_tracer_provider_class.assert_called_once_with(resource=mock_resource_instance)
@@ -126,7 +126,7 @@ def test_configure_oltp_tracing_with_endpoint_parameter(
result = configure_oltp_tracing(endpoint=endpoint)
# Verify the same behavior as default case (endpoint parameter is currently unused)
- mock_resource.assert_called_once_with({"service.name": "macwe"})
+ mock_resource.assert_called_once_with({"service.name": "macae"})
mock_tracer_provider_class.assert_called_once_with(resource=mock_resource_instance)
mock_exporter.assert_called_once_with()
mock_processor.assert_called_once_with(mock_exporter_instance)
@@ -162,7 +162,7 @@ def test_configure_oltp_tracing_with_none_endpoint(
result = configure_oltp_tracing(endpoint=None)
# Verify the same behavior as default case
- mock_resource.assert_called_once_with({"service.name": "macwe"})
+ mock_resource.assert_called_once_with({"service.name": "macae"})
mock_tracer_provider_class.assert_called_once_with(resource=mock_resource_instance)
mock_exporter.assert_called_once_with()
mock_processor.assert_called_once_with(mock_exporter_instance)
@@ -269,7 +269,7 @@ def test_configure_oltp_tracing_tracer_provider_creation_error(
configure_oltp_tracing()
# Verify Resource was created but subsequent operations were not called
- mock_resource.assert_called_once_with({"service.name": "macwe"})
+ mock_resource.assert_called_once_with({"service.name": "macae"})
mock_exporter.assert_not_called()
mock_processor.assert_not_called()
mock_trace.set_tracer_provider.assert_not_called()
@@ -297,7 +297,7 @@ def test_configure_oltp_tracing_exporter_creation_error(
configure_oltp_tracing()
# Verify creation up to exporter was called
- mock_resource.assert_called_once_with({"service.name": "macwe"})
+ mock_resource.assert_called_once_with({"service.name": "macae"})
mock_tracer_provider_class.assert_called_once_with(resource=mock_resource_instance)
mock_exporter.assert_called_once_with()
@@ -332,7 +332,7 @@ def test_configure_oltp_tracing_processor_creation_error(
configure_oltp_tracing()
# Verify creation up to processor was called
- mock_resource.assert_called_once_with({"service.name": "macwe"})
+ mock_resource.assert_called_once_with({"service.name": "macae"})
mock_tracer_provider_class.assert_called_once_with(resource=mock_resource_instance)
mock_exporter.assert_called_once_with()
mock_processor.assert_called_once_with(mock_exporter_instance)
@@ -369,7 +369,7 @@ def test_configure_oltp_tracing_add_span_processor_error(
configure_oltp_tracing()
# Verify all creation steps were called
- mock_resource.assert_called_once_with({"service.name": "macwe"})
+ mock_resource.assert_called_once_with({"service.name": "macae"})
mock_tracer_provider_class.assert_called_once_with(resource=mock_resource_instance)
mock_exporter.assert_called_once_with()
mock_processor.assert_called_once_with(mock_exporter_instance)
@@ -407,7 +407,7 @@ def test_configure_oltp_tracing_set_tracer_provider_error(
configure_oltp_tracing()
# Verify all steps up to set_tracer_provider were called
- mock_resource.assert_called_once_with({"service.name": "macwe"})
+ mock_resource.assert_called_once_with({"service.name": "macae"})
mock_tracer_provider_class.assert_called_once_with(resource=mock_resource_instance)
mock_exporter.assert_called_once_with()
mock_processor.assert_called_once_with(mock_exporter_instance)
@@ -452,7 +452,7 @@ def test_configure_oltp_tracing_service_name_configuration(
result = configure_oltp_tracing()
# Verify service name is set correctly
- mock_resource.assert_called_once_with({"service.name": "macwe"})
+ mock_resource.assert_called_once_with({"service.name": "macae"})
# Verify the resource is used in TracerProvider
mock_tracer_provider_class.assert_called_once_with(resource=mock_resource_instance)
@@ -487,7 +487,7 @@ def test_configure_oltp_tracing_call_sequence(
# Verify call sequence using call order
expected_calls = [
- call({"service.name": "macwe"}), # Resource creation
+ call({"service.name": "macae"}), # Resource creation
]
mock_resource.assert_has_calls(expected_calls)
@@ -542,7 +542,7 @@ def test_configure_oltp_tracing_with_empty_string_endpoint(
result = configure_oltp_tracing(endpoint="")
# Verify same behavior as default (endpoint parameter is unused in current implementation)
- mock_resource.assert_called_once_with({"service.name": "macwe"})
+ mock_resource.assert_called_once_with({"service.name": "macae"})
mock_tracer_provider_class.assert_called_once_with(resource=mock_resource_instance)
mock_exporter.assert_called_once_with()
mock_processor.assert_called_once_with(mock_exporter_instance)