Skip to content

Comments

dependency updates to upgrade from urllib3 1.26#47

Open
mikerobg wants to merge 1 commit intoawslabs:mainfrom
mikerobg:dependencies
Open

dependency updates to upgrade from urllib3 1.26#47
mikerobg wants to merge 1 commit intoawslabs:mainfrom
mikerobg:dependencies

Conversation

@mikerobg
Copy link

Description of changes:
Update python image version to 3.10, update requirements.txt to use updated boto3 from git, remove urllib3 1.26.

Tested within docker image with custom connector:

curl -X POST "http://localhost:9000/2015-03-31/functions/function/invocations" \
  -H "Content-Type: application/json" \
  -d @test_request.json

{"connectorOwner": "SampleConnector", "connectorName": "SamplePythonSalesforceConnector", "connectorVersion": "1.0", "connectorModes": ["SOURCE", "DESTINATION"], "authenticationConfig": {"isBasicAuthSupported": null, "isApiKeyAuthSupported": null, "isOAuth2Supported": true, "isCustomAuthSupported": null, "oAuth2Defaults": {"tokenURL": ["https://login.salesforce.com/services/oauth2/token", "https://test.salesforce.com/services/oauth2/token"], "authURL": ["https://login.salesforce.com/services/oauth2/authorize", "https://test.salesforce.com/services/oauth2/authorize"], "oAuth2GrantTypesSupported": ["AUTHORIZATION_CODE"], "oAuthScopes": ["api", "refresh_token"], "oAuth2CustomProperties": null, "addBasicAuthHeader": false, "oAuth2ContentType": "URL_ENCODED", "oAuth2MethodType": "HTTP_POST"}, "customAuthConfig": null}, "supportedApiVersions": ["v51.0"], "isSuccess": true, "connectorRuntimeSetting": [{"key": "instanceUrl", "dataType": "String", "required": true, "label": "Salesforce Instance URL", "description": "URL of the instance where user wants to run the operations", "scope": "CONNECTOR_PROFILE", "connectorSuppliedValueOptions": null}, {"key": "is_sandbox_account", "dataType": "Boolean", "required": true, "label": "Type of salesforce account", "description": "Is Salesforce account a sandbox account", "scope": "CONNECTOR_PROFILE", "connectorSuppliedValueOptions": null}], "logoURL": null, "errorDetails": null, "operatorsSupported": ["PROJECTION", "LESS_THAN", "GREATER_THAN", "BETWEEN", "LESS_THAN_OR_EQUAL_TO", "GREATER_THAN_OR_EQUAL_TO", "EQUAL_TO", "CONTAINS", "NOT_EQUAL_TO", "ADDITION", "SUBTRACTION", "MULTIPLICATION", "DIVISION", "MASK_ALL", "MASK_FIRST_N", "MASK_LAST_N", "VALIDATE_NON_NULL", "VALIDATE_NON_ZERO", "VALIDATE_NON_NEGATIVE", "VALIDATE_NUMERIC", "NO_OP"], "triggerFrequenciesSupported": ["BYMINUTE", "HOURLY", "DAILY", "WEEKLY", "MONTHLY", "ONCE"], "supportedWriteOperations": ["INSERT", "UPDATE", "UPSERT"], "supportedTriggerTypes": ["SCHEDULED", "ONDEMAND"]}
curl -s -X POST "http://localhost:9000/2015-03-31/functions/function/invocations" \
  -H "Content-Type: application/json" \
  -d @test_list_entities.json
=== Testing List Entities ===
{"isSuccess": true, "errorDetails": null, "entities": [{"entityIdentifier": "AIApplication", "hasNestedEntities": false, "isWritable": false, "label": "AI Application", "description": "AI Application"},
...

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants