Skip to content

Commit f9c2aa0

Browse files
Fixed several failing integration tests (#895)
1 parent 0e0c68a commit f9c2aa0

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

tests/integration/monitor/test_plugin_get_metrics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44

55
import os
6+
from unittest import mock
67

78
import pytest
89

@@ -85,6 +86,7 @@ def test_missing_time_params(self):
8586
)
8687
assert "Time duration required" in stderr
8788

89+
@mock.patch.dict(os.environ, {"JWE_TOKEN": "fake-token"})
8890
def test_invalid_service(self):
8991
"""Test that an unknown service name hits the API and fails"""
9092
stderr = exec_failing_test_command(

tests/integration/nodebalancers/test_node_balancers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def test_update_node_for_node_balancer_udp_configuration(
482482
== node_id
483483
+ ",defaultnode1,"
484484
+ nodebalancer_with_udp_config_and_node[3]
485-
+ ":80,Unknown,30,none"
485+
+ ":80,Unknown,30,none,"
486486
)
487487

488488

@@ -511,7 +511,7 @@ def test_list_nodes_for_node_balancer_udp_configuration(
511511
== node_id
512512
+ ",defaultnode1,"
513513
+ nodebalancer_with_udp_config_and_node[3]
514-
+ ":80,Unknown,100,none"
514+
+ ":80,Unknown,100,none,"
515515
)
516516

517517

@@ -540,7 +540,7 @@ def test_view_node_for_node_balancer_udp_configuration(
540540
== node_id
541541
+ ",defaultnode1,"
542542
+ nodebalancer_with_udp_config_and_node[3]
543-
+ ":80,Unknown,100,none"
543+
+ ":80,Unknown,100,none,"
544544
)
545545

546546

0 commit comments

Comments
 (0)