trivial: assert SendtoCalls consistently

Use same assertion pattern as introduced in the Related-Change and
include the host and port in the assertion.
Change-Id: I7cccf3b8cdfe157c27fb8e0b1f432a649970a865
Related-Change: I9a016de1010dd17e91bc85877413b34d2c3287c7
This commit is contained in:
Alistair Coles
2024年06月25日 16:29:19 +01:00
parent a21d078009
commit a7b69628d5

View File

@@ -238,8 +238,8 @@ class TestS3ApiMiddleware(S3ApiTestCase):
self.assertEqual('s3api.', s3api.logger.logger.statsd_client._prefix)
client = s3api.logger.logger.statsd_client
self.assertEqual({'test-metric': 1}, client.get_increment_counts())
self.assertEqual(1, len(client.sendto_calls))
self.assertEqual(b's3api.test-metric:1|c', client.sendto_calls[0][0])
self.assertEqual([(b's3api.test-metric:1|c', ('1.2.3.4', 8125))],
client.sendto_calls)
def test_non_s3_request_passthrough(self):
req = Request.blank('/something')
Reference in New Issue
openstack/swift
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.