Check that incorrectly overriding the hostname fails.
()
| 1817 | |
| 1818 | @pytest.mark.requires_testing_data |
| 1819 | def test_tls_override_hostname(): |
| 1820 | """Check that incorrectly overriding the hostname fails.""" |
| 1821 | certs = example_tls_certs() |
| 1822 | |
| 1823 | with ConstantFlightServer(tls_certificates=certs["certificates"]) as s, \ |
| 1824 | flight.connect(('localhost', s.port), |
| 1825 | tls_root_certs=certs["root_cert"], |
| 1826 | override_hostname="fakehostname") as client: |
| 1827 | with pytest.raises(flight.FlightUnavailableError): |
| 1828 | client.do_get(flight.Ticket(b'ints')) |
| 1829 | |
| 1830 | |
| 1831 | def test_flight_do_get_metadata(): |
nothing calls this directly
no test coverage detected