Commit graph

42 commits

Author SHA1 Message Date
dependabot[bot]
fe34dbd7ae
build(deps): bump github.com/goccy/go-yaml in /tests
Bumps [github.com/goccy/go-yaml](https://github.com/goccy/go-yaml) from 1.11.3 to 1.12.0.
- [Release notes](https://github.com/goccy/go-yaml/releases)
- [Changelog](https://github.com/goccy/go-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/goccy/go-yaml/compare/v1.11.3...v1.12.0)

---
updated-dependencies:
- dependency-name: github.com/goccy/go-yaml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-30 14:30:07 +00:00
dependabot[bot]
9b08923696
build(deps): bump github.com/redis/go-redis/v9 in /tests
Bumps [github.com/redis/go-redis/v9](https://github.com/redis/go-redis) from 9.5.1 to 9.6.1.
- [Release notes](https://github.com/redis/go-redis/releases)
- [Changelog](https://github.com/redis/go-redis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/redis/go-redis/compare/v9.5.1...v9.6.1)

---
updated-dependencies:
- dependency-name: github.com/redis/go-redis/v9
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-25 18:23:48 +00:00
dependabot[bot]
1d058f175a
build(deps): bump github.com/jmoiron/sqlx from 1.3.5 to 1.4.0 in /tests
Bumps [github.com/jmoiron/sqlx](https://github.com/jmoiron/sqlx) from 1.3.5 to 1.4.0.
- [Release notes](https://github.com/jmoiron/sqlx/releases)
- [Commits](https://github.com/jmoiron/sqlx/compare/v1.3.5...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/jmoiron/sqlx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-23 18:52:25 +00:00
Alvar Penning
f09ecfc222
Increment go.mod Go version to 1.22
With the approaching release, the go version within go.mod can be
incremented to a current Go version.

There were some small changes regarding the go.mod's go semantic since
Go version 1.21, mainly enforcing compilation with a compatible
version[0]. As other modules' go.mod files are now also being included,
there are additional entries in go.sum.

[0]: https://go.dev/doc/modules/gomod-ref#go
2024-04-10 16:02:51 +02:00
dependabot[bot]
58517323a2
build(deps): bump golang.org/x/sync from 0.6.0 to 0.7.0 in /tests
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.6.0 to 0.7.0.
- [Commits](https://github.com/golang/sync/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-04 18:28:36 +00:00
dependabot[bot]
8289f5e95b
build(deps): bump github.com/go-sql-driver/mysql in /tests
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/v1.8.1/CHANGELOG.md)
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-26 18:34:28 +00:00
Eric Lippmann
e31b101f4f Upgrade go-redis to v9
Co-Authored-By: Alvar Penning <alvar.penning@icinga.com>
2024-03-22 15:32:15 +01:00
dependabot[bot]
50f56eb130
build(deps): bump github.com/docker/docker in /tests
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.7+incompatible to 24.0.9+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v24.0.7...v24.0.9)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-20 17:30:25 +00:00
Julian Brost
c19795a2dd
Merge pull request #702 from Icinga/dependabot/go_modules/tests/github.com/goccy/go-yaml-1.11.3
build(deps): bump github.com/goccy/go-yaml from 1.9.5 to 1.11.3 in /tests
2024-03-19 14:52:39 +01:00
dependabot[bot]
96d48a8973
build(deps): bump go.uber.org/zap from 1.26.0 to 1.27.0 in /tests
Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.26.0 to 1.27.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.26.0...v1.27.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 11:11:33 +00:00
dependabot[bot]
a7ac1cb93d
build(deps): bump github.com/goccy/go-yaml in /tests
Bumps [github.com/goccy/go-yaml](https://github.com/goccy/go-yaml) from 1.9.5 to 1.11.3.
- [Release notes](https://github.com/goccy/go-yaml/releases)
- [Changelog](https://github.com/goccy/go-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/goccy/go-yaml/compare/v1.9.5...v1.11.3)

---
updated-dependencies:
- dependency-name: github.com/goccy/go-yaml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 11:11:27 +00:00
dependabot[bot]
f28da7e1b0
build(deps): bump github.com/jmoiron/sqlx from 1.3.4 to 1.3.5 in /tests
Bumps [github.com/jmoiron/sqlx](https://github.com/jmoiron/sqlx) from 1.3.4 to 1.3.5.
- [Commits](https://github.com/jmoiron/sqlx/compare/v1.3.4...v1.3.5)

---
updated-dependencies:
- dependency-name: github.com/jmoiron/sqlx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 10:53:39 +00:00
dependabot[bot]
7fe4346f4c
build(deps): bump github.com/google/uuid from 1.3.0 to 1.6.0 in /tests
Bumps [github.com/google/uuid](https://github.com/google/uuid) from 1.3.0 to 1.6.0.
- [Release notes](https://github.com/google/uuid/releases)
- [Changelog](https://github.com/google/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/uuid/compare/v1.3.0...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/google/uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 10:36:36 +00:00
Julian Brost
646c14a13b
Merge pull request #704 from Icinga/dependabot/go_modules/tests/github.com/stretchr/testify-1.9.0
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /tests
2024-03-19 11:36:14 +01:00
dependabot[bot]
9f55be6c3b
build(deps): bump github.com/go-sql-driver/mysql in /tests
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.7.1...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-18 09:51:42 +00:00
dependabot[bot]
a4467f4714
build(deps): bump github.com/stretchr/testify in /tests
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.4 to 1.9.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.4...v1.9.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>
2024-03-18 09:51:36 +00:00
Alexander A. Klimov
5606ee1785 tests/go.mod: bump github.com/icinga/icinga-testing "version" 2024-03-14 12:26:54 +01:00
Julian Brost
88620d2b62
Merge pull request #662 from Icinga/dependabot/go_modules/tests/github.com/docker/docker-24.0.7incompatible
build(deps): bump github.com/docker/docker from 24.0.5-0.20230721180626-a61e2b4c9c5f+incompatible to 24.0.7+incompatible in /tests
2024-03-14 10:30:43 +01:00
dependabot[bot]
b1833c0a47
build(deps): bump github.com/docker/docker in /tests
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.5-0.20230721180626-a61e2b4c9c5f+incompatible to 24.0.7+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/commits/v24.0.7)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-30 15:46:06 +00:00
dependabot[bot]
5beaa1be08
build(deps): bump golang.org/x/net from 0.7.0 to 0.17.0 in /tests
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.7.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.7.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 23:27:45 +00:00
Julian Brost
c856fb9fe0 Make integration tests work with Go 1.20.6
As a security fix, Go implemented stricter checks for the Host header in the
http package. This breaks the Go Docker client library [1] resulting in "http:
invalid Host header" errors in our integration tests.

A fix [2] was merged to the 24.0 branch, but is not yet included in a release.
Therefore, this commit updates the dependency to a specific commit
(`go get -u github.com/docker/docker@24.0`). Once it's included in a release,
this can be switched back to using a release version.

[1] https://github.com/moby/moby/issues/45935
[2] https://github.com/moby/moby/pull/45942
2023-07-24 13:24:11 +02:00
Alexander Aleksandrovič Klimov
34ca456771
Merge pull request #570 from Icinga/dependabot/go_modules/tests/golang.org/x/net-0.7.0
build(deps): bump golang.org/x/net from 0.0.0-20211020060615-d418f374d309 to 0.7.0 in /tests
2023-05-24 11:11:31 +02:00
Alexander Aleksandrovič Klimov
6571e6eef6
Merge pull request #592 from Icinga/dependabot/go_modules/tests/github.com/opencontainers/image-spec-1.0.2
build(deps): bump github.com/opencontainers/image-spec from 1.0.1 to 1.0.2 in /tests
2023-05-23 17:37:39 +02:00
dependabot[bot]
8dfc6d0b2f
build(deps): bump github.com/opencontainers/image-spec in /tests
Bumps [github.com/opencontainers/image-spec](https://github.com/opencontainers/image-spec) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/opencontainers/image-spec/releases)
- [Changelog](https://github.com/opencontainers/image-spec/blob/main/RELEASES.md)
- [Commits](https://github.com/opencontainers/image-spec/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/image-spec
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-23 15:07:17 +00:00
dependabot[bot]
02e3718358
build(deps): bump github.com/docker/distribution in /tests
Bumps [github.com/docker/distribution](https://github.com/docker/distribution) from 2.7.1+incompatible to 2.8.2+incompatible.
- [Release notes](https://github.com/docker/distribution/releases)
- [Commits](https://github.com/docker/distribution/compare/v2.7.1...v2.8.2)

---
updated-dependencies:
- dependency-name: github.com/docker/distribution
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-23 15:07:13 +00:00
dependabot[bot]
d6f7affece
build(deps): bump golang.org/x/net in /tests
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20211020060615-d418f374d309 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-23 14:32:11 +00:00
dependabot[bot]
726bb78787
build(deps): bump github.com/docker/docker in /tests
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.8+incompatible to 20.10.24+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v20.10.8...v20.10.24)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-23 14:30:22 +00:00
Julian Brost
5cbaac5cbc Fix tests for new icinga2 master
A recent change in icinga2 [1] prevents modifying some object attributes via
the API, most notably those that influence the name of the object. Previously,
the tests would also include these attributes in the POST requests that modify
the objects (but with the same value as before), something that is now
rejected.  Therefore, this commits allows to label attributes as "nomodify" so
that they won't be sent in this case.

[1]: https://github.com/Icinga/icinga2/pull/9407
2022-10-12 15:37:54 +02:00
Julian Brost
2faa13439d Increase Go version for integration tests to 1.18
This allows the use of generics (or libraries that do) in the tests.
2022-10-12 15:34:36 +02:00
Eric Lippmann
66e1954123 Tests: Update go.mod 2022-05-16 17:01:47 +02:00
Julian Brost
5ea82188dc SLA reporting: tests for the SQL stored function 2022-05-13 12:04:47 +02:00
Eric Lippmann
37dc9c40ad Use Icinga DB docker instance for retention tests
This change eliminates the dependency on Icinga DB sources for the
retention tests by launching an Icinga DB docker instance. Furthermore,
different retention configurations are now being tested.
2022-05-04 12:22:01 +02:00
Eric Lippmann
062dd95baf Add tests for cleanup and history retention 2022-03-22 16:07:54 +01:00
Julian Brost
02fd728579 Port integration tests to PostgreSQL 2022-03-15 15:17:19 +01:00
Julian Brost
c9e3596386 Bump icinga-testing version 2022-03-09 16:51:38 +01:00
Julian Brost
02a36ad8b5 Integration tests: test that both icinga2 instances write identical history streams
refs https://github.com/Icinga/icinga2/issues/9101
2021-12-03 10:56:48 +01:00
Noah Hilverling
40c3c29af2 Integration tests: Add notifications and improve user runtime updates 2021-11-12 18:49:43 +01:00
Julian Brost
42f8390b21 Integration tests: test history sync with HA 2021-11-12 14:37:02 +01:00
Julian Brost
66dfe7d73e Add a regression test that ensures that runtime updates are executed in order 2021-11-12 12:39:24 +01:00
Julian Brost
e3ebf15f53 History sync: add benchmark 2021-10-05 18:35:02 +02:00
Julian Brost
47bc17f7d8
Update icinga-testing and use new features (#362)
The new version deploys its own ApiUser so there is no more need to do this
here and also waits for reloads to finish, so no more need for some sleeps.
2021-09-09 13:52:45 +02:00
Julian Brost
2f3e4ae93b Start adding integration tests 2021-09-02 10:15:21 +02:00