Skip to content

Commit

Permalink
Merge pull request #606 from linode/dev
Browse files Browse the repository at this point in the history
Release v0.31.2
  • Loading branch information
ezilber-akamai authored Oct 9, 2024
2 parents 3534c91 + 50724f5 commit eddec39
Show file tree
Hide file tree
Showing 15 changed files with 76 additions and 45 deletions.
7 changes: 5 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
interval: weekly
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
34 changes: 31 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ name: Run Documentation Validation
on: pull_request

jobs:
run-docs-validation:
test-templated-docs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .ansible/collections/ansible_collections/linode/cloud
steps:
- name: checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: .ansible/collections/ansible_collections/linode/cloud

Expand All @@ -21,7 +21,7 @@ jobs:
run: sudo apt-get install -y make

- name: setup python 3
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand All @@ -45,3 +45,31 @@ jobs:

- name: clean up
run: rm -rf tmp

test-injected-docs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .ansible/collections/ansible_collections/linode/cloud
steps:
- name: checkout repo
uses: actions/checkout@v4
with:
path: .ansible/collections/ansible_collections/linode/cloud

- name: update packages
run: sudo apt-get update -y

- name: install packages
run: sudo apt-get install -y make

- name: setup python 3
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: install dependencies
run: make deps

- name: inject and validate new docs
run: make inject
6 changes: 3 additions & 3 deletions .github/workflows/integration-tests-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

# Check out merge commit
- name: Checkout PR
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.sha }}
path: .ansible/collections/ansible_collections/linode/cloud
Expand All @@ -47,7 +47,7 @@ jobs:
run: sudo apt-get install -y build-essential

- name: setup python 3
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/github-script@v6
- uses: actions/github-script@v7
id: update-check-run
if: ${{ inputs.pull_request_number != '' && fromJson(steps.commit-hash.outputs.data).repository.pullRequest.headRef.target.oid == inputs.sha }}
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
working-directory: .ansible/collections/ansible_collections/linode/cloud
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: .ansible/collections/ansible_collections/linode/cloud
fetch-depth: 0
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:

process-upload-report:
runs-on: ubuntu-latest
needs: [run-tests]
needs: [integration-tests]
if: always() && github.repository == 'linode/ansible_linode'

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: setup python 3
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
working-directory: .ansible/collections/ansible_collections/linode/cloud
steps:
- name: checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: .ansible/collections/ansible_collections/linode/cloud

Expand All @@ -25,7 +25,7 @@ jobs:
run: sudo apt-get install -y build-essential

- name: setup python 3
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand Down
6 changes: 3 additions & 3 deletions docs/modules/lke_type_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ List and filter on LKE Types.
},
"region_prices": [
{
"id": "id-cgk"
"id": "id-cgk",
"hourly": 0.108,
"monthly": 72.0
},
{
"id": "br-gru"
"id": "br-gru",
"hourly": 0.126,
"monthly": 84.0
}
],
"transfer": 0,
"transfer": 0
}
]
```
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/network_transfer_prices_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ List and filter on Network Transfer Prices.
"monthly": null
},
"region_prices": [],
"transfer": 0,
"transfer": 0
}
]
```
Expand Down
6 changes: 3 additions & 3 deletions docs/modules/nodebalancer_type_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ List and filter on Node Balancer Types.
},
"region_prices": [
{
"id": "id-cgk"
"id": "id-cgk",
"hourly": 0.018,
"monthly": 12.0
},
{
"id": "br-gru"
"id": "br-gru",
"hourly": 0.021,
"monthly": 14.0
}
],
"transfer": 0,
"transfer": 0
}
]
```
Expand Down
6 changes: 3 additions & 3 deletions docs/modules/volume_type_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ List and filter on Volume Types.
},
"region_prices": [
{
"id": "id-cgk"
"id": "id-cgk",
"hourly": 0.00018,
"monthly": 0.12
},
{
"id": "br-gru"
"id": "br-gru",
"hourly": 0.00021,
"monthly": 0.14
}
],
"transfer": 0,
"transfer": 0
}
]
```
Expand Down
6 changes: 3 additions & 3 deletions plugins/module_utils/doc_fragments/lke_type_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
},
"region_prices": [
{
"id": "id-cgk"
"id": "id-cgk",
"hourly": 0.108,
"monthly": 72.0
},
{
"id": "br-gru"
"id": "br-gru",
"hourly": 0.126,
"monthly": 84.0
}
],
"transfer": 0,
"transfer": 0
}
]''']
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"monthly": null
},
"region_prices": [],
"transfer": 0,
"transfer": 0
}
]''']
6 changes: 3 additions & 3 deletions plugins/module_utils/doc_fragments/nodebalancer_type_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
},
"region_prices": [
{
"id": "id-cgk"
"id": "id-cgk",
"hourly": 0.018,
"monthly": 12.0
},
{
"id": "br-gru"
"id": "br-gru",
"hourly": 0.021,
"monthly": 14.0
}
],
"transfer": 0,
"transfer": 0
}
]''']
6 changes: 3 additions & 3 deletions plugins/module_utils/doc_fragments/volume_type_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
},
"region_prices": [
{
"id": "id-cgk"
"id": "id-cgk",
"hourly": 0.00018,
"monthly": 0.12
},
{
"id": "br-gru"
"id": "br-gru",
"hourly": 0.00021,
"monthly": 0.14
}
],
"transfer": 0,
"transfer": 0
}
]''']
22 changes: 11 additions & 11 deletions tests/integration/targets/instance_config_disk/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
disks:
- label: test-disk
filesystem: ext4
size: 10
size: 100
configs:
- label: cool-config
comments: really cool config
Expand All @@ -38,7 +38,7 @@
that:
- create.changed
- create.disks[0].label == 'test-disk'
- create.disks[0].size == 10
- create.disks[0].size == 100
- create.disks[0].filesystem == 'ext4'

- create.configs[0].comments == 'really cool config'
Expand All @@ -63,7 +63,7 @@
disks:
- label: test-disk
filesystem: ext4
size: 10
size: 100
configs:
- label: cool-config
comments: really cool config
Expand Down Expand Up @@ -97,7 +97,7 @@
disks:
- label: test-disk
filesystem: ext4
size: 10
size: 100
configs:
- label: cool-config
comments: really cool config but slightly different
Expand All @@ -118,7 +118,7 @@
that:
- update_config.changed
- update_config.disks[0].label == 'test-disk'
- update_config.disks[0].size == 10
- update_config.disks[0].size == 100
- update_config.disks[0].filesystem == 'ext4'

- update_config.configs[0].comments == 'really cool config but slightly different'
Expand All @@ -132,7 +132,7 @@
booted: false
disks:
- label: test-disk
size: 11
size: 101
state: present
register: resize

Expand All @@ -142,7 +142,7 @@
- resize.changed
- resize.configs|length == 0
- resize.disks[0].label == 'test-disk'
- resize.disks[0].size == 11
- resize.disks[0].size == 101

- name: Try to update the disk
linode.cloud.instance:
Expand All @@ -152,7 +152,7 @@
booted: false
disks:
- label: test-disk
size: 11
size: 101
filesystem: ntfs
state: present
register: update_disk_fail
Expand All @@ -167,7 +167,7 @@
booted: false
disks:
- label: test-disk
size: 11
size: 101
state: present
register: disk_conflict
failed_when: '"mutually exclusive" not in disk_conflict.msg'
Expand All @@ -180,7 +180,7 @@
booted: true
disks:
- label: test-disk
size: 11
size: 101

- label: boot-disk
size: 4096
Expand All @@ -203,7 +203,7 @@
- boot.changed
- boot.instance.status == 'running'
- boot.disks[0].label == 'test-disk'
- boot.disks[0].size == 11
- boot.disks[0].size == 101
- boot.disks[1].label == 'boot-disk'
- boot.disks[1].size == 4096
- boot.configs[0].label == 'boot-config'
Expand Down

0 comments on commit eddec39

Please sign in to comment.