fix: update tests
This commit is contained in:
parent
548c641c56
commit
f7a4d2d7f2
6 changed files with 273 additions and 3 deletions
|
|
@ -13,9 +13,6 @@ license = {file = "LICENSE"}
|
|||
classifiers = [
|
||||
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,64 @@
|
|||
{
|
||||
"_meta": {
|
||||
"hostvars": {
|
||||
"GROUP1_01": {
|
||||
"ansible_host": "group1.net",
|
||||
"rougail": {
|
||||
"condition": "no",
|
||||
"variable1": "string1"
|
||||
}
|
||||
},
|
||||
"GROUP2_01": {
|
||||
"ansible_host": "group2.net",
|
||||
"rougail": {
|
||||
"condition": "no",
|
||||
"variable1": "string1"
|
||||
}
|
||||
},
|
||||
"GROUP2_02": {
|
||||
"ansible_host": "group3.net",
|
||||
"rougail": {
|
||||
"condition": "no",
|
||||
"variable1": "string1"
|
||||
}
|
||||
},
|
||||
"group4.net": {
|
||||
"ansible_host": "group4.net",
|
||||
"rougail": {
|
||||
"condition": "no",
|
||||
"variable1": "string1"
|
||||
}
|
||||
},
|
||||
"group5.net": {
|
||||
"ansible_host": "group5.net",
|
||||
"rougail": {
|
||||
"condition": "no",
|
||||
"variable1": "string1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"group1": {
|
||||
"hosts": [
|
||||
"GROUP1_01"
|
||||
]
|
||||
},
|
||||
"group2": {
|
||||
"hosts": [
|
||||
"GROUP2_01",
|
||||
"GROUP2_02"
|
||||
]
|
||||
},
|
||||
"group3": {
|
||||
"hosts": [
|
||||
"group4.net",
|
||||
"group5.net"
|
||||
]
|
||||
},
|
||||
"groups": {
|
||||
"children": [
|
||||
"group1",
|
||||
"group2"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
{
|
||||
"_meta": {
|
||||
"hostvars": {
|
||||
"GROUP1_01": {
|
||||
"ansible_host": "group1.net",
|
||||
"rougail": {
|
||||
"condition": "string1",
|
||||
"variable1": "string1"
|
||||
}
|
||||
},
|
||||
"GROUP2_01": {
|
||||
"ansible_host": "group2.net",
|
||||
"rougail": {
|
||||
"condition": "string1",
|
||||
"variable1": "string1"
|
||||
}
|
||||
},
|
||||
"GROUP2_02": {
|
||||
"ansible_host": "group3.net",
|
||||
"rougail": {
|
||||
"condition": "string1",
|
||||
"variable1": "string1"
|
||||
}
|
||||
},
|
||||
"group4.net": {
|
||||
"ansible_host": "group4.net",
|
||||
"rougail": {
|
||||
"condition": "string1",
|
||||
"variable1": "string1"
|
||||
}
|
||||
},
|
||||
"group5.net": {
|
||||
"ansible_host": "group5.net",
|
||||
"rougail": {
|
||||
"condition": "string1",
|
||||
"variable1": "string1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"group1": {
|
||||
"hosts": [
|
||||
"GROUP1_01"
|
||||
]
|
||||
},
|
||||
"group2": {
|
||||
"hosts": [
|
||||
"GROUP2_01",
|
||||
"GROUP2_02"
|
||||
]
|
||||
},
|
||||
"group3": {
|
||||
"hosts": [
|
||||
"group4.net",
|
||||
"group5.net"
|
||||
]
|
||||
},
|
||||
"groups": {
|
||||
"children": [
|
||||
"group1",
|
||||
"group2"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
{
|
||||
"_meta": {
|
||||
"hostvars": {
|
||||
"GROUP1_01": {
|
||||
"ansible_host": "group1.net",
|
||||
"rougail": {
|
||||
"condition": "no",
|
||||
"variable1": null
|
||||
}
|
||||
},
|
||||
"GROUP2_01": {
|
||||
"ansible_host": "group2.net",
|
||||
"rougail": {
|
||||
"condition": "no",
|
||||
"variable1": null
|
||||
}
|
||||
},
|
||||
"GROUP2_02": {
|
||||
"ansible_host": "group3.net",
|
||||
"rougail": {
|
||||
"condition": "no",
|
||||
"variable1": null
|
||||
}
|
||||
},
|
||||
"group4.net": {
|
||||
"ansible_host": "group4.net",
|
||||
"rougail": {
|
||||
"condition": "no",
|
||||
"variable1": null
|
||||
}
|
||||
},
|
||||
"group5.net": {
|
||||
"ansible_host": "group5.net",
|
||||
"rougail": {
|
||||
"condition": "no",
|
||||
"variable1": null
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"group1": {
|
||||
"hosts": [
|
||||
"GROUP1_01"
|
||||
]
|
||||
},
|
||||
"group2": {
|
||||
"hosts": [
|
||||
"GROUP2_01",
|
||||
"GROUP2_02"
|
||||
]
|
||||
},
|
||||
"group3": {
|
||||
"hosts": [
|
||||
"group4.net",
|
||||
"group5.net"
|
||||
]
|
||||
},
|
||||
"groups": {
|
||||
"children": [
|
||||
"group1",
|
||||
"group2"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
{
|
||||
"_meta": {
|
||||
"hostvars": {
|
||||
"GROUP1_01": {
|
||||
"ansible_host": "group1.net",
|
||||
"rougail": {
|
||||
"condition": "string1",
|
||||
"variable1": "string1"
|
||||
}
|
||||
},
|
||||
"GROUP2_01": {
|
||||
"ansible_host": "group2.net",
|
||||
"rougail": {
|
||||
"condition": "string1",
|
||||
"variable1": "string1"
|
||||
}
|
||||
},
|
||||
"GROUP2_02": {
|
||||
"ansible_host": "group3.net",
|
||||
"rougail": {
|
||||
"condition": "string1",
|
||||
"variable1": "string1"
|
||||
}
|
||||
},
|
||||
"group4.net": {
|
||||
"ansible_host": "group4.net",
|
||||
"rougail": {
|
||||
"condition": "string1",
|
||||
"variable1": "string1"
|
||||
}
|
||||
},
|
||||
"group5.net": {
|
||||
"ansible_host": "group5.net",
|
||||
"rougail": {
|
||||
"condition": "string1",
|
||||
"variable1": "string1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"group1": {
|
||||
"hosts": [
|
||||
"GROUP1_01"
|
||||
]
|
||||
},
|
||||
"group2": {
|
||||
"hosts": [
|
||||
"GROUP2_01",
|
||||
"GROUP2_02"
|
||||
]
|
||||
},
|
||||
"group3": {
|
||||
"hosts": [
|
||||
"group4.net",
|
||||
"group5.net"
|
||||
]
|
||||
},
|
||||
"groups": {
|
||||
"children": [
|
||||
"group1",
|
||||
"group2"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"_meta": {
|
||||
"hostvars": {
|
||||
"localhost": {
|
||||
"_errors": [
|
||||
"The following variables are mandatory but have no value:",
|
||||
" - rougail.variable1 (a first variable)"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"ungrouped": {
|
||||
"hosts": [
|
||||
"localhost"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue