use of com.epam.pipeline.entity.metadata.MetadataEntry in project cloud-pipeline by epam.
the class MetadataEntityLoaderTest method setup.
@BeforeEach
void setup() {
EntityPermissionVO entityPermissionVO = buildEntityPermissionVO(USER_NAME, ALLOWED_USERS, DENIED_USERS, ALLOWED_GROUPS, DENIED_GROUPS);
MetadataEntry metadataEntry = buildMetadataEntry(AclClass.METADATA_ENTITY, 1L, TEST_KEY + " " + TEST_VALUE);
when(apiClient.loadPermissionsForEntity(anyLong(), any())).thenReturn(entityPermissionVO);
when(apiClient.loadMetadataEntry(any())).thenReturn(Collections.singletonList(metadataEntry));
}
use of com.epam.pipeline.entity.metadata.MetadataEntry in project cloud-pipeline by epam.
the class PipelineLoaderTest method setup.
@BeforeEach
void setup() {
EntityPermissionVO entityPermissionVO = buildEntityPermissionVO(USER_NAME, ALLOWED_USERS, DENIED_USERS, ALLOWED_GROUPS, DENIED_GROUPS);
MetadataEntry metadataEntry = buildMetadataEntry(AclClass.PIPELINE, 1L, TEST_KEY + " " + TEST_VALUE);
when(apiClient.loadUserByName(anyString())).thenReturn(USER);
when(apiClient.loadPermissionsForEntity(anyLong(), any())).thenReturn(entityPermissionVO);
when(apiClient.loadMetadataEntry(any())).thenReturn(Collections.singletonList(metadataEntry));
}
use of com.epam.pipeline.entity.metadata.MetadataEntry in project cloud-pipeline by epam.
the class DataStorageLoaderTest method setup.
@BeforeEach
void setup() {
EntityPermissionVO entityPermissionVO = buildEntityPermissionVO(USER_NAME, ALLOWED_USERS, DENIED_USERS, ALLOWED_GROUPS, DENIED_GROUPS);
MetadataEntry metadataEntry = buildMetadataEntry(AclClass.DATA_STORAGE, 1L, TEST_KEY + " " + TEST_VALUE);
when(apiClient.loadUserByName(anyString())).thenReturn(USER);
when(apiClient.loadPermissionsForEntity(anyLong(), any())).thenReturn(entityPermissionVO);
when(apiClient.loadMetadataEntry(any())).thenReturn(Collections.singletonList(metadataEntry));
}
use of com.epam.pipeline.entity.metadata.MetadataEntry in project cloud-pipeline by epam.
the class ToolLoaderTest method setup.
@BeforeEach
void setup() {
EntityPermissionVO entityPermissionVO = buildEntityPermissionVO(USER_NAME, ALLOWED_USERS, DENIED_USERS, ALLOWED_GROUPS, DENIED_GROUPS);
MetadataEntry metadataEntry = buildMetadataEntry(AclClass.TOOL, 1L, TEST_KEY + " " + TEST_VALUE);
when(apiClient.loadUserByName(anyString())).thenReturn(USER);
when(apiClient.loadPermissionsForEntity(anyLong(), any())).thenReturn(entityPermissionVO);
when(apiClient.loadMetadataEntry(any())).thenReturn(Collections.singletonList(metadataEntry));
}
Aggregations