Skip to content

Commit a3fb820

Browse files
committed
DPS-45125: Remove custom headers due to API changes
1 parent af43d2b commit a3fb820

6 files changed

Lines changed: 2 additions & 33 deletions

File tree

‎linode_api4/groups/monitor.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,9 +512,6 @@ def destination_create(
512512
),
513513
data_compression="gzip",
514514
content_type="application/json",
515-
custom_headers=[
516-
CustomHeader(name="header", value="header_value")
517-
],
518515
)
519516
)
520517

‎linode_api4/objects/monitor.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,6 @@ class TrafficPeakLogsDestinationDetails(LogsDestinationDetailsBase):
681681
authentication: Optional[TrafficPeakDestinationAuthentication] = None
682682
data_compression: Optional[DataCompressionType] = None
683683
content_type: Optional[ContentType] = None
684-
custom_headers: Optional[List[CustomHeader]] = None
685684

686685

687686
@dataclass

‎test/fixtures/monitor_streams_4.json‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@
1717
}
1818
},
1919
"data_compression": "none",
20-
"content_type": "application/json",
21-
"custom_headers": [
22-
{
23-
"name": "header",
24-
"value": "header_value"
25-
}
26-
]
20+
"content_type": "application/json"
2721
}
2822
}
2923
],

‎test/fixtures/monitor_streams_destinations_3.json‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717
}
1818
},
1919
"data_compression": "none",
20-
"content_type": "application/json",
21-
"custom_headers": [
22-
{
23-
"name": "header",
24-
"value": "header_value"
25-
}
26-
]
20+
"content_type": "application/json"
2721
}
2822
}

‎test/integration/models/monitor/test_monitor_logs.py‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from linode_api4.objects.monitor import (
1919
AkamaiObjectStorageLogsDestinationDetails,
2020
BasicAuthenticationDetails,
21-
CustomHeader,
2221
LogsDestination,
2322
LogsStream,
2423
LogsStreamStatus,
@@ -344,9 +343,6 @@ def create_traffic_peak_destination(test_linode_client: LinodeClient):
344343
),
345344
data_compression="none",
346345
content_type="application/json",
347-
custom_headers=[
348-
CustomHeader(name="X-Source", value="linode-api4-python")
349-
],
350346
),
351347
)
352348
yield destination
@@ -377,7 +373,6 @@ def test_create_and_get_traffic_peak_destination(
377373
assert destination.details.authentication.details is not None
378374
assert destination.details.data_compression == "none"
379375
assert destination.details.content_type == "application/json"
380-
assert destination.details.custom_headers[0].name == "X-Source"
381376

382377

383378
@_SKIP_TRAFFIC_PEAK_TESTS

‎test/unit/objects/monitor_test.py‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from linode_api4.objects.monitor import (
1414
AkamaiObjectStorageLogsDestinationDetails,
1515
BasicAuthenticationDetails,
16-
CustomHeader,
1716
CustomHTTPSLogsDestinationDetails,
1817
DestinationAuthentication,
1918
LogsDestinationDetailsBase,
@@ -499,10 +498,6 @@ def test_load_traffic_peak_destination(self):
499498
)
500499
self.assertEqual(destination.details.data_compression, "none")
501500
self.assertEqual(destination.details.content_type, "application/json")
502-
self.assertEqual(destination.details.custom_headers[0].name, "header")
503-
self.assertEqual(
504-
destination.details.custom_headers[0].value, "header_value"
505-
)
506501

507502
def test_stream_with_traffic_peak_destination(self):
508503
"""
@@ -538,7 +533,6 @@ def test_create_traffic_peak_destination(self):
538533
},
539534
"data_compression": "none",
540535
"content_type": "application/json",
541-
"custom_headers": [{"name": "header", "value": "header_value"}],
542536
},
543537
"created": "2026-09-01T00:00:00",
544538
"updated": "2026-09-01T00:00:00",
@@ -561,9 +555,6 @@ def test_create_traffic_peak_destination(self):
561555
),
562556
data_compression="none",
563557
content_type="application/json",
564-
custom_headers=[
565-
CustomHeader(name="header", value="header_value")
566-
],
567558
),
568559
)
569560

@@ -581,7 +572,6 @@ def test_create_traffic_peak_destination(self):
581572
},
582573
"data_compression": "none",
583574
"content_type": "application/json",
584-
"custom_headers": [{"name": "header", "value": "header_value"}],
585575
},
586576
)
587577
self.assertIsInstance(result, LogsDestination)

0 commit comments

Comments
 (0)