Create AI Gateway component for Performance testing in isolation
Description
As part of our initiative to shift left with component-level performance testing, we need to identify few prerequisites before we develop a basic pipeline that demonstrates our Proof of Concept (PoC) in action. This issue is to sort out the various prerequisites that would unblock us from creating a pipeline for running a component level performance test on AI Gateway.
Objectives
- Create the AI Gateway component in isolation (docker script) 1.
- Gather the API requests that are being sent to AIGW and also the responses returned by AIGW
- Setup mocking on AIGW
- Write down k6 performance tests on one of the api to test the AI Gateway component
- Document the information needed to setup the component
Tasks
-
Set up the isolated AIGW environment - Identify how AI Gateway can be deployed
- Create scripts to deploy AIGW without a full GitLab instance
- Implement necessary mocks or stubs for AI models
-
Identify various api requests and responses being sent to AIGW -
Identify the body, header and query parameters required to be passed with the api Requests
-
-
Setup mocking for AIGW - Use a mock server to mock the responses if not already available out of the box
-
Run a basic api test manually to sort out any authentication/authorization issues and get a 200 respose -
Write a k6 tests for one of the api -
Run the k6 test locally on a locally installed AIGW to verify that it is working
Edited by Vishal Patel