Skip to content

Commit f7442a1

Browse files
committed
Ignored test cases due to change in REST API endpoint apps/appinstall
- apps/appinstall REST API endpint was removed in Splunk version 8.1.0
1 parent 0c1882b commit f7442a1

File tree

6 files changed

+51
-50
lines changed

6 files changed

+51
-50
lines changed

splunk/src/test/java/com/splunk/ApplicationTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616

1717
package com.splunk;
1818

19-
import org.junit.After;
20-
import org.junit.Assert;
21-
import org.junit.Before;
22-
import org.junit.Test;
19+
import org.junit.*;
2320
import org.w3c.dom.Document;
2421
import org.w3c.dom.Node;
2522
import org.w3c.dom.NodeList;
@@ -79,8 +76,8 @@ public void testForEmptySetup() {
7976
Assert.assertTrue(setupXml.contains("stub"));
8077
}
8178

82-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
83-
// @Test
79+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
80+
@Test
8481
public void testForSetupPresent() throws Exception {
8582
if (!hasTestData()) {
8683
System.out.println("WARNING: sdk-app-collection not installed in Splunk; skipping test.");

splunk/src/test/java/com/splunk/IndexTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,8 @@ public boolean predicate() {
688688
});
689689
}
690690

691-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
692-
// @Test
691+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
692+
@Test
693693
public void testUploadArgs() throws Exception {
694694
if (!hasTestData()) {
695695
System.out.println("WARNING: sdk-app-collection not installed in Splunk; skipping test.");
@@ -732,8 +732,8 @@ public boolean predicate() {
732732
});
733733
}
734734

735-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
736-
// @Test
735+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
736+
@Test
737737
public void testUploadArgsFailure() throws Exception{
738738
if (!hasTestData()) {
739739
System.out.println("WARNING: sdk-app-collection not installed in Splunk; skipping test.");
@@ -764,8 +764,8 @@ public void testUploadArgsFailure() throws Exception{
764764

765765
}
766766

767-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
768-
// @Test
767+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
768+
@Test
769769
public void testUpload() throws Exception {
770770
if (!hasTestData()) {
771771
System.out.println("WARNING: sdk-app-collection not installed in Splunk; skipping test.");

splunk/src/test/java/com/splunk/InputCrudTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919

2020
import org.junit.Assert;
21+
import org.junit.Ignore;
2122
import org.junit.Test;
2223

2324
import java.util.HashMap;
@@ -242,8 +243,8 @@ public boolean predicate() {
242243
});
243244
}
244245

245-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
246-
// @Test
246+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
247+
@Test
247248
public void testScriptInputCrud() {
248249
if (!hasTestData()) {
249250
System.out.println("WARNING: sdk-app-collection not installed in Splunk; skipping test.");

splunk/src/test/java/com/splunk/ModularInputKindsTest.java

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818

1919
import org.junit.Assert;
20+
import org.junit.Ignore;
2021
import org.junit.Test;
2122

2223
import java.util.*;
@@ -42,8 +43,8 @@ public void checkModularInputKind(ModularInputKind m) {
4243

4344
}
4445

45-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
46-
// @Test
46+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
47+
@Test
4748
public void testListInputKinds() {
4849
if (service.versionIsEarlierThan("5.0") || !hasTestData()) {
4950
return;
@@ -57,8 +58,8 @@ public void testListInputKinds() {
5758
}
5859
}
5960

60-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
61-
// @Test
61+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
62+
@Test
6263
public void testInputByName() {
6364
if (service.versionIsEarlierThan("5.0") || !hasTestData()) {
6465
return;
@@ -73,8 +74,8 @@ public void testInputByName() {
7374
checkModularInputKind(m);
7475
}
7576

76-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
77-
// @Test
77+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
78+
@Test
7879
public void testNonexistantArg() {
7980
if (service.versionIsEarlierThan("5.0") || !hasTestData()) {
8081
return;
@@ -87,8 +88,8 @@ public void testNonexistantArg() {
8788
Assert.assertNull(test1.getArgument("nonexistant_argument"));
8889
}
8990

90-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
91-
// @Test
91+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
92+
@Test
9293
public void testInputKindDescriptionAndTitle() {
9394
if (service.versionIsEarlierThan("5.0") || !hasTestData()) {
9495
return;
@@ -106,8 +107,8 @@ public void testInputKindDescriptionAndTitle() {
106107
Assert.assertEquals("test2", test2.getTitle());
107108
}
108109

109-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
110-
// @Test
110+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
111+
@Test
111112
public void testArgDescription() {
112113
if (service.versionIsEarlierThan("5.0") || !hasTestData()) {
113114
return;
@@ -134,8 +135,8 @@ public void testArgDescription() {
134135
}
135136
}
136137

137-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
138-
// @Test
138+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
139+
@Test
139140
public void testArgDataType() {
140141
if (service.versionIsEarlierThan("5.0") || !hasTestData()) {
141142
return;
@@ -161,8 +162,8 @@ public void testArgDataType() {
161162
}
162163
}
163164

164-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
165-
// @Test
165+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
166+
@Test
166167
public void testRequiredOnCreate() {
167168
if (service.versionIsEarlierThan("5.0") || !hasTestData()) {
168169
return;
@@ -186,8 +187,8 @@ public void testRequiredOnCreate() {
186187
}
187188
}
188189

189-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
190-
// @Test
190+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
191+
@Test
191192
public void testRequiredOnEdit() {
192193
if (service.versionIsEarlierThan("5.0") || !hasTestData()) {
193194
return;
@@ -211,8 +212,8 @@ public void testRequiredOnEdit() {
211212
}
212213
}
213214

214-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
215-
// @Test
215+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
216+
@Test
216217
public void testGetArguments() {
217218
if (service.versionIsEarlierThan("5.0") || !hasTestData()) {
218219
return;

splunk/src/test/java/com/splunk/ModularInputTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
package com.splunk;
1818

1919
import org.junit.Assert;
20+
import org.junit.Ignore;
2021
import org.junit.Test;
2122

2223
public class ModularInputTest extends InputTest {
23-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
24-
// @Test
24+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
25+
@Test
2526
public void testModularInputKinds() {
2627
if (service.versionCompare("5.0") < 0 || !hasTestData()) {
2728
return;
@@ -42,8 +43,8 @@ public void testModularInputKinds() {
4243
Assert.assertTrue(hasTest2);
4344
}
4445

45-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
46-
// @Test
46+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
47+
@Test
4748
public void testListModularInputs() {
4849
if (service.versionCompare("5.0") < 0 || !hasTestData()) {
4950
return;

splunk/src/test/java/com/splunk/SearchJobTest.java

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import org.junit.Assert;
2020
import org.junit.Before;
21+
import org.junit.Ignore;
2122
import org.junit.Test;
2223

2324
import java.io.BufferedReader;
@@ -655,8 +656,8 @@ public void testAttributes() {
655656
job.cancel();
656657
}
657658

658-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
659-
// @Test
659+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
660+
@Test
660661
public void testEnablePreview() throws InterruptedException {
661662
if (!hasTestData()) {
662663
System.out.println("WARNING: sdk-app-collection not installed in Splunk; skipping test.");
@@ -708,8 +709,8 @@ public boolean predicate() {
708709
waitForSleepingJobToDie(job);
709710
}
710711

711-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
712-
// @Test
712+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
713+
@Test
713714
public void testDisablePreview() throws InterruptedException {
714715
if (!hasTestData()) {
715716
System.out.println("WARNING: sdk-app-collection not installed in Splunk; skipping test.");
@@ -781,8 +782,8 @@ public boolean predicate() {
781782
} catch (InterruptedException e) {}
782783
}
783784

784-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
785-
// @Test
785+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
786+
@Test
786787
public void testSetPriority() throws InterruptedException {
787788
if (!hasTestData()) {
788789
System.out.println("WARNING: sdk-app-collection not installed in Splunk; skipping test.");
@@ -832,8 +833,8 @@ public boolean predicate() {
832833
job.cancel();
833834
}
834835

835-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
836-
// @Test
836+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
837+
@Test
837838
public void testPause() throws InterruptedException {
838839
if (!hasTestData()) {
839840
System.out.println("WARNING: sdk-app-collection not installed in Splunk; skipping test.");
@@ -866,8 +867,8 @@ public boolean predicate() {
866867
job.cancel();
867868
}
868869

869-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
870-
// @Test
870+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
871+
@Test
871872
public void testUnpause() throws InterruptedException {
872873
if (!hasTestData()) {
873874
System.out.println("WARNING: sdk-app-collection not installed in Splunk; skipping test.");
@@ -900,8 +901,8 @@ public boolean predicate() {
900901
job.cancel();
901902
}
902903

903-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
904-
// @Test
904+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
905+
@Test
905906
public void testFinalize() throws InterruptedException {
906907
if (!hasTestData()) {
907908
System.out.println("WARNING: sdk-app-collection not installed in Splunk; skipping test.");
@@ -931,8 +932,8 @@ public boolean predicate() {
931932
job.cancel();
932933
}
933934

934-
// apps/appinstall endpoint is removed in version 8.1.0 so disabled it
935-
// @Test
935+
@Ignore("apps/appinstall endpoint is removed in version 8.1.0")
936+
@Test
936937
public void testDone() throws InterruptedException {
937938
if (!hasTestData()) {
938939
System.out.println("WARNING: sdk-app-collection not installed in Splunk; skipping test.");

0 commit comments

Comments
 (0)