-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: add URIs to schema #19
Open
fzipi
wants to merge
2
commits into
main
Choose a base branch
from
add-uris-schema
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,25 @@ | ||
name: Test | ||
on: | ||
pull_request: | ||
branches: [main] | ||
types: [opened, synchronize, reopened] | ||
push: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | ||
with: | ||
go-version: ^1.21 | ||
cache: true | ||
|
||
- name: Run Go Tests | ||
run: go test -coverprofile coverage.out ./... |
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 | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -203,9 +203,18 @@ type Input struct { | |||||||
// URI allows you to declare the URI the test should use as part of the request line. | ||||||||
// examples: | ||||||||
// - name: URI | ||||||||
// value: "\"/get?hello=world\"" | ||||||||
// value: '/get?hello=world" | ||||||||
URI *string `yaml:"uri,omitempty" json:"uri,omitempty" koanf:"uri,omitempty"` | ||||||||
|
||||||||
// description: | | ||||||||
// URIs is a list of URIs that the test should use as part of the request line. | ||||||||
// If URIs is set, URI will be ignored. URIs is useful for tests that need to send multiple requests. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
// Caveat: you cannot change the method or headers between requests. | ||||||||
// examples: | ||||||||
// - name: URIs | ||||||||
// value: ['/get?hello=world', '/request/this?var=value'] | ||||||||
URIs []string `yaml:"uris,omitempty" json:"uris,omitempty" koanf:"uris,omitempty"` | ||||||||
|
||||||||
// description: | | ||||||||
// FollowRedirect will expect the previous stage of the same test to have received a | ||||||||
// redirect response, it will fail the test otherwise. The redirect location will be used | ||||||||
|
@@ -336,7 +345,7 @@ type Response struct { | |||||||
|
||||||||
// description: | | ||||||||
// LogMessage specifies a message to be printed in the log of the backend server that sends the response. | ||||||||
// This can be helpful when debugging, to match resopnses sent by the backend to test executions. | ||||||||
// This can be helpful when debugging, to match responses sent by the backend to test executions. | ||||||||
// examples: | ||||||||
// - name: LogMessage | ||||||||
// value: "\"Response splitting test 1\"" | ||||||||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.