Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Test Python SDK #85

Merged
merged 4 commits into from
Dec 11, 2023
Merged

Enable Test Python SDK #85

merged 4 commits into from
Dec 11, 2023

Conversation

dehume
Copy link
Contributor

@dehume dehume commented Dec 11, 2023

Fixes #4

Enable tests for the Python SDK. This is based on the tests for the Snowflake Pulumi provider and should be easy to extend to other SDKs once enabled.

Configures a basic Python project in examples/user/py, uses the provider built locally at sdk/{SDK Language}.

Also for ease of testing, allowing environment variables to set provider level configurations within the Config in the resources.go. The environment variables match the TF provider:

Attribute Environment Variable
host MZ_HOST
user MZ_USER
password MZ_PASSWORD
port MZ_PORT
database MZ_DATABASE
sslmode MZ_SSLMODE

@dehume dehume marked this pull request as ready for review December 11, 2023 18:22
@dehume dehume requested a review from bobbyiliev as a code owner December 11, 2023 18:22
Copy link
Contributor

@bobbyiliev bobbyiliev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Thank you @dehume!

@dehume dehume merged commit 834c533 into main Dec 11, 2023
1 check passed
@dehume dehume deleted the Enable-Example-Tests branch December 11, 2023 18:57
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.

Add Testing
2 participants