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

MAINT: Separating integration test local .env #817

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rlundeen2
Copy link
Contributor

Previously, I just used our .env_example file, but I created a new file here to separate out how we configure integration tests.

AZURE_SQL_DB_CONNECTION_STRING = ${AZURE_SQL_DB_CONNECTION_STRING_TEST}
AZURE_STORAGE_ACCOUNT_DB_DATA_CONTAINER_URL=${AZURE_STORAGE_ACCOUNT_DB_DATA_CONTAINER_URL_TEST}

GLOBAL_MEMORY_LABELS = {"username": "integration-test"}
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe op_name is a better key name. I expect the username to be different for whoever running the integ tests

Copy link
Contributor

Choose a reason for hiding this comment

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

Why not both?

@@ -0,0 +1,29 @@
###############
# This is .env.local file is used for integration tests
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT

Suggested change
# This is .env.local file is used for integration tests
# This .env.local file is used for integration tests

OPENAI_CHAT_KEY=${AZURE_OPENAI_INTEGRATION_TEST_KEY}
OPENAI_CHAT_MODEL="gpt-4o"

OPENAI_DALLE_ENDPOINT = ${OPENAI_DALLE_ENDPOINT2}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
OPENAI_DALLE_ENDPOINT = ${OPENAI_DALLE_ENDPOINT2}
OPENAI_DALLE_ENDPOINT = ${OPENAI_DALLE_ENDPOINT2}

AZURE_SQL_DB_CONNECTION_STRING = ${AZURE_SQL_DB_CONNECTION_STRING_TEST}
AZURE_STORAGE_ACCOUNT_DB_DATA_CONTAINER_URL=${AZURE_STORAGE_ACCOUNT_DB_DATA_CONTAINER_URL_TEST}

GLOBAL_MEMORY_LABELS = {"username": "integration-test"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not both?

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.

4 participants