def test_import_identity_e2e(self): self.gaiaRef = Gaia.login("http://localhost:8080", UsernamePasswordCredentials("admin", "admin")) data = bytes("identity content", encoding="utf-8") result = pipe(ops.first())( self.gaiaRef.identity().import_identity('2fa4ff18-5c30-497b-9ad2-0d8eb51cd4da', 'identityName', data, True)).run() self.assertEqual(len(result.uri), 72) result = pipe(ops.first())( self.gaiaRef.data("gaia://2fa4ff18-5c30-497b-9ad2-0d8eb51cd4da/").list()).run() self.assertEqual(result[0].dictionary, {'filePath': 'identities/identityName', 'tenant': '2fa4ff18-5c30-497b-9ad2-0d8eb51cd4da'}) pass
def test_export_identity_e2e(self): self.gaiaRef = Gaia.login("http://localhost:8080", UsernamePasswordCredentials("admin", "admin")) result = pipe(ops.first())( self.gaiaRef.identity().export("d32829c8-5900-4346-9577-25e8146d1e78")).run() self.assertEqual(len(result), 28311)