generated from keploy/template
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: updated main readme and user-profile readme (#78)
* feat: main readme updated Signed-off-by: Animesh <[email protected]> * feat: users-profile readme updated Signed-off-by: Animesh <[email protected]> --------- Signed-off-by: Animesh Pathak <[email protected]> Signed-off-by: Animesh <[email protected]> Co-authored-by: Animesh Pathak <[email protected]>
- Loading branch information
Showing
12 changed files
with
291 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: e2e Tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
e2e-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Test-Report | ||
uses: alphasians/test-reportql@main | ||
with: | ||
working-directory: "./gin-mongo" | ||
delay: 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
test-app-url-shortener | ||
keploy/ | ||
test-app-url-shortener |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
version: api.keploy.io/v1beta2 | ||
kind: Mongo | ||
name: mocks | ||
spec: | ||
metadata: | ||
operation: '{ OpQuery flags: [SecondaryOK], fullCollectionName: admin.$cmd, numberToSkip: 0, numberToReturn: -1, query: {"isMaster": {"$numberInt":"1"},"helloOk": true,"compression": [],"client": {"driver": {"name": "mongo-go-driver","version": "v1.8.1"},"os": {"type": "linux","architecture": "arm64"},"platform": "go1.20.8"}}, returnFieldsSelector: }' | ||
type: config | ||
requests: | ||
- header: | ||
length: 230 | ||
requestId: 1 | ||
responseTo: 0 | ||
Opcode: 2004 | ||
message: | ||
flags: 4 | ||
collection_name: admin.$cmd | ||
number_to_skip: 0 | ||
number_to_return: -1 | ||
query: '{"isMaster":{"$numberInt":"1"},"helloOk":true,"compression":[],"client":{"driver":{"name":"mongo-go-driver","version":"v1.8.1"},"os":{"type":"linux","architecture":"arm64"},"platform":"go1.20.8"}}' | ||
return_fields_selector: "" | ||
read_delay: 11417 | ||
responses: | ||
- header: | ||
length: 329 | ||
requestId: 3 | ||
responseTo: 1 | ||
Opcode: 1 | ||
message: | ||
response_flags: 8 | ||
cursor_id: 0 | ||
starting_from: 0 | ||
number_returned: 1 | ||
documents: | ||
- '{"helloOk":true,"ismaster":true,"topologyVersion":{"processId":{"$oid":"651e8929aee8d38d01a09188"},"counter":{"$numberLong":"0"}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1696500034998"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"1"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"}}' | ||
read_delay: 1512792 | ||
created: 1696500035 | ||
--- | ||
version: api.keploy.io/v1beta2 | ||
kind: Mongo | ||
name: mocks | ||
spec: | ||
metadata: | ||
operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"update":"url-shortener","ordered":true,"writeConcern":{"w":"majority"},"lsid":{"id":{"$binary":{"base64":"FxKEjEbCSYqImwxjboBvEg==","subType":"04"}}},"$db":"keploy"} }, { SectionSingle identifier: updates , msgs: [ {"q":{"_id":"Lhr4BWAi"},"u":{"$set":{"_id":"Lhr4BWAi","created":{"$date":{"$numberLong":"1696500033094"}},"updated":{"$date":{"$numberLong":"1696500033094"}},"url":"https://google.com"}},"upsert":true} ] }], checksum: 0 }' | ||
requests: | ||
- header: | ||
length: 301 | ||
requestId: 5 | ||
responseTo: 0 | ||
Opcode: 2013 | ||
message: | ||
flagBits: 0 | ||
sections: | ||
- '{ SectionSingle msg: {"update":"url-shortener","ordered":true,"writeConcern":{"w":"majority"},"lsid":{"id":{"$binary":{"base64":"FxKEjEbCSYqImwxjboBvEg==","subType":"04"}}},"$db":"keploy"} }' | ||
- '{ SectionSingle identifier: updates , msgs: [ {"q":{"_id":"Lhr4BWAi"},"u":{"$set":{"_id":"Lhr4BWAi","created":{"$date":{"$numberLong":"1696500033094"}},"updated":{"$date":{"$numberLong":"1696500033094"}},"url":"https://google.com"}},"upsert":true} ] }' | ||
checksum: 0 | ||
read_delay: 151375 | ||
responses: | ||
- header: | ||
length: 112 | ||
requestId: 6 | ||
responseTo: 5 | ||
Opcode: 2013 | ||
message: | ||
flagBits: 0 | ||
sections: | ||
- '{ SectionSingle msg: {"n":{"$numberInt":"1"},"upserted":[{"index":{"$numberInt":"0"},"_id":"Lhr4BWAi"}],"nModified":{"$numberInt":"0"},"ok":{"$numberDouble":"1.0"}} }' | ||
checksum: 0 | ||
read_delay: 24970583 | ||
created: 1696500035 | ||
--- | ||
version: api.keploy.io/v1beta2 | ||
kind: Mongo | ||
name: mocks | ||
spec: | ||
metadata: | ||
operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$db":"admin"} }], checksum: 0 }' | ||
type: config | ||
requests: | ||
- header: | ||
length: 62 | ||
requestId: 6 | ||
responseTo: 0 | ||
Opcode: 2013 | ||
message: | ||
flagBits: 0 | ||
sections: | ||
- '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$db":"admin"} }' | ||
checksum: 0 | ||
read_delay: 9989556629 | ||
responses: | ||
- header: | ||
length: 323 | ||
requestId: 7 | ||
responseTo: 6 | ||
Opcode: 2013 | ||
message: | ||
flagBits: 0 | ||
sections: | ||
- '{ SectionSingle msg: {"helloOk":true,"isWritablePrimary":true,"topologyVersion":{"processId":{"$oid":"651e8929aee8d38d01a09188"},"counter":{"$numberLong":"0"}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1696500044994"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"2"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"}} }' | ||
checksum: 0 | ||
read_delay: 710500 | ||
created: 1696500044 | ||
--- | ||
version: api.keploy.io/v1beta2 | ||
kind: Mongo | ||
name: mocks | ||
spec: | ||
metadata: | ||
operation: '{ OpMsg flags: 65536, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"topologyVersion":{"processId":{"$oid":"651e8929aee8d38d01a09188"},"counter":{"$numberLong":"0"}},"maxAwaitTimeMS":{"$numberLong":"10000"},"$db":"admin"} }], checksum: 0 }' | ||
type: config | ||
requests: | ||
- header: | ||
length: 148 | ||
requestId: 3 | ||
responseTo: 0 | ||
Opcode: 2013 | ||
message: | ||
flagBits: 65536 | ||
sections: | ||
- '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"topologyVersion":{"processId":{"$oid":"651e8929aee8d38d01a09188"},"counter":{"$numberLong":"0"}},"maxAwaitTimeMS":{"$numberLong":"10000"},"$db":"admin"} }' | ||
checksum: 0 | ||
read_delay: 20000 | ||
responses: | ||
- header: | ||
length: 323 | ||
requestId: 8 | ||
responseTo: 3 | ||
Opcode: 2013 | ||
message: | ||
flagBits: 2 | ||
sections: | ||
- '{ SectionSingle msg: {"helloOk":true,"isWritablePrimary":true,"topologyVersion":{"processId":{"$oid":"651e8929aee8d38d01a09188"},"counter":{"$numberLong":"0"}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1696500045004"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"1"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"}} }' | ||
checksum: 0 | ||
read_delay: 10004565546 | ||
created: 1696500045 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
version: api.keploy.io/v1beta2 | ||
kind: Http | ||
name: test-1 | ||
spec: | ||
metadata: {} | ||
req: | ||
method: POST | ||
proto_major: 1 | ||
proto_minor: 1 | ||
url: http://localhost:8080/url | ||
header: | ||
Accept: '*/*' | ||
Content-Length: "33" | ||
Content-Type: application/json | ||
Host: localhost:8080 | ||
User-Agent: curl/8.1.2 | ||
body: |- | ||
{ | ||
"url": "https://google.com" | ||
} | ||
body_type: "" | ||
resp: | ||
status_code: 200 | ||
header: | ||
Content-Length: "65" | ||
Content-Type: application/json; charset=utf-8 | ||
Date: Thu, 05 Oct 2023 10:00:35 GMT | ||
body: '{"ts":1696500035031769854,"url":"http://localhost:8080/Lhr4BWAi"}' | ||
body_type: "" | ||
status_message: "" | ||
proto_major: 0 | ||
proto_minor: 0 | ||
objects: [] | ||
assertions: | ||
noise: | ||
- header.Date | ||
created: 1696500039 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
MONGO-DB-URI="mongodb://localhost:27017" | ||
MONGO-DB-URI="mongodb://mongoDb:27017" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Use an official Golang runtime as a parent image | ||
FROM golang:1.20-bookworm | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /app | ||
|
||
# Copy the local package files to the container's workspace | ||
COPY . . | ||
|
||
# Build the Go application | ||
RUN go build -o main . | ||
|
||
# Expose port 8080 | ||
EXPOSE 8080 | ||
|
||
# Command to run the Go application | ||
CMD ["./main"] |
Oops, something went wrong.