Skip to content

Commit

Permalink
Merge branch 'release/0.23.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
lasote committed Jun 11, 2017
2 parents ac2431c + 7e16b50 commit 945f5bd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
3 changes: 1 addition & 2 deletions conans/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@
COMPLEX_SEARCH_CAPABILITY = "complex_search"
SERVER_CAPABILITIES = [COMPLEX_SEARCH_CAPABILITY, ]

__version__ = '0.23.1'

__version__ = '0.23.2'
3 changes: 2 additions & 1 deletion conans/client/remote_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from conans.util.log import logger


default_remotes = """conan.io https://server.conan.io True
default_remotes = """conan-center https://conan.bintray.com True
conan-transit https://conan-transit.bintray.com True
"""

Remote = namedtuple("Remote", "name url verify_ssl")
Expand Down
15 changes: 10 additions & 5 deletions conans/test/functional/registry_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,36 @@ def add_remove_update_test(self):

# Add
registry.add("local", "http://localhost:9300")
self.assertEqual(registry.remotes, [("conan.io", "https://server.conan.io", True),
self.assertEqual(registry.remotes, [("conan-center", "https://conan.bintray.com", True),
("conan-transit", "https://conan-transit.bintray.com", True),
("local", "http://localhost:9300", True)])
# Add
registry.add("new", "new_url", False)
self.assertEqual(registry.remotes, [("conan.io", "https://server.conan.io", True),
self.assertEqual(registry.remotes, [("conan-center", "https://conan.bintray.com", True),
("conan-transit", "https://conan-transit.bintray.com", True),
("local", "http://localhost:9300", True),
("new", "new_url", False)])
with self.assertRaises(ConanException):
registry.add("new", "new_url")
# Update
registry.update("new", "other_url")
self.assertEqual(registry.remotes, [("conan.io", "https://server.conan.io", True),
self.assertEqual(registry.remotes, [("conan-center", "https://conan.bintray.com", True),
("conan-transit", "https://conan-transit.bintray.com", True),
("local", "http://localhost:9300", True),
("new", "other_url", True)])
with self.assertRaises(ConanException):
registry.update("new2", "new_url")

registry.update("new", "other_url", False)
self.assertEqual(registry.remotes, [("conan.io", "https://server.conan.io", True),
self.assertEqual(registry.remotes, [("conan-center", "https://conan.bintray.com", True),
("conan-transit", "https://conan-transit.bintray.com", True),
("local", "http://localhost:9300", True),
("new", "other_url", False)])

# Remove
registry.remove("local")
self.assertEqual(registry.remotes, [("conan.io", "https://server.conan.io", True),
self.assertEqual(registry.remotes, [("conan-center", "https://conan.bintray.com", True),
("conan-transit", "https://conan-transit.bintray.com", True),
("new", "other_url", False)])
with self.assertRaises(ConanException):
registry.remove("new2")
Expand Down

0 comments on commit 945f5bd

Please sign in to comment.