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

Integration Testing #18

Open
alex4108 opened this issue Sep 20, 2022 · 0 comments
Open

Integration Testing #18

alex4108 opened this issue Sep 20, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@alex4108
Copy link
Owner

alex4108 commented Sep 20, 2022

I want to put in some kind of integration test to ensure the bot can start up and perform basic functions.

Using three discord identities in a guild just for E2E tests:

  • ID1: User is the identity who joins the discord guild
  • ID2: Approver is the identity who approves the join request
  • ID3: Bot is the identity the bot is running as
  1. Compile & Build Container
  2. Assume Bot, and Approver joined with correct permissions
  3. User leaves guild if present
  4. User joins guild
  5. TEST: Using Approver identity, Check for Approval message from Bot identity
  6. Approver gives Emoji reaction
  7. TEST: Using Approver identity, check for approval confirmation from Bot identity. Check for expected role assignment of User
  8. User leaves guild
  9. Tests pass
@alex4108 alex4108 added the enhancement New feature or request label Sep 20, 2022
@alex4108 alex4108 self-assigned this Sep 20, 2022
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

No branches or pull requests

1 participant