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
Alvar Penning
f39c1fb386
Remove deprecated io/ioutil package references
...
The io/ioutil package is deprecated since Go 1.16. All its functions
were moved to either the io or os package.
2024-04-08 15:56:53 +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
Julian Brost
194028a35a
Merge pull request #715 from Icinga/go-redis-v9
...
Upgrade `go-redis` to `v9`
2024-03-25 11:02:02 +01:00
Julian Brost
f0b9c59ce8
Merge pull request #710 from Icinga/pgsql-get_sla_ok_percent-decimal-i648
...
PostgreSQL: get_sla_ok_percent to return decimal
2024-03-25 09:54:30 +01: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
Alvar Penning
34ac3867a9
PostgreSQL: get_sla_ok_percent to return decimal
...
The final division within the get_sla_ok_percent SQL function in its
PostgreSQL implementation silently truncated decimal places. An explicit
decimal cast resulted for this equation resulted in a decimal value.
To both verify and catch this in the future, a test with odd numbers was
added. This already succeeded for MySQL, but needed the modified schema
for PostgreSQL.
Closes #648 .
2024-03-20 13:16:24 +01: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
Julian Brost
236da983a9
Merge pull request #706 from Icinga/dependabot/go_modules/tests/github.com/go-sql-driver/mysql-1.8.0
...
build(deps): bump github.com/go-sql-driver/mysql from 1.7.1 to 1.8.0 in /tests
2024-03-19 11:35:45 +01:00
Julian Brost
c1be108d6c
Integration tests: don't hard-code MySQL in some tests
...
Some test cases always used a MySQL database as they didn't use the proper
function which would respect the ICINGADB_TESTS_DATABASE_TYPE=pgsql environment
variable. This commit fixes this and updates a similarly left-over error
message as well.
2024-03-18 16:29: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
68d26a6873
Merge pull request #601 from Icinga/flatten-empty-custom-vars-correctly
...
Write a hint for empty arrays/dicts into `customvar_flat`
2023-07-25 15:28:07 +02: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
Yonas Habteab
23ac5914aa
Add empty custom vars test cases
2023-06-29 13:43:33 +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
9fb9a10a8b
Merge pull request #253 from Icinga/feature/migrate-history
...
cmd/ido2icingadb: migrate history from IDO to Icinga DB
2022-11-02 12:16:47 +01: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
Alexander A. Klimov
2f5d5ea931
cmd/ido2icingadb: compute previous progress
2022-10-11 10:17:47 +02:00
Yonas Habteab
fa6c23d634
Make json keys and DB columns consistent
2022-06-24 16:00:11 +02:00
Yonas Habteab
a89e82b794
Fix integration tests
2022-05-31 17:05:51 +02:00
Eric Lippmann
66e1954123
Tests: Update go.mod
2022-05-16 17:01:47 +02:00
Julian Brost
eccac78ff3
Retention: take environment_id into account
...
This commit ensures that the retention feature only deletes history from the
current environment. Previously, the deletion queries where missing an
appropriate WHERE clause.
2022-05-13 17:19:03 +02:00
Julian Brost
19170ecbcf
SLA reporting: history retention for SLA tables
2022-05-13 12:04:47 +02:00
Julian Brost
d78ecdf994
SLA reporting: integration tests
2022-05-13 12:04: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
Julian Brost
cce8e37c07
Run go mod tidy in tests/ after defaults update
2022-04-25 16:05:47 +02:00
Alexander Aleksandrovič Klimov
f503777d3c
Merge pull request #462 from Icinga/dependabot/go_modules/github.com/lib/pq-1.10.5
...
Bump github.com/lib/pq from 1.10.4 to 1.10.5
2022-04-25 15:28:14 +02:00
Julian Brost
c84377a62c
Run go mod tidy in tests/ after pq update
2022-04-25 15:13:50 +02:00