-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issues with the groups list comprehension (#8)
- Loading branch information
1 parent
8357f52
commit d63c535
Showing
12 changed files
with
252 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Bug Report | ||
description: Report an Issue or Bug with the Package | ||
title: "[Bug]: " | ||
labels: ["bug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
We're sorry to hear you have a problem. Can you help us solve it by providing the following details. | ||
- type: textarea | ||
id: what-happened | ||
attributes: | ||
label: What happened? | ||
description: What did you expect to happen? | ||
placeholder: I cannot currently do X thing because when I do, it breaks X thing. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: how-to-reproduce | ||
attributes: | ||
label: How to reproduce the bug | ||
description: How did this occur, please add any config values used and provide a set of reliable steps if possible. | ||
placeholder: When I do X I see Y. | ||
validations: | ||
required: true | ||
- type: input | ||
id: package-version | ||
attributes: | ||
label: Package Version | ||
description: What version of our Package are you running? Please be as specific as possible | ||
placeholder: 2.0.0 | ||
validations: | ||
required: true | ||
- type: input | ||
id: php-version | ||
attributes: | ||
label: PHP Version | ||
description: What version of PHP are you running? Please be as specific as possible | ||
placeholder: 8.2.0 | ||
validations: | ||
required: true | ||
- type: input | ||
id: laravel-version | ||
attributes: | ||
label: Laravel Version | ||
description: What version of Laravel are you running? Please be as specific as possible | ||
placeholder: 9.0.0 | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: operating-systems | ||
attributes: | ||
label: Which operating systems does with happen with? | ||
description: You may select more than one. | ||
multiple: true | ||
options: | ||
- macOS | ||
- Windows | ||
- Linux | ||
- type: textarea | ||
id: notes | ||
attributes: | ||
label: Notes | ||
description: Use this field to provide any other notes that you feel might be relevant to the issue. | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Ask a question | ||
url: https://github.com/dominion-solutions/ansible-netbird-role/discussions/new?category=q-a | ||
about: Ask the community for help | ||
- name: Request a feature | ||
url: https://github.com/dominion-solutions/ansible-netbird-role/discussions/new?category=ideas | ||
about: Share ideas for new features | ||
- name: Report a security issue | ||
url: https://github.com/dominion-solutions/ansible-netbird-role/security/policy | ||
about: Learn how to notify us for sensitive bugs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Security Policy | ||
|
||
If you discover any security related issues, please email compliance@dominion.solutions instead of using the issue tracker. | ||
Please encrypt messages using our PGP Key below: | ||
``` | ||
-----BEGIN PGP PUBLIC KEY BLOCK----- | ||
mQGNBGXZ4joBDADKC9XF05nU53n5EXE0JM0G2FrhZaPEpzJ47CFcOyvx3eHTOfwN | ||
Z+Rtjgcugk66VNdj/fkwPpjj+Yj1ISchGDhOCXVlNnwiRdknGJ8uHZXlVYuPsVSF | ||
voocOthFuRgM8CighScO4uPybHZUa4VwQ2+B48WFa/3FszLf6YlDWoBwljE3KVZD | ||
WgTy/VvXx3Momwk+cher6W2eA8SuJEuixeX9mx7iu5kCjcvPBmvnDTfQS9zjKCuD | ||
ymwJg9h+paFFcx+ObmdOnpoG7jiB4kXENFtaAIrYR/vroODZZQUnBGvvEASXbJh6 | ||
drEQu8t14l+qqaBCeGIbp/rM875VZPH7StAKRAhYGCr474Wj31jN9v93njnJtX5K | ||
gmBSyugI/FUOP+Eov7Fp4gvm7Mrupa/z01iRcomp7q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vAIoOToWi3+nqNHRksFaiMFV7151Sj3UWmb | ||
kd+VI9FooIgAvpr+c7mNkXBlASQGcm8ccaVseoKoi+EcLzZrnSFBAvYNDw/9fMue | ||
M1VsowkYjRmjhVqapRM2TVwlZhA9PBOwmcljYe7UXwF1rEpT6EkNKe2iL3cZ1PU6 | ||
ElffLk3Gt7Y7BYOMftWY9d987jJhX0C8K5yygPtAG9hFlB+BEMNhNQlcSGKDRUfs | ||
W1rHLV2cHS9OUe8WLCKczZPCunuNQ7QTGSdOdgeMUps4MIWgauXNRFYBU+g4vYf8 | ||
ibLaPACwMaGgj3CR4T5VaMx7c9DvOb6iKNT9kNje/CB/TXqW4S+lABEBAAGJAbwE | ||
GAEKACYWIQTRYwKrox7TG4ZGCRp6bLMYX9rUwAUCZdniOgIbDAUJA8JnAAAKCRB6 | ||
bLMYX9rUwFjBC/4lO/cKl46AZ1+MwMrIMlb5/JCsa2uMloKllcnkufoqKSyW6yWk | ||
0H7kqpsk4sSg53gGnfgIUrNo88FSac8OyMRmapbJRiq5kriJyJvadZdBpjVK/vAG | ||
PxdsRWeGFpnNz8eZOINbZBPg6/inLixloQeiJpMg11J2qVniGvqgPLTZ3AxmGUmL | ||
IDajBR7uYJgws0hw/pXGU1OQ5Z93472J44FxHMTRlTtA3AvCOLZ8v2O/wyBfKfpm | ||
x+0NpIauJ3pCerrsfpdwvftxubyBVtbsqvxLODBj79Pg6H+MPJN9aQeC3DNN9dA3 | ||
ABRcFfFGpZ1u3Hh31xMo3+g1AGjl2E1wBliLy9wZwvJNtqX/gIqRFccYCNFNwama | ||
+sz87Je6Ykb350onCeKr6BtzU11A6RqXvdpFQQ3MQ1lDVF8J1XiXdKWE5X/KHjKR | ||
/5iPPc93z7ttRgcnJ5kEbHJPKMLMmMU7rTF6Af9+sxjgoolPTMzcjyek1ilVKdKv | ||
wNGl4zykRU8x8Qs= | ||
=9AAX | ||
-----END PGP PUBLIC KEY BLOCK----- | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
tests/unit/module_utils/inventories/fixtures/groups_develoment.netbird.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
plugin: dominion_solutions.netbird.netbird | ||
api_url: https://api.netbird.io/api/ | ||
api_key: nbp_this_is_a_fake_api_key | ||
netbird_groups: | ||
- Development | ||
ip_style: plain | ||
groups: | ||
strict: No | ||
keyed_groups: | ||
compose: |
4 changes: 4 additions & 0 deletions
4
tests/unit/module_utils/inventories/fixtures/invalid_token.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"message": "token invalid", | ||
"code": 401 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/unit/module_utils/inventories/fixtures/only_connected.netbird.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
tests/unit/module_utils/inventories/fixtures/peers_multigroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
[ | ||
{ | ||
"accessible_peers_count": 1, | ||
"approval_required": false, | ||
"city_name": "", | ||
"connected": false, | ||
"connection_ip": "", | ||
"country_code": "", | ||
"dns_label": "apple.netbird.cloud", | ||
"geoname_id": 0, | ||
"groups": [ | ||
{ | ||
"id": "3aBcD4eF5gHiJ6kLmNoP", | ||
"name": "All", | ||
"peers_count": 2 | ||
} | ||
], | ||
"hostname": "apple", | ||
"id": "2j3k4l5m6n7o8p9q0r1", | ||
"ip": "10.10.10.123", | ||
"kernel_version": "", | ||
"last_login": "2024-02-10T22:01:27.744131502Z", | ||
"last_seen": "2024-02-11T03:21:42.202104672Z", | ||
"login_expiration_enabled": true, | ||
"login_expired": false, | ||
"name": "apple", | ||
"os": "Linux Mint 21.3", | ||
"ssh_enabled": false, | ||
"ui_version": "netbird-desktop-ui/0.25.7", | ||
"user_id": "auth0|abc123xyz4567890defg", | ||
"version": "0.25.7" | ||
}, | ||
{ | ||
"accessible_peers_count": 1, | ||
"approval_required": false, | ||
"city_name": "New York", | ||
"connected": true, | ||
"connection_ip": "146.123.45.67", | ||
"country_code": "US", | ||
"dns_label": "banana.netbird.cloud", | ||
"geoname_id": 1234567, | ||
"groups": [ | ||
{ | ||
"id": "2j3k4l5m6n7o8p9q0r1", | ||
"name": "Development", | ||
"peers_count": 1 | ||
}, | ||
{ | ||
"id": "3aBcD4eF5gHiJ6kLmNoP", | ||
"name": "All", | ||
"peers_count": 2 | ||
} | ||
], | ||
"hostname": "banana", | ||
"id": "hkwJPXNUmGywCLo5S8Wg", | ||
"ip": "10.10.10.124", | ||
"kernel_version": "", | ||
"last_login": "2024-02-02T11:20:05.934889112Z", | ||
"last_seen": "2024-02-24T02:59:35.324496386Z", | ||
"login_expiration_enabled": false, | ||
"login_expired": false, | ||
"name": "docker-manager", | ||
"os": "Alpine Linux 3.19.1", | ||
"ssh_enabled": false, | ||
"ui_version": "", | ||
"user_id": "", | ||
"version": "0.25.5" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters