Skip to content

Commit 4c5bcea

Browse files
Check if files was deployed
1 parent a5f8cb2 commit 4c5bcea

File tree

1 file changed

+15
-2
lines changed
  • src/it/MDEPLOY-202_deployfile-with-multiple-executions

1 file changed

+15
-2
lines changed

src/it/MDEPLOY-202_deployfile-with-multiple-executions/verify.groovy

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@
1717
* under the License.
1818
*/
1919

20-
def buildLog = new File ( basedir, "build.log")
20+
def expectedDeploys = [
21+
'org/apache/maven/its/mdeploy-170/configperproject/1.0/configperproject-1.0.pom',
22+
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0-sources.jar',
23+
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0.jar',
24+
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0.pom',
25+
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0-sources.jar',
26+
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0.jar',
27+
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0.pom'
28+
]
29+
30+
def repoDir = new File ( basedir, 'target/repo')
31+
32+
def missingDeploys = expectedDeploys.findAll { ! new File(repoDir, it).isFile() }
33+
34+
assert missingDeploys.size() == 0
2135

22-
assert buildLog.text =~ /Uploading.*file:target\/repo\/org\/apache\/maven\/plugins\/deploy\/it\/org\.eclipse\.osgi\/1\.0\/org\.eclipse\.osgi-1\.0-sources\.jar/

0 commit comments

Comments
 (0)