* Check OpenSSL environment variables before defaulting to certifi Signed-off-by: Roger Aiudi <[email protected]> * Fix formatting Signed-off-by: Roger Aiudi <[email protected]> * Moved CA_CERTS to the base Connection module Signed-off-by: Roger Aiudi <[email protected]> * Updated requests Connection to use common CA_CERTS by default Signed-off-by: Roger Aiudi <[email protected]> * Pass nox linting Signed-off-by: Roger Aiudi <[email protected]> * Update CHANGELOG.md and USER_GUIDE.md Signed-off-by: Roger Aiudi <[email protected]> * Updated AIOHttpConnection to only load CA_CERTS if verify_certs is True Signed-off-by: Roger Aiudi <[email protected]> * Added test cases for CA_CERTS handling in each Connection implementation Signed-off-by: Roger Aiudi <[email protected]> * Move CA cert handling to Connection.default_ca_certs() Add test cases for the different CA cert configurations Signed-off-by: Roger Aiudi <[email protected]> * Update actions to test unsupported Python versions on ubuntu-20.04 Signed-off-by: Roger Aiudi <[email protected]> * Fix Python versions being interpreted as floats Signed-off-by: Roger Aiudi <[email protected]> * Workaround Monkeypatch not available on old pytest versions Signed-off-by: Roger Aiudi <[email protected]> Signed-off-by: Roger Aiudi <[email protected]> Co-authored-by: Harsha Vamsi Kalluri <[email protected]>
44 lines
1.5 KiB
Python
44 lines
1.5 KiB
Python
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# The OpenSearch Contributors require contributions made to
|
|
# this file be licensed under the Apache-2.0 license or a
|
|
# compatible open source license.
|
|
#
|
|
# Modifications Copyright OpenSearch Contributors. See
|
|
# GitHub history for details.
|
|
#
|
|
# Licensed to Elasticsearch B.V. under one or more contributor
|
|
# license agreements. See the NOTICE file distributed with
|
|
# this work for additional information regarding copyright
|
|
# ownership. Elasticsearch B.V. licenses this file to you under
|
|
# the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing,
|
|
# software distributed under the License is distributed on an
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
# KIND, either express or implied. See the License for the
|
|
# specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
from typing import Any, Tuple
|
|
from unittest import TestCase
|
|
|
|
from ..client import OpenSearch
|
|
|
|
OPENSEARCH_URL: str
|
|
|
|
def get_test_client(nowait: bool = ..., **kwargs: Any) -> OpenSearch: ...
|
|
def _get_version(version_string: str) -> Tuple[int, ...]: ...
|
|
|
|
class OpenSearchTestCase(TestCase):
|
|
@staticmethod
|
|
def _get_client() -> OpenSearch: ...
|
|
@classmethod
|
|
def setup_class(cls) -> None: ...
|
|
def teardown_method(self, _: Any) -> None: ...
|
|
def opensearch_version(self) -> Tuple[int, ...]: ...
|