Skip to content

Commit

Permalink
Add test case for get_endpoint() and use_internal_url=True.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Jul 31, 2023
1 parent 504354c commit b0035eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libcloud/test/storage/test_cloudfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ def test_service_catalog(self):
)
self.driver.connection.cdn_request = False

def test_get_endpoint_internalurl(self):
self.driver.connection.use_internal_url = True
url = (
"https://snet-storage101.%s1.clouddrive.com/v1/MossoCloudFS_11111-111111111-1111111111-1111111"
% (self.region)
)
self.assertEqual(url, self.driver.connection.get_endpoint())

def test_list_containers(self):
CloudFilesMockHttp.type = "EMPTY"
containers = self.driver.list_containers()
Expand Down

0 comments on commit b0035eb

Please sign in to comment.