Skip to content

Commit

Permalink
Update AwsEc2ServiceImplTests.java
Browse files Browse the repository at this point in the history
Signed-off-by: 何延龙 <[email protected]>
  • Loading branch information
heyanlong authored Dec 18, 2023
1 parent 62866a8 commit b3b210a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ public void testGetFullEndpointWithScheme() {

String endpoint = awsEc2ServiceImpl.getFullEndpoint(clientSettings.endpoint);
assertEquals("http://ec2.us-west-2.amazonaws.com", endpoint);

assertEquals("http://httpserver.example.com", awsEc2ServiceImpl.getFullEndpoint("http://httpserver.example.com"));

assertEquals("https://httpserver.example.com", awsEc2ServiceImpl.getFullEndpoint("https://httpserver.example.com"));
}

public void testGetFullEndpointWithoutScheme() {
Expand Down

0 comments on commit b3b210a

Please sign in to comment.