Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Commit

Permalink
add test for client-get
Browse files Browse the repository at this point in the history
  • Loading branch information
cglewis committed Sep 15, 2013
1 parent a79409a commit 0eaf11c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions hemlock/test_hemlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@ def process_client_get(self):
error = []
a = hemlock.Hemlock()
m_server = self.connect_mysql(0, "localhost", "travis", "", "hemlock_test")
# !! TODO
x = ""
c, error2 = a.process_action(0, "tenant-create", {'--name':'tenant1'}, m_server, "localhost")
error.append(error2)
d, error3 = a.process_action(0, "register-local-system", {'--name':'local-system1', '--data_type':'data-type1', '--description': 'description1', '--tenant_id':c[2][1], '--hostname':'hostname1', '--endpoint':'http://endpoint.com/', '--poc_name':'poc-name1', '--poc_email':'poc-email@dot.com'}, m_server, "localhost")
error.append(error3)
e, error4 = a.process_action(0, "client-store", {'--name':'client1', '--type':'mysql', '--system_id':d[9][1], '--credential_file':'hemlock/clients/mysql_creds_sample'}, m_server, "localhost")
error.append(error4)
x, error5 = a.process_action(0, "client-get", {'--uuid':e[5][1]}, m_server, "localhost")
error.append(error5)
return x, error

def process_client_list(self):
Expand Down

0 comments on commit 0eaf11c

Please sign in to comment.