From 274f6e48180747cb727ce68821c140aa455be4ba Mon Sep 17 00:00:00 2001 From: Kevin Breit Date: Mon, 29 Apr 2019 11:16:31 -0500 Subject: Removed legacy Digital Ocean tasks (#51786) --- .../roles/test_digital_ocean/tasks/floating_ip.yml | 38 ---------------------- .../legacy/roles/test_digital_ocean/tasks/main.yml | 4 --- .../roles/test_digital_ocean/tasks/sshkey.yml | 25 -------------- 3 files changed, 67 deletions(-) delete mode 100644 test/legacy/roles/test_digital_ocean/tasks/floating_ip.yml delete mode 100644 test/legacy/roles/test_digital_ocean/tasks/main.yml delete mode 100644 test/legacy/roles/test_digital_ocean/tasks/sshkey.yml (limited to 'test/legacy') diff --git a/test/legacy/roles/test_digital_ocean/tasks/floating_ip.yml b/test/legacy/roles/test_digital_ocean/tasks/floating_ip.yml deleted file mode 100644 index 2f456b2573..0000000000 --- a/test/legacy/roles/test_digital_ocean/tasks/floating_ip.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- - -- name: "Make sure that the Floating IP is absent" - digital_ocean_floating_ip: - state: absent - ip: "8.8.8.8" - oauth_token: "{{ digitalocean_oauth_token }}" - register: result - -- name: Verify that the Floating IP didn't change - assert: - that: - - "not result.changed" - -- name: "Create a Floating IP" - digital_ocean_floating_ip: - state: present - region: "lon1" - oauth_token: "{{ digitalocean_oauth_token }}" - register: result - -- name: Verify that a Floating IP was created - assert: - that: - - "result.changed" - -- name: "Destroy Floating IP" - digital_ocean_floating_ip: - state: absent - ip: "{{ result.data.floating_ip.ip }}" - region: "lon1" - oauth_token: "{{ digitalocean_oauth_token }}" - register: result - -- name: Verify that a Floating IP was deleted - assert: - that: - - " result.changed" diff --git a/test/legacy/roles/test_digital_ocean/tasks/main.yml b/test/legacy/roles/test_digital_ocean/tasks/main.yml deleted file mode 100644 index 009ca43be5..0000000000 --- a/test/legacy/roles/test_digital_ocean/tasks/main.yml +++ /dev/null @@ -1,4 +0,0 @@ -- name: SSH Key module tests - include: tasks/sshkey.yml -- name: Floating IPs module tests - include: tasks/floating_ip.yml diff --git a/test/legacy/roles/test_digital_ocean/tasks/sshkey.yml b/test/legacy/roles/test_digital_ocean/tasks/sshkey.yml deleted file mode 100644 index a6a964e70d..0000000000 --- a/test/legacy/roles/test_digital_ocean/tasks/sshkey.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- - -- name: Create ssh key - digital_ocean_sshkey: - name: test-key1 - ssh_pub_key: "{{ dummy_ssh_pub_key }}" - oauth_token: "{{ digitalocean_oauth_token }}" - register: result - -- name: Verify that SSH key was created - assert: - that: - - "result.changed" - -- name: "Delete ssh key" - digital_ocean_sshkey: - state: "absent" - fingerprint: "{{ result.data.ssh_key.fingerprint }}" - oauth_token: "{{ digitalocean_oauth_token }}" - register: result - -- name: Verify that SSH key was deleted - assert: - that: - - "result.changed" -- cgit v1.2.3