Commit Graph

494 Commits

Author SHA1 Message Date
Mateusz Filipowicz
fcea1e0ba4 feat: support complete USG resource (#44)
* feat: add support for UPNP and Geo IP filtering to USG settings resource

* feat: support complete USG settings resource

* fix messages in required_together_if.go

* improve docs of USG resource

* tests: require version at least 9.0 for unbind_wan_monitors

* feat: require version at least 8.5 for dns_verification

* fix: use go-unifi 1.5.2 to fix NTP

* require 7.0 or later for timeout preference

* require 7.0 or later for geo IP filtering
2025-03-11 02:17:24 +01:00
Mateusz Filipowicz
35c74bf59d refactor: migrate USG setting resource to Terraform Plugin Framework (#42)
* refactor: migrate USG setting resource to Terraform Plugin Framework

* remove setting_usg from old provider

* add USG resource to provider v2
2025-03-05 12:38:44 +01:00
dependabot[bot]
eb8fc3871e build(deps): bump github.com/filipowm/go-unifi from 1.4.0 to 1.5.0 (#40)
Bumps [github.com/filipowm/go-unifi](https://github.com/filipowm/go-unifi) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/filipowm/go-unifi/releases)
- [Changelog](https://github.com/filipowm/go-unifi/blob/main/.goreleaser.yaml)
- [Commits](https://github.com/filipowm/go-unifi/compare/v1.4.0...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/filipowm/go-unifi
  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-03-03 22:10:38 +01:00
Mateusz Filipowicz
7856ec4764 feat: add Teleport support with unifi_setting_teleport resource (#39)
* feat: add Telepor support with `unifi_setting_teleport` resource

* add cidr validators

* fix teleport tests by specifying version constraints

* fix teleport version needed

* require version 7.1

* lint
2025-03-03 21:08:50 +01:00
Mateusz Filipowicz
5da978a5d3 feat: add SSL inspection resource support with unifi_setting_ssl_inspection resource (#38)
* feat: add SSL inspection resource support with `unifi_setting_ssl_inspection` resource

* add version contstraint
2025-03-02 20:46:49 +01:00
dependabot[bot]
6a87f28545 build(deps): bump github.com/hashicorp/terraform-plugin-docs from 0.20.1 to 0.21.0 (#33)
build(deps): bump github.com/hashicorp/terraform-plugin-docs

Bumps [github.com/hashicorp/terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs) from 0.20.1 to 0.21.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-docs/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-docs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-docs/compare/v0.20.1...v0.21.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-docs
  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-03-02 18:21:39 +01:00
Mateusz Filipowicz
ef2221cab9 feat: add network optimization resource support with unifi_setting_network_optimization resource (#37)
* feat: add network optimization resource support with `unifi_setting_network_optimization` resource
2025-03-02 01:41:08 +01:00
Mateusz Filipowicz
8b5ed14d8d feat: add NTP setting resource support with unifi_setting_ntp resource (#36)
* feat: add NTP setting resource support with `unifi_setting_ntp` resource

* linting

* fix missing method

* add missing validators
2025-03-02 01:10:41 +01:00
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