mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-22 06:26:56 +01:00
remove type from full export endpoint
This commit is contained in:
@@ -775,7 +775,7 @@ public class RepositoryRootResourceTest extends RepositoryTestBase {
|
||||
when(service.getBundleCommand()).thenReturn(bundleCommandBuilder);
|
||||
|
||||
MockHttpRequest request = MockHttpRequest
|
||||
.get("/" + RepositoryRootResource.REPOSITORIES_PATH_V2 + "space/repo/export/svn/full");
|
||||
.get("/" + RepositoryRootResource.REPOSITORIES_PATH_V2 + "space/repo/export/full");
|
||||
MockHttpResponse response = new MockHttpResponse();
|
||||
|
||||
dispatcher.invoke(request, response);
|
||||
|
||||
@@ -60,7 +60,7 @@ import static org.mockito.Mockito.when;
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
class FullScmRepositoryImporterTest {
|
||||
|
||||
private static final Repository REPOSITORY = RepositoryTestData.createHeartOfGold();
|
||||
private static final Repository REPOSITORY = RepositoryTestData.createHeartOfGold("svn");
|
||||
|
||||
@Mock
|
||||
private RepositoryServiceFactory serviceFactory;
|
||||
@@ -105,6 +105,7 @@ class FullScmRepositoryImporterTest {
|
||||
void shouldImportScmRepositoryArchive() throws IOException {
|
||||
when(compatibilityChecker.check(any())).thenReturn(true);
|
||||
when(repositoryManager.create(eq(REPOSITORY), any())).thenReturn(REPOSITORY);
|
||||
when(service.getBundleCommand().getFileExtension()).thenReturn("dump");
|
||||
|
||||
Repository repository = fullImporter.importFromStream(REPOSITORY, Resources.getResource("sonia/scm/repository/import/scm-import.tar.gz").openStream());
|
||||
assertThat(repository).isEqualTo(REPOSITORY);
|
||||
|
||||
Reference in New Issue
Block a user