[GH-ISSUE #278] Allow List #4 Unit Tests #278

Open
opened 2026-03-03 19:49:34 +03:00 by kerem · 0 comments
Owner

Originally created by @NghiaTranUIT on GitHub (Jul 28, 2023).
Original GitHub issue: https://github.com/ProxymanApp/proxyman-windows-linux/issues/278

Originally assigned to: @kics223w1 on GitHub.

Description

1. Test Allow List is enabled

  1. Set up an Allow List Rule for https://httpbin.proxyman.app
  2. Make 2 requests: https://httpbin.proxyman.app/get?id=123 and www.google.com

Expected:

  • Flow pool is 1
  • The first flow's URL of the pool is https://httpbin.proxyman.app/get?id=123

2. Test Allow List is disabled

  1. Set up an Allow List Rule for https://httpbin.proxyman.app -> Disable it
  2. Make 2 requests: https://httpbin.proxyman.app/get?id=123 and www.google.com

Expected:

  • Flow pool is 2
  • Check the URL of two requests -> Same URL with the input

3. Test Allow List + Map Local

  1. Set an Allow List Rule for https://httpbin.proxyman.app
  2. Set up a Map Local Rule for https://httpbin.proxyman.app
  3. Set up a Map Local Rule for www.google.com
  4. Make 2 requests: https://httpbin.proxyman.app/get?id=123 and www.google.com

Expected:

  • Flow pool is 1
  • The first flow's URL of the pool is https://httpbin.proxyman.app/get?id=123 -> Verify the Response -> Matched with Map Local
  • Verify www.google.com response -> It's matched with Map Local (even though it doesn't include in the Flow Pool)

4. Test Allow List + Breakpoint Request & Response

  1. Set an Allow List Rule for https://httpbin.proxyman.app
  2. Set up a Breakpoint Rule for https://httpbin.proxyman.app
  3. Set up a Breakpoint Rule for www.google.com
  4. Make 2 requests: https://httpbin.proxyman.app/get?id=123 and www.google.com
  5. Modify the Request/Response Breakpoint for 2 requests

Expected:

  • Flow pool is 1
  • The first flow's URL of the pool is https://httpbin.proxyman.app/get?id=123 -> Verify the Response -> Matched with Breakpoint change
  • Verify www.google.com response -> It's matched with Breakpoint changes (even though it doesn't include in the Flow Pool)

5. Write some Unit Tests that you think it's useful

Originally created by @NghiaTranUIT on GitHub (Jul 28, 2023). Original GitHub issue: https://github.com/ProxymanApp/proxyman-windows-linux/issues/278 Originally assigned to: @kics223w1 on GitHub. ## Description <!-- The brief of the ticket --> ### 1. Test Allow List is enabled 1. Set up an Allow List Rule for `https://httpbin.proxyman.app` 2. Make 2 requests: `https://httpbin.proxyman.app/get?id=123` and `www.google.com` Expected: - Flow pool is 1 - The first flow's URL of the pool is `https://httpbin.proxyman.app/get?id=123` ### 2. Test Allow List is disabled 1. Set up an Allow List Rule for `https://httpbin.proxyman.app` -> Disable it 2. Make 2 requests: `https://httpbin.proxyman.app/get?id=123` and `www.google.com` Expected: - Flow pool is 2 - Check the URL of two requests -> Same URL with the input ### 3. Test Allow List + Map Local 1. Set an Allow List Rule for `https://httpbin.proxyman.app` 2. Set up a Map Local Rule for `https://httpbin.proxyman.app` 3. Set up a Map Local Rule for `www.google.com` 4. Make 2 requests: `https://httpbin.proxyman.app/get?id=123` and `www.google.com` Expected: - Flow pool is 1 - The first flow's URL of the pool is `https://httpbin.proxyman.app/get?id=123` -> Verify the Response -> Matched with Map Local - Verify `www.google.com` response -> It's matched with Map Local (even though it doesn't include in the Flow Pool) ### 4. Test Allow List + Breakpoint Request & Response 1. Set an Allow List Rule for `https://httpbin.proxyman.app` 2. Set up a Breakpoint Rule for `https://httpbin.proxyman.app` 3. Set up a Breakpoint Rule for `www.google.com` 4. Make 2 requests: `https://httpbin.proxyman.app/get?id=123` and `www.google.com` 5. Modify the Request/Response Breakpoint for 2 requests Expected: - Flow pool is 1 - The first flow's URL of the pool is `https://httpbin.proxyman.app/get?id=123` -> Verify the Response -> Matched with Breakpoint change - Verify `www.google.com` response -> It's matched with Breakpoint changes (even though it doesn't include in the Flow Pool) ### 5. Write some Unit Tests that you think it's useful
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxyman-windows-linux#278
No description provided.