mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
[PATCH] Some updates to the Java Cloud API
This commit is contained in:
1 parent
f9b542896b
commit
0c7524b3b2
22 files changed
+1198
-146
No files matched your search
@@ -24,22 +24,35 @@ public class SessionInit {
|
||||
try
|
||||
{
|
||||
Client oneClient = new Client();
|
||||
System.out.println(" ok");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
System.out.println(e.getMessage());
|
||||
}
|
||||
|
||||
System.out.println("ok");
|
||||
|
||||
System.out.println("Wrong session initialization...");
|
||||
System.out.println("Forcing a wrong user/password initialization...");
|
||||
try
|
||||
{
|
||||
// The secret string should be user:password. The url is null, so it
|
||||
// will be set to default.
|
||||
Client oneClient = new Client("wrong_password_token",null);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
System.out.println("\t" + e.getMessage());
|
||||
}
|
||||
|
||||
System.out.println("Forcing a wrong url initialization...");
|
||||
try
|
||||
{
|
||||
// The HTTP is misspelled
|
||||
Client oneClient = new Client(null,"HTP://localhost:2633/RPC2");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
System.out.println("\t" + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user