From 1043d851a7a68dfb1edcbbd394882f107d749da9 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Sun, 1 Dec 2013 11:36:08 -0800 Subject: [PATCH] Correct jcloud -> jclouds typos --- .../cloudstack/features/SessionApiExpectTest.java | 12 ++++++------ .../cloudstack/src/test/resources/loginresponse.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SessionApiExpectTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SessionApiExpectTest.java index 79e19c3dc2..99907ad7f7 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SessionApiExpectTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SessionApiExpectTest.java @@ -47,14 +47,14 @@ public class SessionApiExpectTest extends BaseCloudStackExpectTest { .endpoint("http://localhost:8080/client/api") .addQueryParam("response", "json") .addQueryParam("command", "login") - .addQueryParam("username", "jcloud") - .addQueryParam("domain", "Partners/jCloud") + .addQueryParam("username", "jclouds") + .addQueryParam("domain", "Partners/jclouds") .addQueryParam("password", "30e14b3727225d833aad2206acea1275") .addHeader("Accept", "application/json").build(); public void testLoginWhenResponseIs2xxIncludesJSessionId() throws IOException { - String domain = "Partners/jCloud"; - String user = "jcloud"; + String domain = "Partners/jclouds"; + String user = "jclouds"; String password = "jcl0ud"; String md5password = base16().lowerCase().encode(md5().hashString(password, UTF_8).asBytes()); @@ -70,9 +70,9 @@ public class SessionApiExpectTest extends BaseCloudStackExpectTest { .build()); assertEquals(client.loginUserInDomainWithHashOfPassword(user, domain, md5password).toString(), - LoginResponse.builder().timeout(1800).lastName("Kiran").registered(false).username("jcloud").firstName("Vijay") + LoginResponse.builder().timeout(1800).lastName("Kiran").registered(false).username("jclouds").firstName("Vijay") .domainId("11").accountType(Account.Type.DOMAIN_ADMIN).userId("19").sessionKey( - "uYT4/MNiglgAKiZRQkvV8QP8gn0=").jSessionId(jSessionId).accountName("jcloud").build().toString()); + "uYT4/MNiglgAKiZRQkvV8QP8gn0=").jSessionId(jSessionId).accountName("jclouds").build().toString()); } public void testLogout() throws IOException { diff --git a/apis/cloudstack/src/test/resources/loginresponse.json b/apis/cloudstack/src/test/resources/loginresponse.json index 41df202170..7e1c955f88 100644 --- a/apis/cloudstack/src/test/resources/loginresponse.json +++ b/apis/cloudstack/src/test/resources/loginresponse.json @@ -1 +1 @@ -{ "loginresponse" : { "timeout" : "1800", "lastname" : "Kiran", "registered" : "false", "username" : "jcloud", "firstname" : "Vijay", "domainid" : "11", "type" : "2", "userid" : "19", "sessionkey" : "uYT4/MNiglgAKiZRQkvV8QP8gn0=", "account" : "jcloud" } } \ No newline at end of file +{ "loginresponse" : { "timeout" : "1800", "lastname" : "Kiran", "registered" : "false", "username" : "jclouds", "firstname" : "Vijay", "domainid" : "11", "type" : "2", "userid" : "19", "sessionkey" : "uYT4/MNiglgAKiZRQkvV8QP8gn0=", "account" : "jclouds" } }