A simple CRUD application to showcase Keploy integration capabilities using Go-Fiber and S3
Go to home directory
Create .aws
folder
Inside .aws
folder, create credentials
name file
Open credentials
in any text editor and add following :
[default]
aws_access_key_id = <YOUR_ACCESS_KEY_ID>
aws_secret_access_key = <YOUR_SECRET_ACCESS_KEY>
git clone https://github.com/keploy/samples-go && cd S3-Keploy
go mod download
sudo -E env PATH="$PATH" keploy record -c 'go run .'
/list
: GET - Get all buckets name/getallobjects?bucket=<ENTER BUCKET NAME>
: GET - Get all objects name/create
: POST - Create a new bucket/upload?bucket=<ENTER BUCKET NAME>
: POST - Upload a file/delete?bucket=<ENTER BUCKET NAME>
: DELETE - Delete a bucket/deleteallobjects?bucket=<ENTER BUCKET NAME>
: DELETE - Delete all objects/replacefile?bucket=<ENTER BUCKET NAME>
: PUT - Replace already present file
Once done, you can see the Test Cases on the Keploy server, like this:
Now that we have our testcase captured, run the test file.
sudo -E env PATH=$PATH keploy test -c "go run ." --delay 20
Once done, you can see the Test Runs on the Keploy server, like this: