Beispiel #1
0
 def get_associated_terms_headers(self, guid, code=200):
     url = os.path.join(self.url, guid, "terms", "headers")
     response, status = Atlas.http_get_request(url=url)
     assert status == code
     return response
Beispiel #2
0
 def get_associated_categories(self, guid, code=200):
     url = os.path.join(self.url, guid, "categories")
     response, status = Atlas.http_get_request(url=url)
     assert status == code
     return response
Beispiel #3
0
 def get_detailed(self, guid, code=200):
     url = os.path.join(self.url, guid, "detailed")
     response, status = Atlas.http_get_request(url=url)
     assert status == code
     return response
Beispiel #4
0
 def get_all(self, code=200):
     response, status = Atlas.http_get_request(url=self.url)
     assert status == code
     return response
Beispiel #5
0
 def get(self, guid, code=200):
     response, status = Atlas.http_get_request(
         url=os.path.join(self.url, guid))
     assert status == code
     return response
Beispiel #6
0
 def get_related_terms(self, guid, code=200):
     url = os.path.join(self.base_url, 'api/atlas/v2/glossary/terms', guid,
                        "related")
     response, status = Atlas.http_get_request(url=url)
     assert status == code
     return response