Added host variable to Splunk.py and updated tox tests (#8052)
* Added host variable to Splunk.py and updated tox tests * Update splunk.py * Update splunk.py
This commit is contained in:
parent
a3a702b269
commit
c478f2c7d0
2 changed files with 7 additions and 1 deletions
|
@ -28,6 +28,7 @@ class TestSplunk(unittest.TestCase):
|
|||
'port': 123,
|
||||
'token': 'secret',
|
||||
'ssl': 'False',
|
||||
'name': 'hostname',
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -96,6 +97,7 @@ class TestSplunk(unittest.TestCase):
|
|||
'attributes': {},
|
||||
'time': '12345',
|
||||
'value': out,
|
||||
'host': 'HASS',
|
||||
}]
|
||||
|
||||
payload = {'host': 'http://host:8088/services/collector/event',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue