class MockDefinitions(object):
    def __init__(self, session_key=None):
        self.session_key = session_key if session_key is not None else '123456789'

    @property
    def metadata(self):
        host = os.getenv('SPLUNK_API_HOST', 'localhost')
        port = os.getenv('SPLUNK_API_PORT', 8089),
        return {'server_uri': 'https://{host}:{port}/', 'session_key': self.session_key,
                'name': 'amp4e_events_test_input'}

import os
# Generates validation/input definitions as if they were created by splunk for tests
class MockDefinitions(object):
    def __init__(self, session_key=None):
        self.session_key = session_key if session_key is not None else '123456789'

    @property
    def metadata(self):
        host = os.getenv('SPLUNK_API_HOST', '127.0.0.1')
        return {'server_uri': 'https://{host}:8089/'.format(host=host), 'session_key': self.session_key,
                'name': 'amp4e_events_test_input'}

Change mock to be env dependant
Change mock to be env dependant

+ import os
+ # Generates validation/input definitions as if they were created by splunk for tests
  class MockDefinitions(object):
      def __init__(self, session_key=None):
          self.session_key = session_key if session_key is not None else '123456789'
  
      @property
      def metadata(self):
-         host = os.getenv('SPLUNK_API_HOST', 'localhost')
+         host = os.getenv('SPLUNK_API_HOST', '127.0.0.1')
-         port = os.getenv('SPLUNK_API_PORT', 8089),
-         return {'server_uri': 'https://{host}:{port}/', 'session_key': self.session_key,
+         return {'server_uri': 'https://{host}:8089/'.format(host=host), 'session_key': self.session_key,
                  'name': 'amp4e_events_test_input'}
  
Change mock to be env dependant
## Code Before:
class MockDefinitions(object):
    def __init__(self, session_key=None):
        self.session_key = session_key if session_key is not None else '123456789'

    @property
    def metadata(self):
        host = os.getenv('SPLUNK_API_HOST', 'localhost')
        port = os.getenv('SPLUNK_API_PORT', 8089),
        return {'server_uri': 'https://{host}:{port}/', 'session_key': self.session_key,
                'name': 'amp4e_events_test_input'}

## Instruction:
Change mock to be env dependant
## Code After:
import os
# Generates validation/input definitions as if they were created by splunk for tests
class MockDefinitions(object):
    def __init__(self, session_key=None):
        self.session_key = session_key if session_key is not None else '123456789'

    @property
    def metadata(self):
        host = os.getenv('SPLUNK_API_HOST', '127.0.0.1')
        return {'server_uri': 'https://{host}:8089/'.format(host=host), 'session_key': self.session_key,
                'name': 'amp4e_events_test_input'}
