Commit Graph

486 Commits

Author SHA1 Message Date
Mateusz Filipowicz
a78667e669 feat: add magic site-to-site VPN setting resource support with unifi_setting_magic_site_to_site_vpn resource (#35)
* feat: add magic site-to-site VPN setting resource support with `unifi_setting_magic_site_to_site_vpn` resource

* do not use default

* require controller version >=7.4 for magic site to site vpn tests
2025-03-01 23:12:06 +01:00
Mateusz Filipowicz
f815ffef79 feat: add locale setting resource support with unifi_setting_locale resource (#34)
* feat: add locale setting resource support with `unifi_setting_locale` resource

* lint
2025-03-01 18:03:58 +01:00
Mateusz Filipowicz
273d0daddd feat: add automatic speedtest setting resource support with unifi_setting_auto_speedtest resource (#32)
* feat: add automatic speedtest setting resource support with `unifi_setting_auto_speedtest` resource

* restore lowered test paralellism

* refactoring and fixes

* fix speedtest after refactor

* run speedtest test on versions [7.2,7.4.156), cause later it was removed from USG which is used in tests
2025-03-01 15:38:17 +01:00
Mateusz Filipowicz
a36940b019 feat: add country setting resource support with unifi_setting_country resource (#31)
* feat: add country setting resource support with `unifi_setting_country` resource

* linting
2025-02-27 02:56:07 +01:00
Mateusz Filipowicz
ccac6edebe ci: fix text file busy error causing test flakiness (#30)
* ci: try to fix text file busy error

* set up terraform explicitly before running tests

* remove limitation on parallel tests run
2025-02-26 20:22:33 +01:00
Mateusz Filipowicz
5cf4ea69ad docs: add missing contributing file 2025-02-26 18:57:34 +01:00
Mateusz Filipowicz
b1688313c0 docs: improve provider documentation (#29)
* docs: improve provider documentation

* fix accidentally changed type of stormctrl_ucast_rate

* docs: add badges and plans to readme
2025-02-26 18:56:45 +01:00
Mateusz Filipowicz
e5e50f98c0 chore: support locking in tests (#28) 2025-02-26 10:33:55 +01:00
Mateusz Filipowicz
af1aa62b3f feat: retry forgetting device when device is busy (#26) 2025-02-26 09:31:32 +01:00
dependabot[bot]
4250c1583b build(deps): bump golangci/golangci-lint-action from 6.3.0 to 6.5.0 (#15)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.3.0 to 6.5.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6.3.0...v6.5.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  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>
2025-02-26 07:16:23 +01:00
Mateusz Filipowicz
e7164c0460 feat: add DNS record resource and datasources (#25)
* add DNS record

* revamp tests

* lint

* cleanup

* feat dns test

* chore: add DNS Record tests

* linting

* f
2025-02-26 01:17:59 +01:00
Mateusz Filipowicz
325d7b7f20 feat: initialize Terraform Plugin Framework (#23)
* feat: initialize Terraform Plugin Framework

* fix docker-compose path for tests

* fix: ensure documentation can be generated with old provider SDK and new plugin framework

* lint
2025-02-24 00:11:41 +01:00
Mateusz Filipowicz
ccde06a322 chore: do not unshallow on release due to full checkout depth 2025-02-23 20:10:28 +01:00
Mateusz Filipowicz
09adb2fa4c chore: tidying deps 2025-02-23 20:09:50 +01:00
Mateusz Filipowicz
554ed16ecd prepare for release 2025-02-23 19:54:48 +01:00
Mateusz Filipowicz
b7fe359f6c feat: support API Key authentication to UniFi controller (#22) 2025-02-23 19:51:18 +01:00
Mateusz Filipowicz
f5bd8ebb15 feat: switch to filipowm/go-unifi UniFi SDK client (#20)
* feat: switch to filipowm/go-unifi UniFi SDK client

* disable validation in tests

* replace usage of APIError by ServerError

* bump go-unifi to 1.4.0
2025-02-23 17:07:03 +01:00
dependabot[bot]
8718b08a80 build(deps): bump github.com/hashicorp/terraform-plugin-sdk/v2
Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.35.0 to 2.36.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.35.0...v2.36.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-07 11:41:52 +01:00
dependabot[bot]
b92ae75394 build(deps): bump golangci/golangci-lint-action from 6.1.1 to 6.3.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.1.1 to 6.3.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6.1.1...v6.3.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-07 11:40:53 +01:00
Mateusz Filipowicz
7c8724bc5c feat: support excluded_network_ids on port profile resource 2025-02-07 11:16:00 +01:00
Mateusz Filipowicz
cdab90bb8e ci: use clean flag instead of deprecated rm-dist for goreleaser 2025-02-07 02:08:06 +01:00
Mateusz Filipowicz
66ff759909 ci: allow release job to write to repository using standard github token 2025-02-07 02:01:48 +01:00
Mateusz Filipowicz
eef49a40e0 ci: update release ci with newer action versions 2025-02-07 01:52:42 +01:00
Mateusz Filipowicz
7e1fbd5858 chore: use newer version of goreleaser 2025-02-07 01:27:28 +01:00
Mateusz Filipowicz
4c3d5830ad feat: remove unused firewall properties from settings usg 2025-02-07 01:09:36 +01:00
Mateusz Filipowicz
b19314bc6e use filipowm/go-unifi instead of paultyng/go-unifi 2025-02-07 01:09:36 +01:00
Mateusz Filipowicz
0d5de4a4cf feat: add validation on wifi name 2025-02-07 01:09:36 +01:00
Mateusz Filipowicz
708d73eb6b feat: add enabled flag 2025-02-07 01:09:36 +01:00
Mateusz Filipowicz
5e4894c114 chore: tidying up dependencies 2025-02-07 01:09:36 +01:00
Mateusz Filipowicz
0cf84ee1df feat: support updated port profile API 2025-02-07 01:09:36 +01:00
Mateusz Filipowicz
7e222cb061 feat: add network_isolation_enabled and deprecate intra_network_access_enabled 2025-02-07 01:09:36 +01:00
Mateusz Filipowicz
aa0ff2bb38 Merge pull request #3 from filipowm/fix/flaky-tests-2
chore: make tests less flaky due to random naming of resources
2025-02-06 23:25:09 +01:00
Mateusz Filipowicz
6e6991d227 chore: set test parallelism to 2 from 4 due to too high parallelism causing "text file busy" issue 2025-01-21 11:50:04 +01:00
Mateusz Filipowicz
5b20ec9132 chore: make tests less flaky due to random naming of resources
Refers #480
2025-01-09 00:21:28 +01:00
Joshua Spence
e8fc878cb2 Add v9.0 to test matrix (#483) 2025-01-07 20:21:55 +11:00
Mateusz Filipowicz
5ba683fdad fix: flaky TestAccSite_basic and TestAccDataAccount_mac tests (#481)
* fix: temporarily disable CheckDestroy in TestAccSite_basic causing test flakiness

References #480

* fix: generate random name and mac in TestAccDataAccount_default and TestAccDataAccount_mac respectively to fix flakiness

References #480

* chore: disable linter on testAccCheckSiteResourceDestroy
2025-01-07 20:01:50 +11:00
dependabot[bot]
97bb1a0700 Bump github.com/deckarep/golang-set/v2 from 2.3.1 to 2.7.0 (#479)
Bumps [github.com/deckarep/golang-set/v2](https://github.com/deckarep/golang-set) from 2.3.1 to 2.7.0.
- [Release notes](https://github.com/deckarep/golang-set/releases)
- [Commits](https://github.com/deckarep/golang-set/compare/v2.3.1...v2.7.0)

---
updated-dependencies:
- dependency-name: github.com/deckarep/golang-set/v2
  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>
2025-01-07 19:29:22 +11:00
dependabot[bot]
75a972127c Bump golangci/golangci-lint-action from 6.0.1 to 6.1.1 (#472)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.0.1 to 6.1.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6.0.1...v6.1.1)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  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>
2024-11-25 13:51:33 +11:00
Joshua Spence
a32d7b6f9c Only run CI on pushes to main branch (#467)
* Update acctest.yml

* Update acctest.yml
2024-11-22 14:56:45 +11:00
dependabot[bot]
0a40ea9a50 Bump github.com/cloudflare/circl from 1.3.3 to 1.3.7 (#438)
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.3.3 to 1.3.7.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](https://github.com/cloudflare/circl/compare/v1.3.3...v1.3.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Josh Spence <jspence@anduril.com>
2024-11-22 14:19:48 +11:00
Joshua Spence
6e0b131e77 Update testcontainers-go (#464) 2024-11-22 13:51:17 +11:00
Joshua Spence
60b7295c10 Update supported versions (#462)
* Update supported versions

* Fixes

* Set default for `dhcp_v6_enabled`

* Update resource_network_test.go

* Format

* Undo

* fixme

* Add back older versions

* Format

* FIXME
2024-11-22 13:23:12 +11:00
dependabot[bot]
23a74313b9 Bump actions/setup-go from 4 to 5 (#432)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Josh Spence <jspence@anduril.com>
2024-11-22 11:46:21 +11:00
dependabot[bot]
a5c39cfed8 Bump golang.org/x/net from 0.20.0 to 0.23.0 (#452)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.20.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.20.0...v0.23.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-22 11:42:01 +11:00
dependabot[bot]
5cb156aa3d Bump goreleaser/goreleaser-action from 4.6.0 to 5.0.0 (#410)
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 4.6.0 to 5.0.0.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](https://github.com/goreleaser/goreleaser-action/compare/v4.6.0...v5.0.0)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-22 11:39:05 +11:00
dependabot[bot]
5da3dd49c8 Bump actions/checkout from 3 to 4 (#405)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-22 11:38:45 +11:00
dependabot[bot]
d79cc47b12 Bump golangci/golangci-lint-action from 3.7.1 to 6.0.1 (#458)
* Bump golangci/golangci-lint-action from 3.7.1 to 6.0.1

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.7.1 to 6.0.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.7.1...v6.0.1)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Go format

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Josh Spence <jspence@anduril.com>
2024-11-22 11:29:06 +11:00
dependabot[bot]
b0f2d27553 Bump nick-fields/retry from 2 to 3 (#441)
Bumps [nick-fields/retry](https://github.com/nick-fields/retry) from 2 to 3.
- [Release notes](https://github.com/nick-fields/retry/releases)
- [Changelog](https://github.com/nick-fields/retry/blob/master/.releaserc.js)
- [Commits](https://github.com/nick-fields/retry/compare/v2...v3)

---
updated-dependencies:
- dependency-name: nick-fields/retry
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 23:41:09 -08:00
dependabot[bot]
4b64ac66bc Bump github.com/opencontainers/runc from 1.1.9 to 1.1.12 (#440)
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.1.9 to 1.1.12.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/v1.1.12/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.9...v1.1.12)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 23:40:00 -08:00
dependabot[bot]
818ad7d56f Bump github.com/moby/buildkit from 0.12.1 to 0.12.5 (#439)
Bumps [github.com/moby/buildkit](https://github.com/moby/buildkit) from 0.12.1 to 0.12.5.
- [Release notes](https://github.com/moby/buildkit/releases)
- [Commits](https://github.com/moby/buildkit/compare/v0.12.1...v0.12.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 23:39:46 -08:00