Commit graph

18 commits

Author SHA1 Message Date
Jonas L.
04a45bd92c
test: improve load_balancer_target integration using new framework (#547)
##### SUMMARY

Use the new testing framework for the load_balancer_target integration
tests.

Depends on #546
2024-08-08 16:05:21 +02:00
Jonas L.
d56d12b68d
test: improve load_balancer_service integration using new framework (#546)
SUMMARY

Use the new testing framework for the load_balancer_service integration
tests.

Depends on #545
2024-08-08 16:04:22 +02:00
Jonas L.
1d9ea16fc4
test: improve load_balancer_network integration using new framework (#545)
##### SUMMARY

Use the new testing framework for the load_balancer_network integration
tests.
2024-08-08 16:01:47 +02:00
Jonas L
1ae6769210
fix: return sorted alias_ips in server_network module (#458)
##### SUMMARY

- test: use testing framework for server_network integration tests
- fix: return sorted alias_ips in server_network module

##### ISSUE TYPE

- Bugfix Pull Request


##### COMPONENT NAME

server_network
2024-02-07 11:45:37 +01:00
Jonas L
866e0b564e
test: use testing framework for network integration tests (#448)
##### SUMMARY

Implement the new test framework for the network tests, and reenable the
network tests
2024-02-02 13:42:18 +01:00
renovate[bot]
277fd1cd16
deps: update pre-commit hook ansible/ansible-lint to v6.22.2 (#441)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [ansible/ansible-lint](https://togithub.com/ansible/ansible-lint) |
repository | patch | `v6.22.1` -> `v6.22.2` |

Note: The `pre-commit` manager in Renovate is not supported by the
`pre-commit` maintainers or community. Please do not report any problems
there, instead [create a Discussion in the Renovate
repository](https://togithub.com/renovatebot/renovate/discussions/new)
if you have any questions.

---

### Release Notes

<details>
<summary>ansible/ansible-lint (ansible/ansible-lint)</summary>

###
[`v6.22.2`](https://togithub.com/ansible/ansible-lint/releases/tag/v6.22.2)

[Compare
Source](https://togithub.com/ansible/ansible-lint/compare/v6.22.1...v6.22.2)

#### Bugfixes

- Fix key error for name\[casing] rule
([#&#8203;3987](https://togithub.com/ansible/ansible-lint/issues/3987))
[@&#8203;ajinkyau](https://togithub.com/ajinkyau)
- Allow dashes in legacy role namespaces
([#&#8203;3962](https://togithub.com/ansible/ansible-lint/issues/3962))
[@&#8203;sur5r](https://togithub.com/sur5r)
- Use new ansible-compat verbosity levels
([#&#8203;3975](https://togithub.com/ansible/ansible-lint/issues/3975))
[@&#8203;ssbarnea](https://togithub.com/ssbarnea)
- Remove dependency on newer requests library
([#&#8203;3959](https://togithub.com/ansible/ansible-lint/issues/3959))
[@&#8203;ssbarnea](https://togithub.com/ssbarnea)
- Ignore set-property for systemd command
([#&#8203;3949](https://togithub.com/ansible/ansible-lint/issues/3949))
[@&#8203;alanbbr](https://togithub.com/alanbbr)
- Correct requires_ansible error message
([#&#8203;3954](https://togithub.com/ansible/ansible-lint/issues/3954))
[@&#8203;ssbarnea](https://togithub.com/ssbarnea)
- Improve transformation for `no-free-form` rule
([#&#8203;3945](https://togithub.com/ansible/ansible-lint/issues/3945))
[@&#8203;ajinkyau](https://togithub.com/ajinkyau)
- Documentation improvement
([#&#8203;3946](https://togithub.com/ansible/ansible-lint/issues/3946))
[@&#8203;ssbarnea](https://togithub.com/ssbarnea)
- docs: fix grammatical issue in philosophy Q\&A section
([#&#8203;3934](https://togithub.com/ansible/ansible-lint/issues/3934))
[@&#8203;davidhulick](https://togithub.com/davidhulick)
- Update supported versions of ansible
([#&#8203;3930](https://togithub.com/ansible/ansible-lint/issues/3930))
[@&#8203;ajinkyau](https://togithub.com/ajinkyau)
- Fix backward compatibility
([#&#8203;3929](https://togithub.com/ansible/ansible-lint/issues/3929))
[@&#8203;McSim85](https://togithub.com/McSim85)
- Fix auto capitalization for name\[prefix] rule
([#&#8203;3922](https://togithub.com/ansible/ansible-lint/issues/3922))
[@&#8203;ajinkyau](https://togithub.com/ajinkyau)
- Fix role deps check for detecting path names
([#&#8203;3923](https://togithub.com/ansible/ansible-lint/issues/3923))
[@&#8203;cavcrosby](https://togithub.com/cavcrosby)
- Avoid warnings about PATH with pipx installations
([#&#8203;3920](https://togithub.com/ansible/ansible-lint/issues/3920))
[@&#8203;ssbarnea](https://togithub.com/ssbarnea)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2024-01-29 20:04:20 +01:00
Jonas L
3910785025
test: use testing framework for firewall integration tests (#425)
##### SUMMARY

Use the new testing framework for the firewall integration tests and fix
linting errors.
2023-12-15 15:25:35 +01:00
Jonas L
86e476f961
test: fix linting error for integrations setup roles (#426)
##### SUMMARY

Fix ansible lint error for the integrations setup roles.
2023-12-15 15:25:20 +01:00
Jonas L
df7fa04149
fix(inventory): always use fresh cache on new cached session (#404)
##### SUMMARY

The class scoped `cache` dict was being shared across all
`cached_session`, we now make sure that the cache is instance scoped.

Fixes #403

##### ISSUE TYPE

- Bugfix Pull Request
2023-11-24 20:50:43 +01:00
Jonas L
df8c3b6a59
refactor: add future annotations imports (#398)
##### SUMMARY

This adds future annotations imports to benefit from the modern python
typing system.
2023-11-23 14:53:10 +01:00
Jonas L
6581ed50db
feat: add hetzner.hcloud.all action group (#396)
##### SUMMARY

This allows to use `module_defaults` against all the modules at once
using the new `hetzner.hcloud.all` `action_group`.

You can now pass the `api_token` argument using module_defaults:

```yaml
- name: Demonstrate the usage of the 'hetzner.hcloud.all' module_defaults group
  hosts: localhost
  connection: local

  module_defaults:
    group/hetzner.hcloud.all:
      api_token: "{{ _vault_hcloud_api_token }}"

  tasks:
    - name: Create a volume
      hetzner.hcloud.volume:
        name: my-volume
        location: fsn1
        size: 100
        state: present
      register: volume
```   

See the documentation and examples for more details.

##### ISSUE TYPE

- Feature Pull Request
2023-11-23 14:16:05 +01:00
Jonas L
933a16249b
feat: remove hcloud_ prefix from all modules names (#390)
##### SUMMARY

This simplifies the name of the modules from
`hetzner.hcloud.hcloud_firewall` to `hetzner.hcloud.firewall`. While
maintaining backward compatibility with the old names.

Further changes such as updating the test or the documentation will be
done in a future PR to maintain the git history when squashing the PRs.

##### ISSUE TYPE

- Feature Pull Request
2023-11-20 13:21:23 +01:00
Jonas L
c336f47f80
test: improve rdns integration using the testing framework (#372)
##### SUMMARY

Use the new testing framework for the rdns integration tests.
2023-10-23 16:23:33 +02:00
Jonas L
10a3e4f01e
test: rework load_balancer module tests (#367)
##### SUMMARY

Use the new testing framework and clean up the load_balancer tests.

---------

Co-authored-by: Julian Tölle <julian.toelle97@gmail.com>
2023-10-19 18:14:18 +02:00
Jonas L
4044980477
test: fix vswitch subnets ip_range (#359)
##### SUMMARY

The vswitch subnet validation changed: the subnet ip_range must be
smaller than the network ip_range **AND** must not start with the same
IP.
 
See
https://github.com/ansible-collections/hetzner.hcloud/runs/17672011247

In addition, I reworked the tests to use the new testing framework.
2023-10-17 09:18:26 +02:00
Jonas L
8b24cf2522
test: improve *_info modules tests (#299)
##### SUMMARY

- Implement the new testing framework (prepare.yml/cleanup.yml #239)
- Fix some uncovered test scenarios (related to #298).
- Structure all the *_info tests using the following structure:
  ```
  gather all
  [gather all with custom options...]
  gather all in check mode
  gather with id
  gather with name
  gather with labels
  [gather with custom option...]
  ```
2023-08-17 09:44:33 +02:00
Jonas L
5c4079e059
fix: do not error on location_info invalid id (#292)
* test: fix hcloud_location_info with wrong id test

* chore: cleanup hcloud_location_info tests

* fix: error on location_info invalid id
2023-08-09 12:42:22 +02:00
Jonas L
59fe4339d4
chore: add ansible-lint pre-commit hook (#293)
* chore: add ansible-lint pre-commit hook

* chore: galaxy.yml license field should be a list

* chore: fix ansible-lint errors
2023-08-09 11:32:23 +02:00