You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2023/11/13 15:38:33 UTC
(sling-org-apache-sling-committer-cli) branch SLING-12148 updated: Adding test to verify
This is an automated email from the ASF dual-hosted git repository.
dklco pushed a commit to branch SLING-12148
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-committer-cli.git
The following commit(s) were added to refs/heads/SLING-12148 by this push:
new 173ea6e Adding test to verify
173ea6e is described below
commit 173ea6e12575bd253acc091c2b7cf875f4d36da0
Author: Dan Klco <kl...@adobe.com>
AuthorDate: Mon Nov 13 10:38:28 2023 -0500
Adding test to verify
---
.../sling/cli/impl/ci/CIStatusValidatorTest.java | 6 ++++
src/test/resources/ci/gh-repo-1.0.pom | 32 ++++++++++++++++++++++
2 files changed, 38 insertions(+)
diff --git a/src/test/java/org/apache/sling/cli/impl/ci/CIStatusValidatorTest.java b/src/test/java/org/apache/sling/cli/impl/ci/CIStatusValidatorTest.java
index 9aa127f..6c5e4d5 100644
--- a/src/test/java/org/apache/sling/cli/impl/ci/CIStatusValidatorTest.java
+++ b/src/test/java/org/apache/sling/cli/impl/ci/CIStatusValidatorTest.java
@@ -146,4 +146,10 @@ public class CIStatusValidatorTest {
assertNotNull(valid.getMessage());
}
+ @Test
+ public void supportsGitHubUrls() throws URISyntaxException {
+ ValidationResult valid = validator.isValid(getResourcePath("/ci/gh-repo-1.0.pom"));
+ assertTrue(valid.isValid());
+ assertNotNull(valid.getMessage());
+ }
}
diff --git a/src/test/resources/ci/gh-repo-1.0.pom b/src/test/resources/ci/gh-repo-1.0.pom
new file mode 100644
index 0000000..d15caae
--- /dev/null
+++ b/src/test/resources/ci/gh-repo-1.0.pom
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional
+ information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to
+ in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
+ the License for the specific language governing permissions and limitations under the License. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
+>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>sling-bundle-parent</artifactId>
+ <version>35</version>
+ <relativePath />
+ </parent>
+
+ <artifactId>repo-pom</artifactId>
+ <version>1.1</version>
+
+ <name>Repo POM</name>
+ <description>A Sample POM File with a repo</description>
+
+ <scm>
+ <connection>scm:git:https://gitbox.apache.org/repos/asf/sling-repo-pom.git</connection>
+ <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/sling-repo-pom.git</developerConnection>
+ <url>https://github.com/apache/sling-repo-pom.git</url>
+ <tag>repo-pom-1.1</tag>
+ </scm>
+
+</project>