Skip to content

Commit 508f2df

Browse files
authored
Merge pull request #1671 from swaroopar/feature/fixReleaseFindings
fix typo in API method tag name
2 parents 3573d27 + 285e67c commit 508f2df

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

modules/api/src/main/java/org/eclipse/xpanse/api/controllers/ServiceModificationApi.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public class ServiceModificationApi {
7070
* @return response
7171
*/
7272
@Tag(name = "ServiceModification",
73-
description = "APIs to manage modifications of the service instances.")
73+
description = "APIs to manage modifications of the service instances")
7474
@Operation(description = "Start a modification to modify the deployed service instance.")
7575
@PutMapping(value = "/services/modify/{serviceId}",
7676
produces = MediaType.APPLICATION_JSON_VALUE)
@@ -109,7 +109,7 @@ public UUID modify(@Parameter(name = "serviceId", description = "id of deployed
109109
*/
110110
@Tag(name = "ServiceModification",
111111
description = "APIs to manage modifications of the service instances.")
112-
@Operation(description = "List modification audits of the service instance.")
112+
@Operation(description = "List modification audits of the service instance")
113113
@GetMapping(value = "/services/{serviceId}/modifications", produces =
114114
MediaType.APPLICATION_JSON_VALUE)
115115
@ResponseStatus(HttpStatus.OK)

modules/api/src/main/java/org/eclipse/xpanse/api/controllers/ServiceTemplateApi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public ServiceTemplateDetailVo reRegisterServiceTemplate(
190190
@PathVariable("id") String id) {
191191
ServiceTemplateEntity templateEntity =
192192
serviceTemplateManage.reRegisterServiceTemplate(UUID.fromString(id));
193-
log.info("Unregister service template with id {} successfully.", id);
193+
log.info("Re-register service template with id {} successfully.", id);
194194
return convertToServiceTemplateDetailVo(templateEntity);
195195
}
196196

modules/deployment/src/main/java/org/eclipse/xpanse/modules/deployment/deployers/opentofu/tofumaker/config/TofuMakerApiClientConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import jakarta.annotation.PostConstruct;
99
import jakarta.annotation.Resource;
10-
import org.eclipse.xpanse.modules.deployment.deployers.terraform.terraformboot.generated.ApiClient;
10+
import org.eclipse.xpanse.modules.deployment.deployers.opentofu.tofumaker.generated.ApiClient;
1111
import org.springframework.beans.factory.annotation.Value;
1212
import org.springframework.context.annotation.Configuration;
1313
import org.springframework.context.annotation.Profile;

modules/deployment/src/test/java/org/eclipse/xpanse/modules/deployment/deployers/opentofu/tofumaker/config/TofuMakerApiClientConfigTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import static org.mockito.Mockito.verify;
44

5-
import org.eclipse.xpanse.modules.deployment.deployers.terraform.terraformboot.generated.ApiClient;
5+
import org.eclipse.xpanse.modules.deployment.deployers.opentofu.tofumaker.generated.ApiClient;
66
import org.junit.jupiter.api.BeforeEach;
77
import org.junit.jupiter.api.Test;
88
import org.junit.jupiter.api.extension.ExtendWith;

modules/models/src/main/java/org/eclipse/xpanse/modules/models/system/enums/BackendSystemType.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
*/
1616
public enum BackendSystemType {
1717

18-
IDENTITY_PROVIDER("IdentityProvider"),
18+
IDENTITY_PROVIDER("Identity Provider"),
1919
DATABASE("Database"),
2020
TERRAFORM_BOOT("Terraform Boot"),
2121
TOFU_MAKER("Tofu Maker"),
22-
POLICY_MAN("PolicyMan"),
22+
POLICY_MAN("Policy Man"),
2323
OPEN_TELEMETRY_COLLECTOR("OpenTelemetry Collector");
2424

2525
private final String code;

modules/models/src/test/java/org/eclipse/xpanse/modules/models/system/enums/BackendSystemTypeTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class BackendSystemTypeTest {
1818

1919
@Test
2020
public void testGetByValue() {
21-
BackendSystemType type = BackendSystemType.getByValue("identityProvider");
21+
BackendSystemType type = BackendSystemType.getByValue("identity provider");
2222
Assertions.assertEquals(type, BackendSystemType.IDENTITY_PROVIDER);
2323

2424
BackendSystemType type1 = BackendSystemType.getByValue("database");
@@ -30,7 +30,7 @@ public void testGetByValue() {
3030
BackendSystemType type3 = BackendSystemType.getByValue("tofu maker");
3131
Assertions.assertEquals(type3, BackendSystemType.TOFU_MAKER);
3232

33-
BackendSystemType type4 = BackendSystemType.getByValue("policyMan");
33+
BackendSystemType type4 = BackendSystemType.getByValue("policy man");
3434
Assertions.assertEquals(type4, BackendSystemType.POLICY_MAN);
3535

3636
BackendSystemType type5 = BackendSystemType.getByValue("OpenTelemetry Collector");
@@ -43,7 +43,7 @@ public void testGetByValue() {
4343
@Test
4444
public void testToValue() {
4545
String value = BackendSystemType.IDENTITY_PROVIDER.toValue();
46-
Assertions.assertEquals("IdentityProvider", value);
46+
Assertions.assertEquals("Identity Provider", value);
4747
String name = BackendSystemType.IDENTITY_PROVIDER.name();
4848
Assertions.assertEquals("IDENTITY_PROVIDER", name);
4949
String string = BackendSystemType.IDENTITY_PROVIDER.toString();
@@ -71,7 +71,7 @@ public void testToValue() {
7171
Assertions.assertEquals("TOFU_MAKER", string3);
7272

7373
String value4 = BackendSystemType.POLICY_MAN.toValue();
74-
Assertions.assertEquals("PolicyMan", value4);
74+
Assertions.assertEquals("Policy Man", value4);
7575
String name4 = BackendSystemType.POLICY_MAN.name();
7676
Assertions.assertEquals("POLICY_MAN", name4);
7777
String string4 = BackendSystemType.POLICY_MAN.toString();

plugins/scs/src/main/java/org/eclipse/xpanse/plugins/scs/common/keystone/ScsKeystoneManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public OSClient.OSClientV3 getAuthenticatedClient(UUID serviceId,
9696
// there is no need to return the authenticated client because the below method already sets
9797
// the authentication details in the thread context.
9898
String url = Objects.nonNull(serviceId) ? getUrlFromDeploymentVariables(serviceId)
99-
: System.getProperty(ScsEnvironmentConstants.AUTH_URL);
99+
: System.getenv(ScsEnvironmentConstants.AUTH_URL);
100100

101101
return OSFactory
102102
.builderV3()

0 commit comments

Comments
 (0)