@@ -48,7 +48,7 @@ def create_object_storage_key(test_linode_client: LinodeClient, region: Region):
4848
4949
5050@pytest .fixture (scope = "session" )
51- def test_destination (
51+ def create_destination (
5252 test_linode_client : LinodeClient ,
5353 create_object_storage_key : ObjectStorageKeys ,
5454 region : Region ,
@@ -129,7 +129,7 @@ def _empty_bucket(client: LinodeClient, bucket: ObjectStorageBucket):
129129
130130
131131def test_list_destinations (
132- test_linode_client : LinodeClient , test_destination : LogsDestination
132+ test_linode_client : LinodeClient , create_destination : LogsDestination
133133):
134134 """
135135 Test that listing destinations returns a PaginatedList containing the previously created destination.
@@ -141,45 +141,45 @@ def test_list_destinations(
141141 assert all (isinstance (d , LogsDestination ) for d in destinations )
142142
143143 ids = [d .id for d in destinations ]
144- assert test_destination .id in ids
144+ assert create_destination .id in ids
145145
146146
147147def test_get_destination_by_id (
148- test_linode_client : LinodeClient , test_destination : LogsDestination
148+ test_linode_client : LinodeClient , create_destination : LogsDestination
149149):
150150 """
151151 Test that fetching destination with id filter returns correct destination.
152152 """
153153 destination_by_id = test_linode_client .load (
154- LogsDestination , test_destination .id
154+ LogsDestination , create_destination .id
155155 )
156156
157157 assert isinstance (destination_by_id , LogsDestination )
158- assert destination_by_id .id == test_destination .id
159- assert destination_by_id .label == test_destination .label
160- assert destination_by_id .type == test_destination .type
158+ assert destination_by_id .id == create_destination .id
159+ assert destination_by_id .label == create_destination .label
160+ assert destination_by_id .type == create_destination .type
161161
162162
163163def test_update_destination_label_and_version_history (
164164 test_linode_client : LinodeClient ,
165- test_destination : LogsDestination ,
165+ create_destination : LogsDestination ,
166166 create_object_storage_key : ObjectStorageKeys ,
167167):
168168 """
169169 Test that a LogsDestination label can be updated via save(),
170170 and that history reflects both states.
171171 """
172- new_label = test_destination .label + "-upd"
172+ new_label = create_destination .label + "-upd"
173173 new_path = "updated/logs/path/"
174174
175- dest = test_linode_client .load (LogsDestination , test_destination .id )
175+ dest = test_linode_client .load (LogsDestination , create_destination .id )
176176 original_version = dest .version
177177 dest .label = new_label
178178 dest .details .path = new_path
179179 dest .details .access_key_secret = create_object_storage_key .secret_key
180180 dest .save ()
181181
182- updated = test_linode_client .load (LogsDestination , test_destination .id )
182+ updated = test_linode_client .load (LogsDestination , create_destination .id )
183183 assert updated .label == new_label
184184 assert updated .details .path == new_path
185185
@@ -196,11 +196,11 @@ def test_update_destination_label_and_version_history(
196196
197197 assert snapshot_updated .label == new_label
198198 assert snapshot_updated .details .path == new_path
199- assert snapshot_updated .id == test_destination .id
199+ assert snapshot_updated .id == create_destination .id
200200
201- assert snapshot_original .label == test_destination .label
201+ assert snapshot_original .label == create_destination .label
202202 assert snapshot_original .details .path is None
203- assert snapshot_original .id == test_destination .id
203+ assert snapshot_original .id == create_destination .id
204204
205205
206206def test_fails_to_create_destination_invalid_secret (
@@ -332,15 +332,15 @@ def create_secondary_destination(
332332@pytest .fixture (scope = "session" )
333333def create_stream (
334334 test_linode_client : LinodeClient ,
335- test_destination : LogsDestination ,
335+ create_destination : LogsDestination ,
336336 invalid_destination_error , # This ensures run order to keep negative test case deterministic
337337 create_secondary_destination : LogsDestination , # This ensures teardown order - stream must be deleted before its destinations can be deleted
338338):
339339 _skip_if_streams_exist (test_linode_client )
340340
341341 stream = test_linode_client .monitor .stream_create (
342342 label = get_test_label (),
343- destinations = [test_destination .id ],
343+ destinations = [create_destination .id ],
344344 type = LogsStreamType .audit_logs ,
345345 )
346346 assert stream .id is not None
0 commit comments