Added support for latest OpenSearch versions 2.7.0, 2.8.0 (#445)
Signed-off-by: saimedhi <saimedhi@amazon.com>
This commit is contained in:
committed by
GitHub
parent
5dc51d4b7f
commit
5fa6d994bd
@@ -9,7 +9,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
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" ]
|
||||
|
||||
steps:
|
||||
|
||||
@@ -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 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 support for latest OpenSearch versions 2.7.0, 2.8.0 ([#445](https://github.com/opensearch-project/opensearch-py/pull/445))
|
||||
|
||||
### Changed
|
||||
- Upgrading pytest-asyncio to latest version - 0.21.0 ([#339](https://github.com/opensearch-project/opensearch-py/pull/339))
|
||||
|
||||
+3
-3
@@ -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.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.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.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.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.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.8.0 | client works against Opensearch Version 1.x as long as features removed in 2.0 are not used |
|
||||
|
||||
## Upgrading
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ class TestSecurityPlugin(IsolatedAsyncioTestCase):
|
||||
}
|
||||
|
||||
USER_NAME = "test-user"
|
||||
USER_CONTENT = {"password": "test_password", "opendistro_security_roles": []}
|
||||
USER_CONTENT = {"password": "opensearchpy@123", "opendistro_security_roles": []}
|
||||
|
||||
async def asyncSetUp(self):
|
||||
self.client = await get_test_client(
|
||||
@@ -113,7 +113,7 @@ class TestSecurityPlugin(IsolatedAsyncioTestCase):
|
||||
response = await self.client.security.put_user(
|
||||
self.USER_NAME,
|
||||
body={
|
||||
"password": "test_password",
|
||||
"password": "opensearchpy@123",
|
||||
"opendistro_security_roles": [self.ROLE_NAME],
|
||||
},
|
||||
)
|
||||
@@ -136,7 +136,7 @@ class TestSecurityPlugin(IsolatedAsyncioTestCase):
|
||||
await self.test_create_user()
|
||||
|
||||
user_content = self.USER_CONTENT.copy()
|
||||
user_content["password"] = "password_test"
|
||||
user_content["password"] = "123@opensearchpy"
|
||||
|
||||
# Test to update user
|
||||
response = await self.client.security.put_user(
|
||||
|
||||
@@ -34,7 +34,7 @@ class TestSecurityPlugin(TestCase):
|
||||
}
|
||||
|
||||
USER_NAME = "test-user"
|
||||
USER_CONTENT = {"password": "test_password", "opendistro_security_roles": []}
|
||||
USER_CONTENT = {"password": "opensearchpy@123", "opendistro_security_roles": []}
|
||||
|
||||
def setUp(self):
|
||||
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(
|
||||
self.USER_NAME,
|
||||
body={
|
||||
"password": "test_password",
|
||||
"password": "opensearchpy@123",
|
||||
"opendistro_security_roles": [self.ROLE_NAME],
|
||||
},
|
||||
)
|
||||
@@ -124,7 +124,7 @@ class TestSecurityPlugin(TestCase):
|
||||
self.test_create_user()
|
||||
|
||||
user_content = self.USER_CONTENT.copy()
|
||||
user_content["password"] = "password_test"
|
||||
user_content["password"] = "123@opensearchpy"
|
||||
|
||||
# Test to update user
|
||||
response = self.client.security.put_user(self.USER_NAME, body=user_content)
|
||||
|
||||
Reference in New Issue
Block a user