Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Merge "Removes unused function _pick_san_edgename"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Apr 8, 2016
2 parents 2374bc3 + de40198 commit 40c1aa5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
10 changes: 0 additions & 10 deletions poppy/provider/akamai/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,16 +1193,6 @@ def _get_provider_access_url(self, domain_obj, dp, edge_host_name=None):
domain_obj.certificate)
return provider_access_url

def _pick_san_edgename(self):
"""Inspect && Pick a SAN cert cnameHostname for this user.
Based on what the date is it current date, pick a san cert
"""
find_idx = (
datetime.datetime.today().weekday() % len(self.san_cert_cnames))

return self.san_cert_cnames[find_idx]

def get_provider_service_id(self, service_obj):
id_list = []
for domain in service_obj.domains:
Expand Down
7 changes: 0 additions & 7 deletions tests/unit/provider/akamai/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,13 +513,6 @@ def test_cache_invalidate(self):
hard=False, purge_url=purge_url)
self.assertIn('id', resp[self.driver.provider_name])

def test_pick_san_edgename(self):
controller = services.ServiceController(self.driver)
picked_san_cert = controller._pick_san_edgename()
picked_idx = (
datetime.datetime.today().weekday() % len(self.san_cert_cnames))
self.assertTrue(picked_san_cert == self.san_cert_cnames[picked_idx])

def test_process_caching_rules(self):
controller = services.ServiceController(self.driver)
caching_rule_entry = rule.Rule('index', request_url='*.jpg')
Expand Down

0 comments on commit 40c1aa5

Please sign in to comment.