kitchen-linode 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.github/workflows/ci.yml +38 -0
- data/.gitignore +1 -0
- data/.kitchen.yml +68 -0
- data/.rubocop.yml +2 -1155
- data/Gemfile +3 -1
- data/README.md +75 -67
- data/Rakefile +14 -10
- data/kitchen-linode.gemspec +21 -17
- data/lib/kitchen/driver/linode.rb +236 -193
- data/lib/kitchen/driver/linode_version.rb +1 -2
- data/spec/kitchen/driver/linode_spec.rb +258 -94
- data/spec/mocks/create.txt +67 -0
- data/spec/mocks/create_bad.txt +26 -0
- data/spec/mocks/create_ratelimit.txt +26 -0
- data/spec/mocks/create_timeout.txt +25 -0
- data/spec/mocks/delete.txt +27 -0
- data/spec/mocks/list.txt +34 -0
- data/spec/mocks/view.txt +67 -0
- data/spec/spec_helper.rb +39 -2
- metadata +106 -25
- data/.tailor +0 -4
- data/.travis.yml +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6cc742e4dce999d9540fe0659909490decb4be4517ccc64ffeec68c6122b334d
|
4
|
+
data.tar.gz: 50b4a053960c7988e29c10f3022ca52c7fb00ff68d0da12bfb31f06d7535838d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f2e43ad739e214796a98cedf1c063acfcc324a2c98df244e0c799147b8dd049cd8ac9d5aefcb0c128889320b9fe764172db7cf21b50a697965a7540283b6123
|
7
|
+
data.tar.gz: 3402e95aa1bed2ae892e72e5dad60155203e4754f90388ff58dacdba2cd698beb5695201b22859c4e0b4f0c636442176cf484d18ca7d30d5e1e5bd1469536703
|
@@ -0,0 +1,38 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- master
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby: ['2.6', '2.7', '3.0', '3.1']
|
15
|
+
name: Lint & Test with Ruby ${{ matrix.ruby }}
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v2
|
18
|
+
- name: 'Install build dependencies'
|
19
|
+
run: |
|
20
|
+
sudo apt-get update
|
21
|
+
sudo apt-get install -yq libcurl4-openssl-dev
|
22
|
+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
23
|
+
chmod +x ./cc-test-reporter
|
24
|
+
- uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{ matrix.ruby }}
|
27
|
+
bundler-cache: true
|
28
|
+
- name: Run test suite
|
29
|
+
if: matrix.ruby != 3.0
|
30
|
+
run: bundle exec rake
|
31
|
+
- name: Run test suite and publish Code Climate report
|
32
|
+
if: matrix.ruby == '3.0'
|
33
|
+
env:
|
34
|
+
CC_TEST_REPORTER_ID: e6d4bb7235b740943569bfe50196b620353970884a75f466d11cd37a2fc250f6
|
35
|
+
run: |
|
36
|
+
./cc-test-reporter before-build
|
37
|
+
bundle exec rake
|
38
|
+
./cc-test-reporter after-build --exit-code $?
|
data/.gitignore
CHANGED
data/.kitchen.yml
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
<% # Make sure the local copy of the driver is loaded %>
|
2
|
+
<% lib = File.expand_path('../lib', __FILE__) %>
|
3
|
+
<% $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) %>
|
4
|
+
---
|
5
|
+
driver:
|
6
|
+
name: linode
|
7
|
+
|
8
|
+
provisioner:
|
9
|
+
name: dummy
|
10
|
+
|
11
|
+
platforms:
|
12
|
+
- name: linode/almalinux8
|
13
|
+
- name: linode/almalinux9
|
14
|
+
- name: linode/alpine3.16
|
15
|
+
- name: linode/arch
|
16
|
+
- name: linode/centos7
|
17
|
+
- name: linode/centos-stream8
|
18
|
+
- name: linode/centos-stream9
|
19
|
+
- name: linode/debian10
|
20
|
+
- name: linode/debian11
|
21
|
+
- name: linode/fedora36
|
22
|
+
- name: linode/gentoo
|
23
|
+
- name: linode/kali
|
24
|
+
- name: linode/opensuse15.4
|
25
|
+
- name: linode/rocky8
|
26
|
+
- name: linode/slackware15.0
|
27
|
+
- name: linode/ubuntu20.04
|
28
|
+
- name: linode/ubuntu22.04
|
29
|
+
|
30
|
+
suites:
|
31
|
+
- name: default
|
32
|
+
excludes:
|
33
|
+
- linode/almalinux9
|
34
|
+
- linode/alpine3.16
|
35
|
+
- linode/centos-stream9
|
36
|
+
- linode/arch
|
37
|
+
- linode/fedora36
|
38
|
+
- linode/gentoo
|
39
|
+
- linode/kali
|
40
|
+
- linode/slackware15.0
|
41
|
+
- linode/ubuntu22.04
|
42
|
+
# All of these ship with OpenSSH 8.8+, switch to ecdsa
|
43
|
+
# keys until test-kitchen bumps net-ssh to 7.0+.
|
44
|
+
# See: https://github.com/net-ssh/net-ssh/issues/836
|
45
|
+
- name: ecdsa
|
46
|
+
driver:
|
47
|
+
private_key_path: ~/.ssh/id_ecdsa
|
48
|
+
includes:
|
49
|
+
- linode/almalinux9
|
50
|
+
- linode/alpine3.16
|
51
|
+
- linode/centos-stream9
|
52
|
+
- linode/arch
|
53
|
+
- linode/fedora36
|
54
|
+
- linode/gentoo
|
55
|
+
- linode/kali
|
56
|
+
- linode/slackware15.0
|
57
|
+
- linode/ubuntu22.04
|
58
|
+
|
59
|
+
verifier:
|
60
|
+
name: shell
|
61
|
+
# simple check to test:
|
62
|
+
# - ssh connectivity
|
63
|
+
# - hostname was set correctly
|
64
|
+
# - ssh password auth was disabled
|
65
|
+
command: >-
|
66
|
+
set -x &&
|
67
|
+
test "$(ssh -i ${KITCHEN_SSH_KEY} ${KITCHEN_USERNAME}@${KITCHEN_HOSTNAME} -p ${KITCHEN_PORT:-22} -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' -o 'LogLevel=ERROR' 'hostname')" = "${KITCHEN_INSTANCE}" &&
|
68
|
+
ssh -i ${KITCHEN_SSH_KEY} ${KITCHEN_USERNAME}@${KITCHEN_HOSTNAME} -p ${KITCHEN_PORT:-22} -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' -o 'LogLevel=ERROR' 'grep -qe "^PasswordAuthentication no$" /etc/ssh/sshd_config'
|