-
-
Save pavel-paulau/5f02459f73ee207a18aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
import requests | |
from couchbase.connection import Connection | |
class SDKTest(unittest.TestCase): | |
def test_server_nodes(self): | |
nodes = requests.get(url='http://172.23.100.29:8091/nodeStatuses', | |
auth=('Administrator', 'password')).json().keys() | |
server_nodes = Connection(host='172.23.100.29', bucket='bucket-1', | |
password='password').server_nodes | |
self.assertEqual(sorted(nodes), sorted(server_nodes)) | |
if __name__ == '__main__': | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment