mirror of https://github.com/apache/jclouds.git
JCLOUDS-217: AWS EC2: Do not use encoded params.
AWS EC2 tests should not pre-encode HTTP parameters.
This commit is contained in:
parent
f7370d2b12
commit
cbea1b64ef
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue