Skip to content
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

Bump github.com/onsi/gomega from 1.10.4 to 1.25.0 #63

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ plugins:
govet:
enabled: true

checks:
return-statements:
config:
threshold: 6

exclude_patterns:
- "!**/**.go"
- "**/*_test.go"
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
before_install:
- if [[ "${TRAVIS_OS_NAME}" == "windows" ]]; then choco install make; fi
# bash from macOS is too old to have readarray. Install newer version.
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then brew install bash; fi
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install bash; fi

install:
- ./ci/install.sh
Expand Down
13 changes: 10 additions & 3 deletions cmd/goss/goss.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func newRuntimeConfigFromCLI(c *cli.Context) *util.Config {
AnnounceToCLI: true,
Cache: c.Duration("cache"),
Debug: c.Bool("debug"),
LogLevel: c.GlobalString("loglevel"),
Endpoint: c.String("endpoint"),
FormatOptions: c.StringSlice("format-options"),
IgnoreList: c.GlobalStringSlice("exclude-attr"),
Expand Down Expand Up @@ -72,6 +73,12 @@ func main() {
app.Name = "goss"
app.Usage = "Quick and Easy server validation"
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "loglevel, L",
Value: "FATAL",
Usage: "Goss log verbosity level",
EnvVar: "GOSS_LOGLEVEL",
},
cli.StringFlag{
Name: "gossfile, g",
Value: "./goss.yaml",
Expand Down Expand Up @@ -167,19 +174,19 @@ func main() {
EnvVar: "GOSS_FMT_OPTIONS",
},
cli.DurationFlag{
Name: "cache,c",
Name: "cache, c",
Usage: "Time to cache the results",
Value: 5 * time.Second,
EnvVar: "GOSS_CACHE",
},
cli.StringFlag{
Name: "listen-addr,l",
Name: "listen-addr, l",
Value: ":8080",
Usage: "Address to listen on [ip]:port",
EnvVar: "GOSS_LISTEN",
},
cli.StringFlag{
Name: "endpoint,e",
Name: "endpoint, e",
Value: "/healthz",
Usage: "Endpoint to expose",
EnvVar: "GOSS_ENDPOINT",
Expand Down
20 changes: 17 additions & 3 deletions docs/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* [Table of Contents](#table-of-contents)
* [Usage](#usage)
* [global options](#global-options)
* [\-g gossfile](#-g-gossfile)
* [\--gossfile gossfile | -g gossfile](#--gossfile-gossfile-or--g-gossfile)
* [commands](#commands)
* [add, a \- Add system resource to test suite](#add-a---add-system-resource-to-test-suite)
* [autoadd, aa \- Auto add all matching resources to test suite](#autoadd-aa---auto-add-all-matching-resources-to-test-suite)
Expand Down Expand Up @@ -69,8 +69,8 @@ GLOBAL OPTIONS:


## global options
### -g gossfile
The file to use when reading/writing tests. Use `-g -` to read from `STDIN`.
### --gossfile gossfile or -g gossfile
The file to use when reading/writing tests. Use `--gossfile -` or `-g -` to read from `STDIN`.

Valid formats:
* **YAML** (default)
Expand Down Expand Up @@ -259,6 +259,13 @@ service:
* `--endpoint <value>`, `-e <value>` - Endpoint to expose (default: `/healthz`)
* `--format`, `-f` - output format, same as [validate](#validate-v---validate-the-system)
* `--listen-addr [ip]:port`, `-l [ip]:port` - Address to listen on (default: `:8080`)
* `--loglevel level`, `-L level` - Goss logging verbosity level (default: `INFO`). `level` can be one of `TRACE | DEBUG | INFO | WARN | ERROR | FATAL`. Lower levels of tracing include all upper levels traces also (ie. INFO include WARN, ERROR and FATAL outputs).
* `TRACE` - Print details for each check, successful or not and all incoming healthchecks
* `DEBUG` - Print details of summary response to healthchecks including remote IP address, return code and full body
* `INFO` - Print summary when all checks run OK
* `WARN` - Print summary and corresponding checks when encountering some failures
* `ERROR` - Not used for now (will not print anything)
* `FATAL` - Not used for now (will not print anything)
* `--max-concurrent` - Max number of tests to run concurrently

#### Example:
Expand Down Expand Up @@ -295,6 +302,13 @@ The `application/vnd.goss-{output format}` media type can be used in the `Accept
* `perfdata` - Outputs Nagios "performance data". Applies to `nagios` output
* `verbose` - Gives verbose output. Applies to `nagios` output
* `pretty` - Pretty printing for the `json` output
* `--loglevel level`, `-L level` - Goss logging verbosity level (default: `INFO`). `level` can be one of `TRACE | DEBUG | INFO | WARN | ERROR | FATAL`. Lower levels of tracing include all upper levels traces also (ie. INFO include WARN, ERROR and FATAL outputs).
* `TRACE` - Print details for each check, successful or not and all incoming healthchecks
* `DEBUG` - Print details of summary response to healthchecks including remote IP address, return code and full body
* `INFO` - Print summary when all checks run OK
* `WARN` - Print summary and corresponding checks when encountering some failures
* `ERROR` - Not used for now (will not print anything)
* `FATAL` - Not used for now (will not print anything)
* `--max-concurrent` - Max number of tests to run concurrently
* `--no-color` - Disable color
* `--color` - Force enable color
Expand Down
16 changes: 10 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,23 @@ require (
github.com/aelsabbahy/go-ps v0.0.0-20201009164808-61c449472dcf
github.com/blang/semver v3.5.1+incompatible
github.com/cheekybits/genny v1.0.0
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
github.com/docker/docker v1.13.1
github.com/fatih/color v1.10.0
github.com/google/uuid v1.1.1 // indirect
github.com/huandu/xstrings v1.3.0 // indirect
github.com/imdario/mergo v0.3.8 // indirect
github.com/google/uuid v1.1.4 // indirect
github.com/hashicorp/logutils v1.0.0
github.com/huandu/xstrings v1.3.2 // indirect
github.com/imdario/mergo v0.3.11 // indirect
github.com/miekg/dns v1.1.35
github.com/mitchellh/copystructure v1.0.0 // indirect
github.com/oleiade/reflections v0.0.0-20160817071559-0e86b3c98b2f
github.com/onsi/gomega v1.10.4
github.com/mitchellh/reflectwalk v1.0.1 // indirect
github.com/oleiade/reflections v1.0.1
github.com/onsi/gomega v1.25.0
github.com/opencontainers/runc v0.0.0-20161107232042-8779fa57eb4a
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/stretchr/testify v1.6.1
github.com/urfave/cli v0.0.0-20161102131801-d86a009f5e13
github.com/urfave/cli v1.22.5
gopkg.in/yaml.v2 v2.4.0
)

Expand Down
Loading