From e44ffff952a02236a6754eb620624567321dc2ce Mon Sep 17 00:00:00 2001 From: Vladislav Ponomarev Date: Sun, 21 Apr 2024 18:59:40 +0700 Subject: [PATCH] Remove integration tests --- .gitignore | 1 - README.md | 8 --- Vagrantfile | 59 ------------------- .../group_vars/mayurifag-test.yml | 29 --------- .../inventories/integration_testing/inventory | 5 -- 5 files changed, 102 deletions(-) delete mode 100644 Vagrantfile delete mode 100644 tests/inventories/integration_testing/group_vars/mayurifag-test.yml delete mode 100644 tests/inventories/integration_testing/inventory diff --git a/.gitignore b/.gitignore index cbe1eac..2379d42 100644 --- a/.gitignore +++ b/.gitignore @@ -19,7 +19,6 @@ roles/geerlingguy.* roles/robertdebock.* roles/darkwizard242.* roles/djx339.* -tests/test.yml inventories/my-provision secret diff --git a/README.md b/README.md index 03b993c..7ec0a1c 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,6 @@ Cloudflare or your favourite DNS provider. - Ansible `python3 -m pip install --user ansible` - (only MacOS) - passlib `python3 -m pip install --user passlib` (to use crypto module from ansible) -- Vagrant 2.2.19 (latest) + VirtualBox (for testing) ## Instructions @@ -39,13 +38,6 @@ cp -rfp inventories/sample inventories/my-provision ansible-galaxy install -r requirements.yml ``` -### Local test deployment - -```sh -# maybe if something wrong -- rm -rf .vagrant on repo folder -vagrant destroy -f ; vagrant up --provision -``` - ### Production deployment #### TL;DR diff --git a/Vagrantfile b/Vagrantfile deleted file mode 100644 index 32829e0..0000000 --- a/Vagrantfile +++ /dev/null @@ -1,59 +0,0 @@ -Vagrant.require_version ">= 2.2.2" - -required_plugins = ["vagrant-hostmanager", "vagrant-cachier"] -required_plugins.each do |plugin| - if !Vagrant.has_plugin?(plugin) - system "echo Not installed required plugin: #{plugin} ..." - system "vagrant plugin install #{plugin}" - end -end - -Vagrant.configure(2) do |config| - # https://github.com/devopsgroup-io/vagrant-hostmanager/issues/102 - config.hostmanager.enabled = true - config.hostmanager.manage_host = true - config.hostmanager.manage_guest = true - config.hostmanager.ignore_private_ip = false - config.hostmanager.include_offline = true - - config.vm.define "mayurifag-test" do - config.vm.box = "geerlingguy/debian10" - config.ssh.insert_key = false - - # vagrant-cachier - config.cache.scope = :box - - # vagrant-hostmanager - config.vm.network "private_network", ip: "192.168.56.12" - config.vm.hostname = "mayurifag.local" - config.hostmanager.aliases = %w[ - commit.mayurifag.local - doku.mayurifag.local - dozzle.mayurifag.local - glances.mayurifag.local - fb.mayurifag.local - homer.mayurifag.local - mus.mayurifag.local - netdata.mayurifag.local - ocis.mayurifag.local - portainer.mayurifag.local - traefik.mayurifag.local - wallabag.mayurifag.local - wg.mayurifag.local - ] - - config.vm.provision "ansible_local", run: "always", type: :ansible_local do |ansible| - ansible.compatibility_mode = "2.0" - ansible.install_mode = "pip" - ansible.galaxy_role_file = "requirements.yml" - ansible.inventory_path = "tests/inventories/integration_testing/inventory" - ansible.playbook = "provisioning.yml" - ansible.become = true - # Run only needed tags - # ansible.tags = "portainer" - # ansible.raw_arguments = [ - # "--extra-vars @tests/test.yml" - # ] - end - end -end diff --git a/tests/inventories/integration_testing/group_vars/mayurifag-test.yml b/tests/inventories/integration_testing/group_vars/mayurifag-test.yml deleted file mode 100644 index 1702067..0000000 --- a/tests/inventories/integration_testing/group_vars/mayurifag-test.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -## -## User settings -## -admin_username: mayurifag -admin_userpassword: change_this -admin_email: change_this@gmail.com - -root_userpassword: change_this - -admin_authorized_keys: "" -server_timezone: Europe/Moscow -server_hostname: mayurifag.local - -### -### General -### -ansible_python_interpreter: /usr/bin/python3 - -docker_home: /home/{{ admin_username }}/docker_data -files_home: /home/{{ admin_username }}/Files - -## -## Galaxy extensions -## -pip_executable: pip3 -pip_install_packages: - - docker - - requests diff --git a/tests/inventories/integration_testing/inventory b/tests/inventories/integration_testing/inventory deleted file mode 100644 index 25f4c41..0000000 --- a/tests/inventories/integration_testing/inventory +++ /dev/null @@ -1,5 +0,0 @@ -[all] -mayurifag-test ansible_connection=local ansible_host=localhost - -[test] -mayurifag-test