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

Test Server #79

Merged
merged 10 commits into from
Sep 3, 2023
Merged

Test Server #79

merged 10 commits into from
Sep 3, 2023

Conversation

justinh-rahb
Copy link
Collaborator

Summary

Implemented a local test server and web interface to simulate Google Chat events and test the chat bot's process_event function.

Description

This PR introduces a Flask-based test server (test_server.py) and a web interface (test_interface.html). The server uses Flask to simulate the Google Chat API, allowing developers to test the chat bot's functionality locally without deploying it to Google Cloud.

The web interface allows the user to input messages, which are then formatted to mimic the payload structure that the process_event function expects from Google Chat. The server passes this payload to the process_event function and then displays the function's response on the web interface.

Related Issue(s)

N/A

Motivation and Context

The primary motivation for these changes is to provide a streamlined and efficient testing environment for the chat bot. This allows for quicker iterations and debugging without the need for frequent deployments to Google Cloud.

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the code style of this project.
  • I have read the CONTRIBUTING document.

@justinh-rahb justinh-rahb added the enhancement New feature or request label Sep 3, 2023
@justinh-rahb justinh-rahb self-assigned this Sep 3, 2023
@justinh-rahb justinh-rahb merged commit f2a1996 into master Sep 3, 2023
2 checks passed
@justinh-rahb justinh-rahb deleted the test branch September 3, 2023 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant