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

Add Test Cases and Mock server #6

Merged
merged 14 commits into from
Aug 14, 2024

Conversation

manodyaSenevirathne
Copy link
Contributor

@manodyaSenevirathne manodyaSenevirathne commented Aug 9, 2024

Purpose

implementing tests to the connector, creating a mock server, and documentation for testing in both mock and live contexts.

Changes

  • Added test cases to tests.bal.
  • Implemented a mock server to facilitate local testing, mimicking the OpenAI API responses in mock_service.bal.
  • Added a README.md with instructions on how to run the tests in different environments.

ballerina/tests/tests.bal Outdated Show resolved Hide resolved
ballerina/tests/tests.bal Outdated Show resolved Hide resolved
ballerina/tests/tests.bal Outdated Show resolved Hide resolved
ballerina/tests/tests.bal Outdated Show resolved Hide resolved
ballerina/tests/tests.bal Outdated Show resolved Hide resolved
ballerina/tests/tests.bal Outdated Show resolved Hide resolved
@NipunaRanasinghe NipunaRanasinghe merged commit 2e923c3 into ballerina-platform:main Aug 14, 2024
2 checks passed
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