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 Integration Benchmark tests for performance analysis of API-Manager #3425

Open
6 tasks done
Jithmi004 opened this issue Dec 9, 2024 · 8 comments
Open
6 tasks done
Assignees

Comments

@Jithmi004
Copy link

Jithmi004 commented Dec 9, 2024

Description

Problem

To assess the CPU usage and Memory consumption of API-Manager, a set of benchmark tests should be introduced.

Solution

  • Implement SSL servers that send responses with different status codes and different response bodies
  • Add a handler to processes incoming HTTP requests
  • Implement SSLClient that sends requests to the API-Manager
  • Add simpleblocking and nonblocking type SSLClients to create different scenarios
  • Implement a test case where an API is created with the SSLServer as the backend
  • Add Tests for following scenarios
  1. Client send the full request content
  2. Client sends less content than mentioned in the content-length header and server sends immediate response without payload
  3. Client sends less content than mentioned in the content-length header

Version

APIM - 4.4.0

@Jithmi004 Jithmi004 self-assigned this Dec 9, 2024
@Jithmi004
Copy link
Author

Update - 2024/08/08

Added initial work for tests with custom python backend server

@Jithmi004
Copy link
Author

Jithmi004 commented Dec 9, 2024

Update - 2024/08/09

Added an HTTP server as the backend server

@Jithmi004
Copy link
Author

Update - 2024/08/11

Added an SSL Server as a backend server

@Jithmi004
Copy link
Author

Update - 2024/08/14

Added a SSL socket backend server : Some tests are failing

@Jithmi004
Copy link
Author

Update - 2024/08/21

Added a https backend with a separate handler class to handle requests and added a POST resource for the SSL Server

@Jithmi004
Copy link
Author

Update - 2024/08/22

Added a SSL client and finished end to end: yet to add server closing and added the tests for simplenonblocking client

@Jithmi004
Copy link
Author

Update - 2024/08/26

Added all the tests and handled the socket closure exception

@Jithmi004
Copy link
Author

Update - 2024/08/27

Added all the tests and handled the socket closure exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant