-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(xray): setup service manager for xray endpoint * feat(xray): support xray watch apis * feat(xray): support update on xray watch * test(xray): refactor tests to separate functions * refactor(xray): tidy up names and remove redundant methods * refactor(xray): move watch to xray package * test(xray): add more update test cases * docs(xray): update readme * chore(xray): fix golint issues * refactor(xray): move structs and functions to utils file * test(xray): add tests cases for repository and built types * docs(xray): document structs, funcs and update readme for watch * chore(*): ignore go coverage file * test(xray): fix unit tests * test(xray): only test xray when an xray url is set * fix(xray): check error when creating body for update * refactory(xray): rename StringFilters to Filters * chore(xray): reorder structs into exported and unexported * chore(xray): update comments in code * test(xray): rename test functions and throw response errors separately * fix(xray): use checkError to wrap errors from different sources * chore(xray): document that bundles are not supported and remove placeholder function * chore(xray): tidy up logging for watch functions * fix(xray): ensure watch url is in the correct format * refactor(xray): remove Xray prefix on structs and functions * refactor(xray): return http responses for watch functions * fix(xray): fix bug where multiple properties were not set * fix(xray): create default parameters for watch * fix(xray): add xray details on watch service * docs(xray): update examples in readme for watch functions
- Loading branch information
1 parent
3b8f189
commit 5bbc84f
Showing
12 changed files
with
1,618 additions
and
4 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 |
---|---|---|
|
@@ -9,3 +9,6 @@ | |
|
||
# IOS | ||
*.DS_Store | ||
|
||
# go coverage | ||
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
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
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,19 @@ | ||
package tests | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func TestXrayVersion(t *testing.T) { | ||
if *XrayUrl == "" { | ||
t.Skip("Xray is not being tested, skipping...") | ||
} | ||
|
||
version, err := GetXrayDetails().GetVersion() | ||
if err != nil { | ||
t.Error(err) | ||
} | ||
if version == "" { | ||
t.Error("Expected a version, got empty string") | ||
} | ||
} |
Oops, something went wrong.