use of com.epam.pipeline.entity.datastorage.NFSDataStorage in project cloud-pipeline by epam.
the class DataStorageMapperTest method shouldMapNFSDataStorage.
@Test
void shouldMapNFSDataStorage() throws IOException {
DataStorageMapper mapper = new DataStorageMapper(SearchDocumentType.NFS_STORAGE);
NFSDataStorage dataStorage = new NFSDataStorage();
fillStorage(dataStorage);
DataStorageDoc doc = DataStorageDoc.builder().storage(dataStorage).build();
XContentBuilder contentBuilder = mapper.map(buildContainer(doc));
verifyNFSStorage(dataStorage, contentBuilder);
verifyPermissions(PERMISSIONS_CONTAINER, contentBuilder);
verifyMetadata(EXPECTED_METADATA, contentBuilder);
verifyPipelineUser(USER, contentBuilder);
}
Aggregations