Skip to content

Commit 9e3f9d6

Browse files
fix: getHosting name updated [CS-35325]
1 parent 17710e0 commit 9e3f9d6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/java/com/contentstack/cms/app/App.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,10 @@ public Call<ResponseBody> updateOauth(JSONObject body) {
319319
* The ID of the app for which OAuth details are required.
320320
* @return Call
321321
*/
322-
public Call<ResponseBody> hetHosting(@NotNull String uid) {
322+
public Call<ResponseBody> getHosting(@NotNull String uid) {
323323
validate();
324-
return service.getHosting(this.headers, appUid);
324+
this.appUid = uid;
325+
return service.getHosting(this.headers, this.appUid);
325326
}
326327

327328
}

src/test/java/com/contentstack/cms/app/ManifestUnitTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void testUpdateOuthWithoutAppUid() {
152152

153153
@Test
154154
void testGetHosting() {
155-
Request request = app.hetHosting(organizationUid).request();
155+
Request request = app.getHosting(organizationUid).request();
156156
Assertions.assertEquals("/v3/manifests/"+organizationUid+"/hosting",
157157
request.url().encodedPath());
158158
Assertions.assertEquals("GET",

0 commit comments

Comments
 (0)