From cbea1b64efcf77951c34d93da8ea0577a0743abf Mon Sep 17 00:00:00 2001 From: Timur Alperovich Date: Wed, 26 Aug 2015 09:19:16 -0700 Subject: [PATCH] JCLOUDS-217: AWS EC2: Do not use encoded params. AWS EC2 tests should not pre-encode HTTP parameters. --- .../java/org/jclouds/aws/ec2/features/AWSInstanceApiTest.java | 2 +- .../java/org/jclouds/aws/ec2/features/AWSKeyPairApiTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/features/AWSInstanceApiTest.java b/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/features/AWSInstanceApiTest.java index 5f5c05b833..6630aace51 100644 --- a/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/features/AWSInstanceApiTest.java +++ b/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/features/AWSInstanceApiTest.java @@ -345,7 +345,7 @@ public class AWSInstanceApiTest extends BaseAWSEC2ApiTest { .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, diff --git a/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/features/AWSKeyPairApiTest.java b/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/features/AWSKeyPairApiTest.java index d52751ff16..e3b1256b91 100644 --- a/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/features/AWSKeyPairApiTest.java +++ b/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/features/AWSKeyPairApiTest.java @@ -59,7 +59,7 @@ public class AWSKeyPairApiTest extends BaseAWSEC2ApiTest { .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,