Reorganized the project

This commit is contained in:
Mark J. Horninger 2024-02-15 13:10:13 -05:00
parent 166e281700
commit 5a8be7bb09
16 changed files with 12 additions and 6 deletions

View File

@ -1,7 +1,7 @@
---
# Collections must specify a minimum required ansible version to upload
# to galaxy
requires_ansible: '>=9.2.0'
requires_ansible: '>=2.16.0'
# Content that Ansible needs to load from another location or that has
# been deprecated/removed

View File

@ -1,10 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright: (c) 2024, Dominion Solutions LLC (https://dominion.solutions) <sales@dominion.solutions>
# This code is licensed under the MIT License (see LICENSE or https://spdx.org/licenses/MIT.html)
# This code uses code that is licensed under the GPL-V3 License as well
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = r"""
name: netbird
author:
- Mark Horninger (@dominion.soltuions@mstdn.business) <mark.horninger@dominion.solutions>
author: Mark J. Horninger (@spam-n-eggs)
version_added: "0.0.2"
requirements:
- requests>=2.31.0

View File

@ -1,5 +1,5 @@
ansible==9.2.0
ansible-core==2.16.3
ansible>=9.2.0
ansible-core>=2.16.3
cffi==1.16.0
cryptography==42.0.2
Jinja2==3.1.3

View File

@ -25,7 +25,7 @@ def inventory():
def test_missing_access_token_lookup(inventory):
loader = DataLoader()
inventory._options = {'access_token': None}
inventory._options = {'api_key': None}
with pytest.raises(AnsibleError) as error_message:
inventory._build_client(loader)
assert 'Could not retrieve Netbird access token' in error_message