Skip to content

Commit 2ae5dbf

Browse files
Don't fail api tests if api_secret is not given
1 parent 0f2ba90 commit 2ae5dbf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<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">
32
<modelVersion>4.0.0</modelVersion>
43

54
<parent>
@@ -10,7 +9,7 @@
109

1110
<groupId>com.cloudinary</groupId>
1211
<artifactId>cloudinary</artifactId>
13-
<version>1.0.1-SNAPSHOT</version>
12+
<version>1.0.1</version>
1413
<packaging>jar</packaging>
1514
<name>Cloudinary Java Client Library</name>
1615
<description>

src/test/java/com/cloudinary/test/ApiTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public static void setUpClass() throws IOException {
3333
Cloudinary cloudinary = new Cloudinary();
3434
if (cloudinary.getStringConfig("api_secret") == null) {
3535
System.err.println("Please setup environment for Upload test to run");
36+
return;
3637
}
3738
Api api = cloudinary.api();
3839
try {

0 commit comments

Comments
 (0)