Added support for latest OpenSearch versions 2.7.0, 2.8.0 (#445)

Signed-off-by: saimedhi <[email protected]>
This commit is contained in:
Sai Medhini Reddy Maryada
2023-07-21 13:08:09 -04:00
committed by GitHub
parent 5dc51d4b7f
commit 5fa6d994bd
5 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
opensearch_version: [ '1.0.1', '1.1.0', '1.2.4', '1.3.7', '2.0.1', '2.1.0', '2.2.1', '2.3.0', '2.4.0', '2.5.0', '2.6.0' ] opensearch_version: [ '1.0.1', '1.1.0', '1.2.4', '1.3.7', '2.0.1', '2.1.0', '2.2.1', '2.3.0', '2.4.0', '2.5.0', '2.6.0', '2.7.0', '2.8.0' ]
secured: [ "true", "false" ] secured: [ "true", "false" ]
steps: steps:
+1
View File
@@ -15,6 +15,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added `Search#collapse` ([#409](https://github.com/opensearch-project/opensearch-py/issues/409)) - Added `Search#collapse` ([#409](https://github.com/opensearch-project/opensearch-py/issues/409))
- Added support for the ISM API ([#398](https://github.com/opensearch-project/opensearch-py/pull/398)) - Added support for the ISM API ([#398](https://github.com/opensearch-project/opensearch-py/pull/398))
- Added `trust_env` to `AIOHttpConnection` ([#398](https://github.com/opensearch-project/opensearch-py/pull/438)) - Added `trust_env` to `AIOHttpConnection` ([#398](https://github.com/opensearch-project/opensearch-py/pull/438))
- Added support for latest OpenSearch versions 2.7.0, 2.8.0 ([#445](https://github.com/opensearch-project/opensearch-py/pull/445))
### Changed ### Changed
- Upgrading pytest-asyncio to latest version - 0.21.0 ([#339](https://github.com/opensearch-project/opensearch-py/pull/339)) - Upgrading pytest-asyncio to latest version - 0.21.0 ([#339](https://github.com/opensearch-project/opensearch-py/pull/339))
+3 -3
View File
@@ -9,9 +9,9 @@ The below matrix shows the compatibility of the [`opensearch-py`](https://pypi.o
| --- | --- | --- | | --- | --- | --- |
| 1.0.0 | 1.0.0-1.2.4 | | | 1.0.0 | 1.0.0-1.2.4 | |
| 1.1.0 | 1.3.0-1.3.7 | | | 1.1.0 | 1.3.0-1.3.7 | |
| 2.0.x | 1.0.0-2.6.0 | client works against Opensearch Version 1.x as long as features removed in 2.0 are not used | | 2.0.x | 1.0.0-2.8.0 | client works against Opensearch Version 1.x as long as features removed in 2.0 are not used |
| 2.1.x | 1.0.0-2.6.0 | client works against Opensearch Version 1.x as long as features removed in 2.0 are not used | | 2.1.x | 1.0.0-2.8.0 | client works against Opensearch Version 1.x as long as features removed in 2.0 are not used |
| 2.2.0 | 1.0.0-2.6.0 | client works against Opensearch Version 1.x as long as features removed in 2.0 are not used | | 2.2.0 | 1.0.0-2.8.0 | client works against Opensearch Version 1.x as long as features removed in 2.0 are not used |
## Upgrading ## Upgrading
@@ -38,7 +38,7 @@ class TestSecurityPlugin(IsolatedAsyncioTestCase):
} }
USER_NAME = "test-user" USER_NAME = "test-user"
USER_CONTENT = {"password": "test_password", "opendistro_security_roles": []} USER_CONTENT = {"password": "opensearchpy@123", "opendistro_security_roles": []}
async def asyncSetUp(self): async def asyncSetUp(self):
self.client = await get_test_client( self.client = await get_test_client(
@@ -113,7 +113,7 @@ class TestSecurityPlugin(IsolatedAsyncioTestCase):
response = await self.client.security.put_user( response = await self.client.security.put_user(
self.USER_NAME, self.USER_NAME,
body={ body={
"password": "test_password", "password": "opensearchpy@123",
"opendistro_security_roles": [self.ROLE_NAME], "opendistro_security_roles": [self.ROLE_NAME],
}, },
) )
@@ -136,7 +136,7 @@ class TestSecurityPlugin(IsolatedAsyncioTestCase):
await self.test_create_user() await self.test_create_user()
user_content = self.USER_CONTENT.copy() user_content = self.USER_CONTENT.copy()
user_content["password"] = "password_test" user_content["password"] = "123@opensearchpy"
# Test to update user # Test to update user
response = await self.client.security.put_user( response = await self.client.security.put_user(
@@ -34,7 +34,7 @@ class TestSecurityPlugin(TestCase):
} }
USER_NAME = "test-user" USER_NAME = "test-user"
USER_CONTENT = {"password": "test_password", "opendistro_security_roles": []} USER_CONTENT = {"password": "opensearchpy@123", "opendistro_security_roles": []}
def setUp(self): def setUp(self):
self.client = get_test_client(verify_certs=False, http_auth=("admin", "admin")) self.client = get_test_client(verify_certs=False, http_auth=("admin", "admin"))
@@ -101,7 +101,7 @@ class TestSecurityPlugin(TestCase):
response = self.client.security.put_user( response = self.client.security.put_user(
self.USER_NAME, self.USER_NAME,
body={ body={
"password": "test_password", "password": "opensearchpy@123",
"opendistro_security_roles": [self.ROLE_NAME], "opendistro_security_roles": [self.ROLE_NAME],
}, },
) )
@@ -124,7 +124,7 @@ class TestSecurityPlugin(TestCase):
self.test_create_user() self.test_create_user()
user_content = self.USER_CONTENT.copy() user_content = self.USER_CONTENT.copy()
user_content["password"] = "password_test" user_content["password"] = "123@opensearchpy"
# Test to update user # Test to update user
response = self.client.security.put_user(self.USER_NAME, body=user_content) response = self.client.security.put_user(self.USER_NAME, body=user_content)