Skip to content

Commit

Permalink
filename starting uppercase
Browse files Browse the repository at this point in the history
some test adjustments
  • Loading branch information
richardtief committed Sep 29, 2020
1 parent 24b3d0f commit fa3766d
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 17 deletions.
2 changes: 1 addition & 1 deletion BaseCollector.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import time
import os
from tools.helper import yaml_read
from tools.vrops import Vrops
from tools.Vrops import Vrops
from prometheus_client.core import GaugeMetricFamily, InfoMetricFamily, UnknownMetricFamily


Expand Down
2 changes: 1 addition & 1 deletion InventoryBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from gevent.pywsgi import WSGIServer
from threading import Thread
from resources.Vcenter import Vcenter
from tools.vrops import Vrops
from tools.Vrops import Vrops
import time
import json
import os
Expand Down
2 changes: 1 addition & 1 deletion collectors/ClusterPropertiesCollector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from BaseCollector import BaseCollector
from tools.vrops import Vrops
from tools.Vrops import Vrops
import os


Expand Down
2 changes: 1 addition & 1 deletion collectors/ClusterStatsCollector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from BaseCollector import BaseCollector
from tools.vrops import Vrops
from tools.Vrops import Vrops
import os


Expand Down
2 changes: 1 addition & 1 deletion collectors/DatastorePropertiesCollector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from BaseCollector import BaseCollector
from tools.vrops import Vrops
from tools.Vrops import Vrops
import os


Expand Down
2 changes: 1 addition & 1 deletion collectors/DatastoreStatsCollector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from BaseCollector import BaseCollector
from tools.vrops import Vrops
from tools.Vrops import Vrops
import os


Expand Down
2 changes: 1 addition & 1 deletion collectors/HostSystemPropertiesCollector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from BaseCollector import BaseCollector
from tools.vrops import Vrops
from tools.Vrops import Vrops
import os


Expand Down
2 changes: 1 addition & 1 deletion collectors/HostSystemStatsCollector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from BaseCollector import BaseCollector
from tools.vrops import Vrops
from tools.Vrops import Vrops
import os


Expand Down
2 changes: 1 addition & 1 deletion collectors/VCenterPropertiesCollector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from BaseCollector import BaseCollector
from tools.vrops import Vrops
from tools.Vrops import Vrops
import os


Expand Down
2 changes: 1 addition & 1 deletion collectors/VCenterStatsCollector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from BaseCollector import BaseCollector
import os
from tools.vrops import Vrops
from tools.Vrops import Vrops



Expand Down
2 changes: 1 addition & 1 deletion collectors/VMPropertiesCollector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from BaseCollector import BaseCollector
from tools.vrops import Vrops
from tools.Vrops import Vrops
import os


Expand Down
2 changes: 1 addition & 1 deletion collectors/VMStatsCollector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from BaseCollector import BaseCollector
from tools.vrops import Vrops
from tools.Vrops import Vrops
import os


Expand Down
2 changes: 1 addition & 1 deletion resources/Cluster.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tools.vrops import Vrops
from tools.Vrops import Vrops
from resources.Host import Host


Expand Down
2 changes: 1 addition & 1 deletion resources/Datacenter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tools.vrops import Vrops
from tools.Vrops import Vrops
from resources.Cluster import Cluster


Expand Down
2 changes: 1 addition & 1 deletion resources/Host.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tools.vrops import Vrops
from tools.Vrops import Vrops
from resources.Datastore import Datastore
from resources.VirtualMachine import VirtualMachine

Expand Down
2 changes: 1 addition & 1 deletion resources/Vcenter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tools.vrops import Vrops
from tools.Vrops import Vrops
from resources.Datacenter import Datacenter


Expand Down
2 changes: 2 additions & 0 deletions tests/TestCollectorInit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sys
sys.path.append('.')
import os
import unittest
from unittest import TestCase
from unittest.mock import call, patch, MagicMock
Expand All @@ -11,6 +12,7 @@


class TestCollectorInitialization(TestCase):
os.environ['TARGET'] = 'testhost.test'
@patch('BaseCollector.BaseCollector.wait_for_inventory_data')
def test_valid_collector2(self, mocked_wait):
mocked_wait.return_value = None
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCollectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from threading import Thread
from exporter import run_prometheus_server
from tools.helper import yaml_read
from tools.vrops import Vrops
from tools.Vrops import Vrops
from InventoryBuilder import InventoryBuilder
from collectors.HostSystemStatsCollector import HostSystemStatsCollector
from collectors.HostSystemPropertiesCollector import HostSystemPropertiesCollector
Expand Down
File renamed without changes.

0 comments on commit fa3766d

Please sign in to comment.