diff --git a/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/backup.yml b/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/backup.yml new file mode 100644 index 0000000..715562a --- /dev/null +++ b/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/backup.yml @@ -0,0 +1,16 @@ +--- +# +# Copyright 2022 Red Hat inc. Project Atmoshere +# +# This program is free software: you can redistribute it and/or modify it under the terms of the GNU +# General Public License as published by the Free Software Foundation, version 3 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with this program. +# If not, see . + +- name: Create + ansible.builtin.import_playbook: molecule.driver.azure_backup diff --git a/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/deallocate.yml b/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/deallocate.yml new file mode 100644 index 0000000..d4bdbc5 --- /dev/null +++ b/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/deallocate.yml @@ -0,0 +1,16 @@ +--- +# +# Copyright 2022 Red Hat inc. Project Atmoshere +# +# This program is free software: you can redistribute it and/or modify it under the terms of the GNU +# General Public License as published by the Free Software Foundation, version 3 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with this program. +# If not, see . + +- name: Create + ansible.builtin.import_playbook: molecule.driver.azure_deallocate diff --git a/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml b/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml index ccad28e..cac7bb2 100644 --- a/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml +++ b/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml @@ -5,6 +5,7 @@ dependency: command: | ansible-galaxy install -r $MOLECULE_SCENARIO_DIRECTORY/requirements.yml pip install -r ~/.ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt + pip install azure-mgmt-netapp # yamllint enable rule:line-length driver: @@ -12,6 +13,25 @@ driver: platforms: +scenario: + create_sequence: + - dependency + - create + converge_sequence: + - dependency + - create + - converge + test_sequence: + - dependency + - destroy + - create + - converge + - idempotence + - verify + - destroy + destroy_sequence: + - destroy + provisioner: name: ansible playbooks: diff --git a/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/requirements.yml b/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/requirements.yml index d0c69d8..77168bc 100644 --- a/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/requirements.yml +++ b/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/requirements.yml @@ -16,3 +16,4 @@ collections: type: git version: main - name: azure.azcollection +- name: netapp.azure diff --git a/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/restore.yml b/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/restore.yml new file mode 100644 index 0000000..88462da --- /dev/null +++ b/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/restore.yml @@ -0,0 +1,16 @@ +--- +# +# Copyright 2022 Red Hat inc. Project Atmoshere +# +# This program is free software: you can redistribute it and/or modify it under the terms of the GNU +# General Public License as published by the Free Software Foundation, version 3 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with this program. +# If not, see . + +- name: Create + ansible.builtin.import_playbook: molecule.driver.azure_restore diff --git a/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/stop.yml b/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/stop.yml new file mode 100644 index 0000000..1e8e8f4 --- /dev/null +++ b/molecule_driver_azure/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/stop.yml @@ -0,0 +1,16 @@ +--- +# +# Copyright 2022 Red Hat inc. Project Atmoshere +# +# This program is free software: you can redistribute it and/or modify it under the terms of the GNU +# General Public License as published by the Free Software Foundation, version 3 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with this program. +# If not, see . + +- name: Create + ansible.builtin.import_playbook: molecule.driver.azure_stop diff --git a/setup.cfg b/setup.cfg index bbd4c6c..7432bdc 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,7 +5,7 @@ dists = clean --all sdist bdist_wheel # [project] [metadata] -version = 0.0.5 +version = 1.0.0 name = molecule-driver-azure url = https://github.com/redhat-sap/molecule-driver-azure project_urls =