JCLOUDS-217: AWS EC2: Do not use encoded params.

AWS EC2 tests should not pre-encode HTTP parameters.
This commit is contained in:
Timur Alperovich 2015-08-26 09:19:16 -07:00
parent f7370d2b12
commit cbea1b64ef
2 changed files with 2 additions and 2 deletions

View File

@ -345,7 +345,7 @@ public class AWSInstanceApiTest extends BaseAWSEC2ApiTest<AWSInstanceApi> {
.addFormParam("Action", "ModifyInstanceAttribute")
.addFormParam("Attribute", "userData")
.addFormParam("InstanceId", "1")
.addFormParam("Value", "dGVzdA%3D%3D").build();
.addFormParam("Value", "dGVzdA==").build();
public void testSetUserDataForInstanceInRegion() throws SecurityException, NoSuchMethodException, IOException {
Invokable<?, ?> method = method(AWSInstanceApi.class, "setUserDataForInstanceInRegion", String.class, String.class,

View File

@ -59,7 +59,7 @@ public class AWSKeyPairApiTest extends BaseAWSEC2ApiTest<AWSKeyPairApi> {
.addHeader("Host", "ec2.us-east-1.amazonaws.com")
.addFormParam("Action", "ImportKeyPair")
.addFormParam("KeyName", "mykey")
.addFormParam("PublicKeyMaterial", "c3NoLXJzYSBBQQ%3D%3D").build();
.addFormParam("PublicKeyMaterial", "c3NoLXJzYSBBQQ==").build();
public void testImportKeyPair() throws SecurityException, NoSuchMethodException, IOException {
Invokable<?, ?> method = method(AWSKeyPairApi.class, "importKeyPairInRegion", String.class, String.class,