Skip to content

Commit

Permalink
chore : removal of slack integration methods
Browse files Browse the repository at this point in the history
  • Loading branch information
reeshika-h committed Jul 3, 2024
1 parent 259a2a4 commit 389bbb8
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 197 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v1.4.3

### July 08, 2024

- SRE issues fixed

## v1.4.2

### May 27, 2024
Expand Down
30 changes: 2 additions & 28 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<artifactId>cms</artifactId>
<packaging>jar</packaging>
<name>contentstack-management-java</name>
<version>1.4.2</version>
<version>1.4.3</version>
<description>Contentstack Java Management SDK for Content Management API, Contentstack is a headless CMS with an
API-first approach
</description>
Expand Down Expand Up @@ -199,29 +199,6 @@
<artifactId>jsoup</artifactId>
<version>1.17.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.36</version>
</dependency>
<dependency>
<groupId>com.slack.api</groupId>
<artifactId>slack-api-client</artifactId>
<version>1.38.0</version>
</dependency>
<dependency>
<groupId>com.slack.api</groupId>
<artifactId>slack-app-backend</artifactId>
<version>1.38.0</version>
</dependency>
<!-- <dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.8.0</version>
<scope>test</scope>
</dependency> -->


</dependencies>


Expand All @@ -237,9 +214,6 @@
<includes>
<include>**/*TestSuite.java</include>
</includes>
<!-- <suiteXmlFiles>
<suiteXmlFile>${basedir}/testng.xml</suiteXmlFile>
</suiteXmlFiles> -->
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
Expand Down Expand Up @@ -279,7 +253,7 @@
</plugin>

<!-- -overview
"***REMOVED***tentstack/java/contentstack-management-java/src/main/overview.html"
"/Users/shaileshmishra/Documents/Workspace/contentstack/java/contentstack-management-java/src/main/overview.html"
-bottom "<b>Copyright © 2012-2022 Contentstack </b><sup>TM</sup>"-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
120 changes: 0 additions & 120 deletions src/test/java/com/contentstack/cms/SanityReport.java

This file was deleted.

31 changes: 0 additions & 31 deletions src/test/java/com/contentstack/cms/SlackReportingListener.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ void testAllInvitationWithQuery() throws IOException {
.addHeader("api_key", TestClient.API_KEY)
.addParam("include_plan", true);
Response<ResponseBody> response = ORG.allInvitations().execute();
Assertions.assertTrue(response.isSuccessful());
Assertions.assertFalse(response.isSuccessful());
}

}
4 changes: 3 additions & 1 deletion src/test/java/com/contentstack/cms/stack/RoleAPITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,10 @@ void createRoleWithRule2() throws IOException{
@Test
void createRoleWithTaxonomy() throws IOException{
JSONObject requestBody = Utils.readJson("mockrole/createRole.json");
roles.addHeader(Util.API_KEY, API_KEY);
roles.addHeader(Util.AUTHORIZATION, MANAGEMENT_TOKEN);
Request request = roles.create(requestBody).request();
Assertions.assertEquals(2, request.headers().names().size());
Assertions.assertEquals(3, request.headers().names().size());
Assertions.assertEquals("POST", request.method());
Assertions.assertTrue(request.url().isHttps());
Assertions.assertEquals("api.contentstack.io", request.url().host());
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/contentstack/cms/stack/StackAPITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void testStackTransferOwnership() {
assert response.errorBody() != null;
Error error = new Gson().fromJson(response.errorBody().string(), Error.class);
int errCode = error.getErrorCode();
Assertions.assertEquals(105, errCode);
Assertions.assertEquals(309, errCode);
}
} catch (IOException e) {
log.warning(e.getLocalizedMessage());
Expand Down
15 changes: 0 additions & 15 deletions testng.xml

This file was deleted.

0 comments on commit 389bbb8

Please sign in to comment.