-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored code to align with testcontainers-go module recomendations
- Loading branch information
Showing
10 changed files
with
211 additions
and
115 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
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 |
---|---|---|
|
@@ -104,3 +104,5 @@ fabric.properties | |
|
||
# End of https://www.toptal.com/developers/gitignore/api/go,goland | ||
|
||
*.env | ||
test-results/ |
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,4 +1,4 @@ | ||
ARG TC_KONG_IMAGE | ||
FROM ${TC_KONG_IMAGE:-kong:2.8.1} | ||
FROM ${TC_KONG_IMAGE:-kong/kong:3.4.0} | ||
|
||
RUN mkdir -p /usr/local/kong/go-plugins/bin |
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,13 @@ | ||
GOFMT=gofmt | ||
|
||
.PHONY: test-% | ||
test-%: | ||
@echo "Running $* tests..." | ||
gotestsum \ | ||
--format standard-verbose \ | ||
--rerun-fails=1 \ | ||
--packages="./..." \ | ||
--junitfile test-results/TEST-$*.xml | ||
|
||
fmt: | ||
$(GOFMT) -w . |
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,9 @@ | ||
_format_version: "3.0" | ||
services: | ||
- name: mock | ||
host: mockbin.org | ||
port: 80 | ||
protocol: http | ||
routes: | ||
- paths: | ||
- /mock |
File renamed without changes.
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,43 @@ | ||
package kong | ||
|
||
import "time" | ||
|
||
// JSONResponse representation of a response from mockbin service | ||
type JSONResponse struct { | ||
StartedDateTime time.Time `json:"startedDateTime"` | ||
ClientIPAddress string `json:"clientIPAddress"` | ||
Method string `json:"method"` | ||
URL string `json:"url"` | ||
HTTPVersion string `json:"httpVersion"` | ||
Cookies struct { | ||
} `json:"cookies"` | ||
Headers struct { | ||
Host string `json:"host"` | ||
Connection string `json:"connection"` | ||
AcceptEncoding string `json:"accept-encoding"` | ||
XForwardedFor string `json:"x-forwarded-for"` | ||
CfRay string `json:"cf-ray"` | ||
XForwardedProto string `json:"x-forwarded-proto"` | ||
CfVisitor string `json:"cf-visitor"` | ||
XForwardedHost string `json:"x-forwarded-host"` | ||
XForwardedPort string `json:"x-forwarded-port"` | ||
XForwardedPath string `json:"x-forwarded-path"` | ||
UserAgent string `json:"user-agent"` | ||
CfConnectingIP string `json:"cf-connecting-ip"` | ||
CdnLoop string `json:"cdn-loop"` | ||
XRequestID string `json:"x-request-id"` | ||
Via string `json:"via"` | ||
ConnectTime string `json:"connect-time"` | ||
XRequestStart string `json:"x-request-start"` | ||
TotalRouteTime string `json:"total-route-time"` | ||
} `json:"headers"` | ||
QueryString struct { | ||
} `json:"queryString"` | ||
PostData struct { | ||
MimeType string `json:"mimeType"` | ||
Text string `json:"text"` | ||
Params []interface{} `json:"params"` | ||
} `json:"postData"` | ||
HeadersSize int `json:"headersSize"` | ||
BodySize int `json:"bodySize"` | ||
} |
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
Oops, something went wrong.