def setUp(self): # we have a tenant created # we have an application added to the tenant # we have a repo added to tenant # we have a dataset added to tenant # we have an asset added to the dataset self.now = now_utc() self.user = create_test_user(name='testuser',) self.tenant = create_test_tenant(user=self.user, name="datalake name", description="datalake description") self.tenant.create_data_repo("main-repo", "data-repo-description", DataRepo.RepoType.HDFS, "{}") self.application = self.tenant.create_application( self.user, "test-app", "test-app-description", "admins", "s3://data-manager-apps/test/1.0.0.0" ) self.dataset = self.tenant.create_dataset( "test-name", "1.0", 1, "test-description", self.user, "test-team" ) self.other_asset = self.dataset.create_asset( "asset-other", 10, self.now, [ LOC("parquet", "/data/foo1.parquet", 100, "main-repo"), LOC("json", "/data/foo2.json", 150, "main-repo"), ], loader='{"type": "union"}', application=self.application, application_args="{}" )
def setUp(self): self.now = now_utc() self.user = create_test_user(name="testuser") self.tenant = create_test_tenant(user=self.user) self.dataset = self.tenant.create_dataset("test-name", "1.0", 1, "test-description", self.user, "test-team") self.data_repo = self.tenant.create_data_repo("main-repo", "data-repo-description", DataRepo.RepoType.HDFS, "{}") self.application = self.tenant.create_application( self.user, "demoapp", "demoapp description", "admin", "s3://bucket/demoapp") self.other_asset = self.dataset.create_asset( "asset-other", 10, self.now, [ LOC("parquet", "/data/foo1.parquet", 100, "main-repo"), LOC("json", "/data/foo2.json", 150, "main-repo") ], loader='{"type": "union"}', application=self.application, application_args="{}")
def setUp(self): # simple setup, we have a tenant created # we have self.user1 subscribed to the tenant as admin # self.user2 not subscribed to the tenant # self.user3 subscribed to the tenant as non-admin self.now = now_utc() self.user = create_test_user(name="testuser") self.tenant = create_test_tenant( user=self.user, name="DL", ) self.user2 = create_test_user(name='testuser2') self.user3 = create_test_user(name='testuser3') self.tenant.subscribe_user(self.user3, is_admin=False)
def setUp(self): self.now = now_utc() self.user = create_test_user(name="testuser") self.user2 = create_test_user(name="testuser2") self.tenant = create_test_tenant(user=self.user) self.tenant.subscribe_user(self.user2)
def setUp(self): # we have a tenant created # we have a pipeline created self.now = now_utc() self.user = create_test_user(name='testuser') self.tenant = create_test_tenant(user=self.user)
def setUp(self): # simple setup, only a user is created self.now = now_utc() self.user = create_test_user(name="testuser")
def setUp(self): self.now = now_utc() self.user = create_test_user(name='testuser') self.tenant = create_test_tenant(user=self.user)
def setUp(self): self.now = now_utc() self.user = create_test_user(name='testuser') self.tenant = create_test_tenant(user=self.user, name="DL") self.user2 = create_test_user(name='testuser2') self.tenant.subscribe_user(self.user2)