dependabot[bot]
7c956ce65a
build(deps): bump github.com/shoenig/test from 0.6.0 to 0.6.1 in /api ( #15939 )
...
* build(deps): bump github.com/shoenig/test from 0.6.0 to 0.6.1 in /api
Bumps [github.com/shoenig/test](https://github.com/shoenig/test ) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/shoenig/test/releases )
- [Commits](https://github.com/shoenig/test/compare/v0.6.0...v0.6.1 )
---
updated-dependencies:
- dependency-name: github.com/shoenig/test
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* deps: update test
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Seth Hoenig <shoenig@duck.com >
2023-01-29 14:03:56 -06:00
Benjamin Buzbee
dc6b08851d
Return buffered text from log endpoint if decoding fails ( #15558 )
...
To see why I think this is a good change lets look at why I am making it
My disk was full, which means GC was happening agressively. So by the
time I called the logging endpoint from the SDK, the logs were GC'd
The error I was getting before was:
```
invalid character 'i' in literal false (expecting 'l')
```
Now the error I get is:
```
failed to decode log endpoint response as JSON: "failed to list entries: open /tmp/nomad.data.4219353875/alloc/f11fee50-2b66-a7a2-d3ec-8442cb3d557a/alloc/logs: no such file or directory"
```
Still not super descriptive but much more debugable
2023-01-16 10:39:56 +01:00
Seth Hoenig
4698d8da79
consul/connect: support for proxy upstreams opaque config ( #15761 )
...
This PR adds support for configuring `proxy.upstreams[].config` for
Consul Connect upstreams. This is an opaque config value to Nomad -
the data is passed directly to Consul and is unknown to Nomad.
2023-01-12 08:20:54 -06:00
Seth Hoenig
283be3d641
deps: update shoenig/test to v0.6.0 ( #15715 )
...
Adds support for custom cmp.Options; need to fix one minor thing
causing api breakage.
2023-01-09 09:37:08 -06:00
Seth Hoenig
9bfd89ccd3
api: purge testify and pretty dependencies ( #15627 )
...
* api: swap testify for test (acl)
* api: swap testify for test (agent)
Please enter the commit message for your changes. Lines starting
* api: swap testify for test (allocations)
* api: swap testify for test (api)
* api: swap testify for test (compose)
* api: swap testify for test (constraint)
* api: swap testify for test (consul)
* api: swap testify for test (csi)
* api: swap testify for test (evaluations)
* api: swap testify for test (event stream)
* api: swap testify for test (fs)
* api: swap testify for test (ioutil)
* api: swap testify for test (jobs)
* api: swap testify for test (keyring)
* api: swap testify for test (operator_ent)
* api: swap testify for test (operator_metrics)
* api: swap testify for test (operator)
* api: swap testify for test (quota)
* api: swap testify for test (resources)
* api: swap testify for test (fix operator_metrics)
* api: swap testify for test (scaling)
* api: swap testify for test (search)
* api: swap testify for test (sentinel)
* api: swap testify for test (services)
* api: swap testify for test (status)
* api: swap testify for test (system)
* api: swap testify for test (tasks)
* api: swap testify for test (utils)
* api: swap testify for test (variables)
* api: remove dependencies on testify and pretty
2023-01-01 12:57:26 -06:00
Seth Hoenig
51cc205cc1
deps: update shoenig/test to 0.5.2 and fixup breaking changes ( #15574 )
2022-12-20 07:52:10 -06:00
Seth Hoenig
12034f90a3
api: make api tests fast and more concurrency safe ( #15543 )
...
This PR tries to make API tests run fast, as an experiment to later apply
to all packages. Key changes include
- Swapping freeport for test/portal for port allocations
- Swappng some uses of WaitForResult with test/wait
- Turning on parallelism in api/testutil/slow.go
- Switching to custom public runner (32 vcpu)
There's also chunk of cleanup brought in for the ride
2022-12-16 12:25:28 -06:00
Seth Hoenig
c8e0d5d37d
fingerprint: add fingerprinting for CNI plugins presense and version ( #15452 )
...
This PR adds a fingerprinter to set the attribute
"plugins.cni.version.<name>" => "<version>"
for each CNI plugin in <client>.cni_path (/opt/cni/bin by default).
2022-12-05 14:22:47 -06:00
dependabot[bot]
aae9d8e464
build(deps): bump github.com/shoenig/test from 0.4.4 to 0.4.5 in /api ( #15405 )
...
* build(deps): bump github.com/shoenig/test from 0.4.4 to 0.4.5 in /api
Bumps [github.com/shoenig/test](https://github.com/shoenig/test ) from 0.4.4 to 0.4.5.
- [Release notes](https://github.com/shoenig/test/releases )
- [Commits](https://github.com/shoenig/test/compare/v0.4.4...v0.4.5 )
---
updated-dependencies:
- dependency-name: github.com/shoenig/test
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* deps: update github.com/shoenig/test v0.4.4 -> v0.4.5
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com >
2022-11-29 13:25:53 -05:00
dependabot[bot]
233092157f
build(deps): bump github.com/shoenig/test from 0.4.3 to 0.4.4 in /api ( #15163 )
...
* build(deps): bump github.com/shoenig/test from 0.4.3 to 0.4.4 in /api
Bumps [github.com/shoenig/test](https://github.com/shoenig/test ) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/shoenig/test/releases )
- [Commits](https://github.com/shoenig/test/compare/v0.4.3...v0.4.4 )
---
updated-dependencies:
- dependency-name: github.com/shoenig/test
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* deps: also update root go mod
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Seth Hoenig <shoenig@duck.com >
2022-11-06 08:06:01 -06:00
dependabot[bot]
1c02fd984d
build(deps): bump github.com/stretchr/testify in /api ( #15082 )
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.8.0...v1.8.1 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 08:45:04 -05:00
dependabot[bot]
195a1adde2
build(deps): bump github.com/kr/pretty from 0.3.0 to 0.3.1 in /api ( #14859 )
...
* build(deps): bump github.com/kr/pretty from 0.3.0 to 0.3.1 in /api
Bumps [github.com/kr/pretty](https://github.com/kr/pretty ) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/kr/pretty/releases )
- [Commits](https://github.com/kr/pretty/compare/v0.3.0...v0.3.1 )
---
updated-dependencies:
- dependency-name: github.com/kr/pretty
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* deps: update in root as well
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Seth Hoenig <shoenig@duck.com >
2022-10-27 11:58:00 -05:00
Seth Hoenig
f02a09578d
deps: bump shoenig for str func bugfixes ( #14974 )
...
And fix the one place we use them.
2022-10-20 08:11:43 -05:00
Seth Hoenig
cbf2ed2f18
deps: bump shoenig/test to 0.4.1 ( #14931 )
...
bugfix for SliceContainsAll and adding SliceContainsSubset
2022-10-18 09:46:25 -05:00
dependabot[bot]
4967abeb09
build(deps): bump github.com/docker/go-units from 0.4.0 to 0.5.0 in /api ( #14430 )
...
* build(deps): bump github.com/docker/go-units from 0.4.0 to 0.5.0 in /api
Bumps [github.com/docker/go-units](https://github.com/docker/go-units ) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/docker/go-units/releases )
- [Commits](https://github.com/docker/go-units/compare/v0.4.0...v0.5.0 )
---
updated-dependencies:
- dependency-name: github.com/docker/go-units
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* deps: also update go-units in nomad
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Seth Hoenig <shoenig@duck.com >
2022-09-26 09:30:17 -05:00
dependabot[bot]
da196a8ae1
build(deps): bump github.com/shoenig/test from 0.3.1 to 0.4.0 in /api ( #14681 )
...
Bumps [github.com/shoenig/test](https://github.com/shoenig/test ) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/shoenig/test/releases )
- [Commits](https://github.com/shoenig/test/compare/v0.3.1...v0.4.0 )
---
updated-dependencies:
- dependency-name: github.com/shoenig/test
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 08:48:37 -05:00
dependabot[bot]
f9f6bc4057
build(deps): bump github.com/shoenig/test from 0.3.0 to 0.3.1 in /api ( #14194 )
...
Bumps [github.com/shoenig/test](https://github.com/shoenig/test ) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/shoenig/test/releases )
- [Commits](https://github.com/shoenig/test/compare/v0.3.0...v0.3.1 )
---
updated-dependencies:
- dependency-name: github.com/shoenig/test
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-19 11:32:59 +02:00
Piotr Kazmierczak
c4be2c6078
cleanup: replace TypeToPtr helper methods with pointer.Of ( #14151 )
...
Bumping compile time requirement to go 1.18 allows us to simplify our pointer helper methods.
2022-08-17 18:26:34 +02:00
dependabot[bot]
b75beae852
chore(deps): bump github.com/mitchellh/mapstructure from 1.4.3 to 1.5.0 in /api ( #12725 )
...
* chore(deps): bump github.com/mitchellh/mapstructure in /api
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.4.3 to 1.5.0.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.3...v1.5.0 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Also bump mapstructure in main go.mod
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Schurter <mschurter@hashicorp.com >
2022-07-13 11:57:16 -07:00
dependabot[bot]
6e0eb786f9
build(deps): bump github.com/gorilla/websocket from 1.4.2 to 1.5.0 in /api ( #12075 )
...
* build(deps): bump github.com/gorilla/websocket in /api
Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket ) from 1.4.2 to 1.5.0.
- [Release notes](https://github.com/gorilla/websocket/releases )
- [Commits](https://github.com/gorilla/websocket/compare/v1.4.2...v1.5.0 )
---
updated-dependencies:
- dependency-name: github.com/gorilla/websocket
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* deps: also bump websocket dep in main binary
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Schurter <mschurter@hashicorp.com >
2022-07-12 16:49:31 -07:00
dependabot[bot]
68cf2dc058
build(deps): bump github.com/docker/go-units from 0.3.3 to 0.4.0 in /api ( #11519 )
...
* build(deps): bump github.com/docker/go-units from 0.3.3 to 0.4.0 in /api
Bumps [github.com/docker/go-units](https://github.com/docker/go-units ) from 0.3.3 to 0.4.0.
- [Release notes](https://github.com/docker/go-units/releases )
- [Commits](https://github.com/docker/go-units/compare/v0.3.3...v0.4.0 )
---
updated-dependencies:
- dependency-name: github.com/docker/go-units
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Tidy go.sum
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Schurter <mschurter@hashicorp.com >
2022-07-12 12:54:56 -07:00
dependabot[bot]
49c04a5670
build(deps): bump github.com/stretchr/testify in /api
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.5 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.5...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-01 09:50:54 -05:00
Seth Hoenig
b940e4e15c
tests: update testify dependency
2022-06-24 15:39:21 +00:00
dependabot[bot]
8cc812197e
build(deps): bump github.com/stretchr/testify from 1.7.0 to 1.7.1 ( #12306 )
2022-03-23 19:12:51 -04:00
Seth Hoenig
5ef844c827
deps: update api go version and dependencies
...
This PR sets the minimum Go version for the `api` submodule to Go 1.17.
It also upgrades
- gorilla/websocket 1.4.1 -> 1.4.2
- mitchelh/mapstructure 1.4.2 -> 1.4.3
- stretchr/testify 1.5.1 -> 1.7.0
Closes #11518 #11602 #11528
2022-01-24 12:23:26 -06:00
dependabot[bot]
9088bc3df0
build(deps): bump github.com/hashicorp/cronexpr from 1.1.0 to 1.1.1 in /api ( #11132 )
...
* build(deps): bump github.com/hashicorp/cronexpr in /api
Bumps [github.com/hashicorp/cronexpr](https://github.com/hashicorp/cronexpr ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/hashicorp/cronexpr/releases )
- [Commits](https://github.com/hashicorp/cronexpr/compare/v1.1.0...v1.1.1 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/cronexpr
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* go mod tidy
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tim Gross <tim@0x74696d.com >
2021-11-17 11:46:48 -05:00
dependabot[bot]
3e2bbc1db4
build(deps): bump github.com/kr/pretty from 0.1.0 to 0.3.0 in /api ( #11135 )
...
* build(deps): bump github.com/kr/pretty from 0.1.0 to 0.3.0 in /api
Bumps [github.com/kr/pretty](https://github.com/kr/pretty ) from 0.1.0 to 0.3.0.
- [Release notes](https://github.com/kr/pretty/releases )
- [Commits](https://github.com/kr/pretty/compare/v0.1.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/kr/pretty
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* update in core as well and tidy
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tim Gross <tim@0x74696d.com >
2021-11-17 10:41:21 -05:00
dependabot[bot]
a5e9fe6ffb
build(deps): bump github.com/mitchellh/mapstructure in /api ( #11188 )
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.3.3 to 1.4.2.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.3.3...v1.4.2 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 10:04:12 -05:00
dependabot[bot]
903c3907a3
build(deps): bump github.com/hashicorp/go-cleanhttp in /api ( #11133 )
...
Bumps [github.com/hashicorp/go-cleanhttp](https://github.com/hashicorp/go-cleanhttp ) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/hashicorp/go-cleanhttp/releases )
- [Commits](https://github.com/hashicorp/go-cleanhttp/compare/v0.5.1...v0.5.2 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-cleanhttp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 08:42:34 -05:00
dependabot[bot]
abfdb6a0b5
build(deps): bump github.com/mitchellh/go-testing-interface in /api ( #11136 )
...
Bumps [github.com/mitchellh/go-testing-interface](https://github.com/mitchellh/go-testing-interface ) from 1.0.0 to 1.14.1.
- [Release notes](https://github.com/mitchellh/go-testing-interface/releases )
- [Commits](https://github.com/mitchellh/go-testing-interface/compare/v1.0.0...v1.14.1 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/go-testing-interface
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 08:38:35 -05:00
Seth Hoenig
fdd8d352f9
command: remove use of flag impls from consul
...
In a few places Nomad was using flag implementations directly
from Consul, lending to Nomad's need to import consul. Replace
those uses with helpers already in Nomad, and copy over the bare
minimum needed to make the autopilot flags behave as they have.
2020-12-11 07:58:20 -06:00
Drew Bailey
be2024ab90
Api/event stream payload values ( #9277 )
...
* Get concrete types out of dynamic payload
wip
pull out value setting to func
* Add TestEventSTream_SetPayloadValue
Add more assertions
use alias type in unmarshalJSON to handle payload rawmessage
shorten unmarshal and remove anonymous wrap struct
* use map structure and helper functions to return concrete types
* ensure times are properly handled
* update test name
* put all decode logic in a single function
Co-authored-by: Kris Hicks <khicks@hashicorp.com >
2020-11-05 13:04:18 -05:00
Dave May
71a022ad8c
Metrics gotemplate support, debug bundle features ( #9067 )
...
* add goroutine text profiles to nomad operator debug
* add server-id=all to nomad operator debug
* fix bug from changing metrics from string to []byte
* Add function to return MetricsSummary struct, metrics gotemplate support
* fix bug resolving 'server-id=all' when no servers are available
* add url to operator_debug tests
* removed test section which is used for future operator_debug.go changes
* separate metrics from operator, use only structs from go-metrics
* ensure parent directories are created as needed
* add suggested comments for text debug pprof
* move check down to where it is used
* add WaitForFiles helper function to wait for multiple files to exist
* compact metrics check
Co-authored-by: Drew Bailey <2614075+drewbailey@users.noreply.github.com >
* fix github's silly apply suggestion
Co-authored-by: Drew Bailey <2614075+drewbailey@users.noreply.github.com >
2020-10-14 15:16:10 -04:00
James Rasell
97a6fee193
api: tidy Go module to remove unused modules.
2020-05-18 09:56:23 +02:00
Mahmood Ali
1e7ebf5f55
vendor: use tagged cronexpr, v1.1.0
...
Also, update to the version with modification notice
2020-05-12 16:20:00 -04:00
Mahmood Ali
702d69ff3a
Update cronexpr to point to hashicorp/cronexpr
2020-05-07 17:50:45 -04:00
Yoan Blanc
def809b807
api: testify v1.5.1
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch >
2020-04-11 13:55:10 +02:00
Michel Vocks
1ca70ac86c
Update go mod
2019-12-16 12:47:10 +01:00
Mahmood Ali
f118def827
api: go-uuid is no longer needed
2019-11-12 11:02:33 -05:00
Mahmood Ali
b8bf6e9dd0
api: declare websocket as a dependency
...
`github.com/gorilla/websocket` was declared in `vendor/vendor.json` but
not in the API go module manifest.
2019-10-04 11:57:29 -04:00
Jeff Mitchell
b5d8053635
Add go.mod/go.sum ( #5493 )
2019-03-29 15:02:32 -04:00