mirror of
https://github.com/thegeeklab/prometheus-pve-sd.git
synced 2024-11-16 06:30:39 +00:00
fix tests
This commit is contained in:
parent
12a53f5c89
commit
6a254f76f1
@ -24,5 +24,7 @@ pve:
|
||||
server: proxmox.example.com
|
||||
user: root
|
||||
password: secure
|
||||
token_name: pve_sd
|
||||
token_value: 01234567-89ab-cdef-0123-456789abcdef
|
||||
auth_timeout: 5
|
||||
verify_ssl: true
|
||||
|
12
prometheuspvesd/test/fixtures/fixtures.py
vendored
12
prometheuspvesd/test/fixtures/fixtures.py
vendored
@ -114,6 +114,18 @@ def builtins():
|
||||
"file": True,
|
||||
"type": environs.Env().str
|
||||
},
|
||||
"pve.token_name": {
|
||||
"default": "dummyname",
|
||||
"env": "PVE_TOKEN_NAME",
|
||||
"file": True,
|
||||
"type": environs.Env().str
|
||||
},
|
||||
"pve.token_value": {
|
||||
"default": "dummyvalue",
|
||||
"env": "PVE_TOKEN_VALUE",
|
||||
"file": True,
|
||||
"type": environs.Env().str
|
||||
},
|
||||
"pve.auth_timeout": {
|
||||
"default": 5,
|
||||
"env": "PVE_AUTH_TIMEOUT",
|
||||
|
@ -19,6 +19,8 @@ def test_yaml_config(mocker, defaults):
|
||||
defaults["pve"]["user"] = "root"
|
||||
defaults["pve"]["password"] = "secure"
|
||||
defaults["pve"]["server"] = "proxmox.example.com"
|
||||
defaults["pve"]["token_name"] = "pve_sd"
|
||||
defaults["pve"]["token_value"] = "01234567-89ab-cdef-0123-456789abcdef"
|
||||
|
||||
assert config.config == defaults
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user