Skip to content

Commit 7d43053

Browse files
Switching to logx.optimizely (#34)
1 parent 0487e67 commit 7d43053

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

optimizely/event_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ class EventBuilderV2(BaseEventBuilder):
250250
""" Class which encapsulates methods to build events for tracking
251251
impressions and conversions using the new endpoints. """
252252

253-
IMPRESSION_ENDPOINT = 'https://p13nlog.dz.optimizely.com/log/decision'
254-
CONVERSION_ENDPOINT = 'https://p13nlog.dz.optimizely.com/log/event'
253+
IMPRESSION_ENDPOINT = 'https://logx.optimizely.com/log/decision'
254+
CONVERSION_ENDPOINT = 'https://logx.optimizely.com/log/event'
255255
HTTP_VERB = 'POST'
256256
HTTP_HEADERS = {'Content-Type': 'application/json'}
257257
EVENT_VALUE_METRIC = 'revenue'

tests/test_optimizely.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def test_activate(self):
498498
self.project_config.get_experiment_from_key('test_experiment'), None)
499499
mock_bucket.assert_called_once_with(self.project_config.get_experiment_from_key('test_experiment'), 'test_user')
500500
self.assertEqual(1, mock_dispatch_event.call_count)
501-
self._validate_event_object(mock_dispatch_event.call_args[0][0], 'https://p13nlog.dz.optimizely.com/log/decision',
501+
self._validate_event_object(mock_dispatch_event.call_args[0][0], 'https://logx.optimizely.com/log/decision',
502502
expected_params, 'POST', {'Content-Type': 'application/json'})
503503

504504
def test_activate__with_attributes__audience_match(self):
@@ -540,7 +540,7 @@ def test_activate__with_attributes__audience_match(self):
540540
{'test_attribute': 'test_value'})
541541
mock_bucket.assert_called_once_with(self.project_config.get_experiment_from_key('test_experiment'), 'test_user')
542542
self.assertEqual(1, mock_dispatch_event.call_count)
543-
self._validate_event_object(mock_dispatch_event.call_args[0][0], 'https://p13nlog.dz.optimizely.com/log/decision',
543+
self._validate_event_object(mock_dispatch_event.call_args[0][0], 'https://logx.optimizely.com/log/decision',
544544
expected_params, 'POST', {'Content-Type': 'application/json'})
545545

546546
def test_activate__with_attributes__no_audience_match(self):
@@ -658,7 +658,7 @@ def test_track__with_attributes(self):
658658
}
659659
mock_bucket.assert_called_once_with(self.project_config.get_experiment_from_key('test_experiment'), 'test_user')
660660
self.assertEqual(1, mock_dispatch_event.call_count)
661-
self._validate_event_object(mock_dispatch_event.call_args[0][0], 'https://p13nlog.dz.optimizely.com/log/event',
661+
self._validate_event_object(mock_dispatch_event.call_args[0][0], 'https://logx.optimizely.com/log/event',
662662
expected_params, 'POST', {'Content-Type': 'application/json'})
663663

664664
def test_track__with_attributes__no_audience_match(self):
@@ -730,7 +730,7 @@ def test_track__with_event_value(self):
730730
}
731731
mock_bucket.assert_called_once_with(self.project_config.get_experiment_from_key('test_experiment'), 'test_user')
732732
self.assertEqual(1, mock_dispatch_event.call_count)
733-
self._validate_event_object(mock_dispatch_event.call_args[0][0], 'https://p13nlog.dz.optimizely.com/log/event',
733+
self._validate_event_object(mock_dispatch_event.call_args[0][0], 'https://logx.optimizely.com/log/event',
734734
expected_params, 'POST', {'Content-Type': 'application/json'})
735735

736736
def test_track__experiment_not_running(self):

0 commit comments

Comments
 (0)