Commit Graph

73 Commits

Author SHA1 Message Date
Adam Nadrowski
fb2d9762d8 ci: remove PR trigger from acceptance tests
Acceptance tests require a running UniFi controller and are too
heavyweight to run on every PR. They still run on push to main,
daily schedule, and manual workflow_dispatch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 12:34:52 -05:00
Mateusz Filipowicz
a133383b43 feat: support customizing guest portal logo and background with unifi_portal_file and unifi_setting_guest_access resources (#74)
* feat: support customizing guest portal logo and background with `unifi_portal_file` and `unifi_setting_guest_access` resources

* ci: run acceptance tests on go.mod changes

* f
2025-03-22 17:31:30 +01:00
Mateusz Filipowicz
ca21f79083 feat: support Guest Access settings with resource_setting_guest_access (#61)
* feat: support Guest Access settings with `resource_setting_guest_access`

* feat: add support for redirect after authentication in guest access settings

* feat: add support for Facebook authentication in guest access settings

* feat: add support for Google authentication in guest access settings

* feat: add support for RADIUS authentication in guest access settings

* feat: add support for Wechat authentication in guest access settings

* feat: add support for Facebook Wifi authentication in guest access settings

* feat: add support for restricted DNS servers

* feat: add support for guest portal UI customization

* feat: add support for restricted subnet in guest portal

* feat: retry client action on HTTP 401, but first attempt relogging in

* require controllr version 7.4 for several portal customization attributes

* enable acceptance tests workflow concurrency
2025-03-17 14:53:28 +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
af1aa62b3f feat: retry forgetting device when device is busy (#26) 2025-02-26 09:31:32 +01:00
Joshua Spence
e8fc878cb2 Add v9.0 to test matrix (#483) 2025-01-07 20:21:55 +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
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]
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]
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
Joshua Spence
595e4d1873 Mask acceptance test flakiness with retries (#387) 2023-06-30 11:37:37 +10:00
Joshua Spence
4e203d8dac Don't use beta image for UniFi Network 7.4 (#379) 2023-06-11 10:46:55 +10:00
Joshua Spence
82b99c3fba Run acceptance tests against UniFi Network 7.4 (#377) 2023-06-07 14:11:01 +10:00
dependabot[bot]
d511b308f7 Bump actions/setup-go from 3 to 4 (#351)
* Bump actions/setup-go from 3 to 4

Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

---
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>

* Don't explicitly enable `cache` for `setup-go`

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joshua Spence <josh@spence.com.au>
2023-03-20 20:21:46 +11:00
Joshua Spence
9367e123fe Dump controller logs after acceptance tests (#335)
* Dump logs

* Incrase log verbosity

* Fix lint

* Add `LogConsumer`

* Revert "Add `LogConsumer`"

This reverts commit eba91831e11fd8b38343d14363fe553a3591377b.

* Tidying

* Minor tidying

* Conditional guard

* Minor

* Fix

* Fix

* Dump logs in CI
2023-03-04 00:09:50 +11:00
Joshua Spence
b27b54a755 Use testcontainers-go (#330)
* Use `testcontainers-go`

* Wait for ready

* Sleep

* Remove `time.Sleep`

* Wait until devices appear

* Pass environment

* Add `golangci-lint` to tools

* Minor
2023-03-03 15:19:19 +11:00
Joshua Spence
81c357b3a5 Improve test stability (#310)
* Improve stability of network/wlan tests

* Improve stability of user tests

* Don't test with different Terraform versions
2023-02-24 18:04:56 +11:00
Joshua Spence
cecb61809d Update versions (#309) 2023-02-23 15:10:37 +11:00
Paul Tyng
962b6c19a4 Cleanup workflows, cache go 2022-10-23 09:31:44 -04:00
Paul Tyng
b100440c75 Update acctest.yml 2022-10-22 13:15:25 -04:00
Paul Tyng
0d4dc04428 unifi_network - default network access bools to true
* Expose InternetAccessEnabled and IntraNetworkAccessEnabled

* Generate docs

* bump go-unifi to v1.27.0

* ammend tf and unifi versions

* fix minrate preference setting in 7.2

* fix

* try some additional tf 1.3 versions  to see why they are failing

* Bump sdk version to fix import test bug

Co-authored-by: Dillon Newell <dillon@newell-labs.ca>
2022-10-20 11:54:03 -04:00
Paul Tyng
d02c97bd55 Updates for controller v7.1 and dependency updates 2022-07-02 22:02:22 -04:00
Joshua Spence
5d8c27c73f Run tests against more versions (#238) 2022-05-14 15:17:37 +10:00
dependabot[bot]
c667072b83 Bump actions/setup-go from 2.2.0 to 3 (#221)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2.2.0 to 3.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v2.2.0...v3)

---
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: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-04 09:13:52 +11:00
dependabot[bot]
c88d12e32c Bump actions/checkout from 2.4.0 to 3 (#222)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3.
- [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/v2.4.0...v3)

---
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>
2022-03-02 11:33:01 +11:00
dependabot[bot]
0a305e570c Bump actions/setup-go from 2.1.5 to 2.2.0 (#216)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2.1.5 to 2.2.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v2.1.5...v2.2.0)

---
updated-dependencies:
- dependency-name: actions/setup-go
  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>
2022-02-11 09:44:19 +11:00
dependabot[bot]
b2d7fd6407 Bump actions/setup-go from 2.1.4 to 2.1.5 (#209)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2.1.4 to 2.1.5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v2.1.4...v2.1.5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  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>
2022-01-31 15:55:11 +11:00
dependabot[bot]
1f2c36b5bd Bump actions/checkout from 2.3.4 to 2.4.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 2.4.0.
- [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/v2.3.4...v2.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-14 15:39:10 -05:00
Joshua Spence
fba54d47b5 Fix broken dependency 2021-09-26 09:56:59 -04:00
Joshua Spence
60fd797c67 Remove build from acctest workflow 2021-09-26 09:56:59 -04:00
Joshua Spence
23ef5cf329 Run acceptance tests against controller version 6.4 (#190)
* Run acceptance tests against controller version 6.4

* Fix tags

* Bump `go-unifi`
2021-09-24 07:20:08 +10:00
Paul Tyng
b4bdfce0fa Remove v5 support 2021-09-16 08:56:37 -04:00
Paul Tyng
b36a5faafd Prettier formatting of YAML 2021-09-16 08:56:37 -04:00
Joshua Spence
a2ce5a12fb Use docker-compose instead of a shell script (#155) 2021-09-15 09:51:58 +10:00
Paul Tyng
d34b25bc10 Bump tf version for tests 2021-09-10 09:00:32 -04:00
dependabot[bot]
6258533310 Bump actions/setup-go from 2.1.3 to 2.1.4 (#167)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v2.1.3...v2.1.4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  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-08-28 08:03:19 +10:00
Paul Tyng
3a122dcdd7 Relax version pinning for controller tests 2021-08-24 10:35:31 -04:00
Paul Tyng
ea4f536760 Fix tags 2021-08-19 20:36:37 -04:00
Paul Tyng
2edabc96ad Test 6.1 and 6.2 of the controller 2021-08-19 20:36:37 -04:00
Paul Tyng
44f6c30363 Bump tested TF versions 2021-08-10 10:32:17 -04:00
Paul Tyng
9c01809c26 Bump TF versions for testing 2021-06-01 19:00:50 -04:00
Paul Tyng
80b7f7aef2 Bump to 0.15.0 release 2021-04-15 12:57:33 -04:00
Paul Tyng
838ff57008 Bump tf versions 2021-04-07 20:38:01 -04:00
Paul Tyng
4d5256b4cd 🤦‍♂️ 2021-03-31 14:46:36 -04:00
Paul Tyng
aefd01af75 Update acctest.yml 2021-03-31 14:28:51 -04:00
Paul Tyng
5d23a4c168 Change the TF testing matrix 2021-03-23 11:49:19 -04:00
Paul Tyng
e4b9ac6f33 Bump tf versions 2021-03-07 11:23:10 -05:00
Paul Tyng
7e83e9579b Bump to go 1.16
Fixes #102
2021-03-07 11:23:10 -05:00
Paul Tyng
0806301f45 Bump to 0.14.2 2020-12-14 12:32:22 -05:00