Skip to content
Snippets Groups Projects
Commit 8e7c45f5 authored by MJB's avatar MJB
Browse files

Added shebang to all python scripts

parent 5f2e677b
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python3
\ No newline at end of file
#!/usr/bin/python3
# line protocol
# Method to create a full InfluxDB request statement (based on partial statement from client)
......
#!/usr/bin/python3
import LineProtocolGenerator as lp
import time
import urllib.parse
......
#!/usr/bin/python3
import sys
import urllib.parse
import urllib.request
......
#!/usr/bin/python3
\ No newline at end of file
#!/usr/bin/python3
import pytest
import yaml
@pytest.fixture(scope="module",
params=['test/streaming-sim/rspec.yml'])
params=[{'config1': {'rspec': 'test/streaming-sim/rspec.yml', 'id': 'myid'}}])
def streaming_sim_config(request):
"""Returns the service configuration deployed for the streaming simulation test. In future this needs to be a parameterised fixture shared with other rspec.yml based tests"""
print(request.param)
with open(request.param, 'r') as stream:
print(request.param['config1']['rspec'])
print(request.param['config1']['id'])
with open(request.param['config1']['rspec'], 'r') as stream:
data_loaded = yaml.load(stream)
return data_loaded
\ No newline at end of file
#!/usr/bin/python3
import pytest
import os
......@@ -12,5 +14,4 @@ def test_ping(streaming_sim_config):
for x in streaming_sim_config['hosts']:
print(x['ip_address'])
response = os.system("ping -c 1 " + x['ip_address'])
assert response == 0
assert response == 0
\ No newline at end of file
#!/usr/bin/python3
\ No newline at end of file
#!/usr/bin/python3
import pytest
import yaml
......
#!/usr/bin/python3
import pytest
import os
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment