mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 10:41:06 +01:00
Handle git urls with trailing .git suffix correctly
This commit is contained in:
@@ -25,6 +25,15 @@ public class NamespaceAndNameFromPathExtractorTest {
|
||||
).map(this::createCorrectTest);
|
||||
}
|
||||
|
||||
@TestFactory
|
||||
Stream<DynamicNode> shouldHandleTrailingDotSomethings() {
|
||||
return Stream.of(
|
||||
"/space/repo.git",
|
||||
"/space/repo.and.more",
|
||||
"/space/repo."
|
||||
).map(this::createCorrectTest);
|
||||
}
|
||||
|
||||
private DynamicTest createCorrectTest(String path) {
|
||||
return dynamicTest(
|
||||
"should extract correct namespace and name for path " + path,
|
||||
|
||||
Reference in New Issue
Block a user