PYTHON-4574 - FaaS detection logic mistakenly identifies EKS as AWS Lambda (#1908)
This commit is contained in:
parent
9e38c54fa0
commit
872fda179e
@ -2019,6 +2019,22 @@ class TestClient(AsyncIntegrationTest):
|
||||
None,
|
||||
)
|
||||
|
||||
async def test_handshake_09_container_with_provider(self):
|
||||
await self._test_handshake(
|
||||
{
|
||||
ENV_VAR_K8S: "1",
|
||||
"AWS_LAMBDA_RUNTIME_API": "1",
|
||||
"AWS_REGION": "us-east-1",
|
||||
"AWS_LAMBDA_FUNCTION_MEMORY_SIZE": "256",
|
||||
},
|
||||
{
|
||||
"container": {"orchestrator": "kubernetes"},
|
||||
"name": "aws.lambda",
|
||||
"region": "us-east-1",
|
||||
"memory_mb": 256,
|
||||
},
|
||||
)
|
||||
|
||||
def test_dict_hints(self):
|
||||
self.db.t.find(hint={"x": 1})
|
||||
|
||||
|
||||
@ -1977,6 +1977,22 @@ class TestClient(IntegrationTest):
|
||||
None,
|
||||
)
|
||||
|
||||
def test_handshake_09_container_with_provider(self):
|
||||
self._test_handshake(
|
||||
{
|
||||
ENV_VAR_K8S: "1",
|
||||
"AWS_LAMBDA_RUNTIME_API": "1",
|
||||
"AWS_REGION": "us-east-1",
|
||||
"AWS_LAMBDA_FUNCTION_MEMORY_SIZE": "256",
|
||||
},
|
||||
{
|
||||
"container": {"orchestrator": "kubernetes"},
|
||||
"name": "aws.lambda",
|
||||
"region": "us-east-1",
|
||||
"memory_mb": 256,
|
||||
},
|
||||
)
|
||||
|
||||
def test_dict_hints(self):
|
||||
self.db.t.find(hint={"x": 1})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user