Skip to content

Commit

Permalink
new: Add support to available field to account_availability info an…
Browse files Browse the repository at this point in the history
…d list module (#494)

* update available

* add test

* add comment
  • Loading branch information
yec-akamai authored Apr 17, 2024
1 parent 3a65544 commit 09b1844
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/modules/account_availability_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Get info about a Linode Account Availability.

{
"region": "us-east",
"available": ["NodeBalancers", "Block Storage", "Kubernetes"],
"unavailable": ["Linode"]
}

Expand Down
2 changes: 2 additions & 0 deletions docs/modules/account_availability_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ List and filter on Account Availabilitys.
[
{
"region": "ap-west",
"available": ["NodeBalancers", "Block Storage", "Kubernetes"],
"unavailable": ["Linode"]
},
{
"region": "ca-central",
"available": ["NodeBalancers", "Kubernetes"],
"unavailable": ["Linode", "Block Storage"]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
result_account_availability_samples = ['''
{
"region": "us-east",
"available": ["NodeBalancers", "Block Storage", "Kubernetes"],
"unavailable": ["Linode"]
}
''']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
result_account_availabilities_samples = ['''[
{
"region": "ap-west",
"available": ["NodeBalancers", "Block Storage", "Kubernetes"],
"unavailable": ["Linode"]
},
{
"region": "ca-central",
"available": ["NodeBalancers", "Kubernetes"],
"unavailable": ["Linode", "Block Storage"]
}
]''']
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
assert:
that:
- account_availability.account_availability.region == "us-east"
# There are only the four services (Linodes, NodeBalancers, Block Storage, Kubernetes) gated for the account availability.
- account_availability.account_availability.available | length + account_availability.account_availability.unavailable | length == 4

environment:
LINODE_UA_PREFIX: '{{ ua_prefix }}'
Expand Down

0 comments on commit 09b1844

Please sign in to comment.