From 2f0c8980f5f9e9887674ab2d2c055bf76219f6d6 Mon Sep 17 00:00:00 2001 From: "Mauro S. M. Rodrigues" Date: Mon, 10 Sep 2012 09:14:40 -0400 Subject: [PATCH] Add Keypairs extension to API samples test. NOTE: This include two samples of post request: One to create the keypair and another to import from a public key Change-Id: I754fd5998cf8be46a96e69e3459c91d4f767575e --- .../os-keypairs/keypairs-get-resp.json | 11 +++++++++ .../os-keypairs/keypairs-get-resp.xml | 9 +++++++ .../os-keypairs/keypairs-import-post-req.json | 6 +++++ .../os-keypairs/keypairs-import-post-req.xml | 4 ++++ .../keypairs-import-post-resp.json | 8 +++++++ .../os-keypairs/keypairs-import-post-resp.xml | 7 ++++++ .../os-keypairs/keypairs-post-req.json | 5 ++++ .../os-keypairs/keypairs-post-req.xml | 3 +++ .../os-keypairs/keypairs-post-resp.json | 9 +++++++ .../os-keypairs/keypairs-post-resp.xml | 24 +++++++++++++++++++ 10 files changed, 86 insertions(+) create mode 100644 doc/api_samples/os-keypairs/keypairs-get-resp.json create mode 100644 doc/api_samples/os-keypairs/keypairs-get-resp.xml create mode 100644 doc/api_samples/os-keypairs/keypairs-import-post-req.json create mode 100644 doc/api_samples/os-keypairs/keypairs-import-post-req.xml create mode 100644 doc/api_samples/os-keypairs/keypairs-import-post-resp.json create mode 100644 doc/api_samples/os-keypairs/keypairs-import-post-resp.xml create mode 100644 doc/api_samples/os-keypairs/keypairs-post-req.json create mode 100644 doc/api_samples/os-keypairs/keypairs-post-req.xml create mode 100644 doc/api_samples/os-keypairs/keypairs-post-resp.json create mode 100644 doc/api_samples/os-keypairs/keypairs-post-resp.xml diff --git a/doc/api_samples/os-keypairs/keypairs-get-resp.json b/doc/api_samples/os-keypairs/keypairs-get-resp.json new file mode 100644 index 000000000..85e8ea894 --- /dev/null +++ b/doc/api_samples/os-keypairs/keypairs-get-resp.json @@ -0,0 +1,11 @@ +{ + "keypairs": [ + { + "keypair": { + "fingerprint": "15:b0:f8:b3:f9:48:63:71:cf:7b:5b:38:6d:44:2d:4a", + "name": "keypair-601a2305-4f25-41ed-89c6-2a966fc8027a", + "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC+Eo/RZRngaGTkFs7I62ZjsIlO79KklKbMXi8F+KITD4bVQHHn+kV+4gRgkgCRbdoDqoGfpaDFs877DYX9n4z6FrAIZ4PES8TNKhatifpn9NdQYWA+IkU8CuvlEKGuFpKRi/k7JLos/gHi2hy7QUwgtRvcefvD/vgQZOVw/mGR9Q== Generated by Nova\n" + } + } + ] +} \ No newline at end of file diff --git a/doc/api_samples/os-keypairs/keypairs-get-resp.xml b/doc/api_samples/os-keypairs/keypairs-get-resp.xml new file mode 100644 index 000000000..a38e3c525 --- /dev/null +++ b/doc/api_samples/os-keypairs/keypairs-get-resp.xml @@ -0,0 +1,9 @@ + + + + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCWdUoGD7qz9kjbLoY2L0S5CdhUS8RvQ1g62OTgvmWE/bEKDLwaTIFEEpN/0huGk/nxvVZ6VOhv1eSKC3o9dZ2NDk0C4sBsrvJ41uWd1hbq72sDGzVEkJ+925CraioSAbMpRK5Ea7UPWbR8laqrY1TsKtcuxiGJ936bOPIXW12h6Q== Generated by Nova + + keypair-a4c7d228-218b-4c4c-9d99-62e7878ebb1b + 62:32:23:67:56:ee:6f:51:4c:03:ce:b8:00:f9:41:ff + + \ No newline at end of file diff --git a/doc/api_samples/os-keypairs/keypairs-import-post-req.json b/doc/api_samples/os-keypairs/keypairs-import-post-req.json new file mode 100644 index 000000000..660efe6fd --- /dev/null +++ b/doc/api_samples/os-keypairs/keypairs-import-post-req.json @@ -0,0 +1,6 @@ +{ + "keypair": { + "name": "keypair-dab428fe-6186-4a14-b3de-92131f76cd39", + "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDx8nkQv/zgGgB4rMYmIf+6A4l6Rr+o/6lHBQdW5aYd44bd8JttDCE/F/pNRr0lRE+PiqSPO8nDPHw0010JeMH9gYgnnFlyY3/OcJ02RhIPyyxYpv9FhY+2YiUkpwFOcLImyrxEsYXpD/0d3ac30bNH6Sw9JD9UZHYcpSxsIbECHw== Generated by Nova" + } +} \ No newline at end of file diff --git a/doc/api_samples/os-keypairs/keypairs-import-post-req.xml b/doc/api_samples/os-keypairs/keypairs-import-post-req.xml new file mode 100644 index 000000000..98a038c30 --- /dev/null +++ b/doc/api_samples/os-keypairs/keypairs-import-post-req.xml @@ -0,0 +1,4 @@ + + keypair-96bbe50e-05e1-4d59-9115-4779a3ebcc2e + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDx8nkQv/zgGgB4rMYmIf+6A4l6Rr+o/6lHBQdW5aYd44bd8JttDCE/F/pNRr0lRE+PiqSPO8nDPHw0010JeMH9gYgnnFlyY3/OcJ02RhIPyyxYpv9FhY+2YiUkpwFOcLImyrxEsYXpD/0d3ac30bNH6Sw9JD9UZHYcpSxsIbECHw== Generated by Nova + \ No newline at end of file diff --git a/doc/api_samples/os-keypairs/keypairs-import-post-resp.json b/doc/api_samples/os-keypairs/keypairs-import-post-resp.json new file mode 100644 index 000000000..56d0ca00e --- /dev/null +++ b/doc/api_samples/os-keypairs/keypairs-import-post-resp.json @@ -0,0 +1,8 @@ +{ + "keypair": { + "fingerprint": "1e:2c:9b:56:79:4b:45:77:f9:ca:7a:98:2c:b0:d5:3c", + "name": "keypair-dab428fe-6186-4a14-b3de-92131f76cd39", + "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDx8nkQv/zgGgB4rMYmIf+6A4l6Rr+o/6lHBQdW5aYd44bd8JttDCE/F/pNRr0lRE+PiqSPO8nDPHw0010JeMH9gYgnnFlyY3/OcJ02RhIPyyxYpv9FhY+2YiUkpwFOcLImyrxEsYXpD/0d3ac30bNH6Sw9JD9UZHYcpSxsIbECHw== Generated by Nova", + "user_id": "fake" + } +} \ No newline at end of file diff --git a/doc/api_samples/os-keypairs/keypairs-import-post-resp.xml b/doc/api_samples/os-keypairs/keypairs-import-post-resp.xml new file mode 100644 index 000000000..be96abc70 --- /dev/null +++ b/doc/api_samples/os-keypairs/keypairs-import-post-resp.xml @@ -0,0 +1,7 @@ + + + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDx8nkQv/zgGgB4rMYmIf+6A4l6Rr+o/6lHBQdW5aYd44bd8JttDCE/F/pNRr0lRE+PiqSPO8nDPHw0010JeMH9gYgnnFlyY3/OcJ02RhIPyyxYpv9FhY+2YiUkpwFOcLImyrxEsYXpD/0d3ac30bNH6Sw9JD9UZHYcpSxsIbECHw== Generated by Nova + fake + keypair-96bbe50e-05e1-4d59-9115-4779a3ebcc2e + 1e:2c:9b:56:79:4b:45:77:f9:ca:7a:98:2c:b0:d5:3c + \ No newline at end of file diff --git a/doc/api_samples/os-keypairs/keypairs-post-req.json b/doc/api_samples/os-keypairs/keypairs-post-req.json new file mode 100644 index 000000000..3ef7dd1f3 --- /dev/null +++ b/doc/api_samples/os-keypairs/keypairs-post-req.json @@ -0,0 +1,5 @@ +{ + "keypair": { + "name": "keypair-7d7c3650-dabe-4eb0-b904-5c464453c043" + } +} \ No newline at end of file diff --git a/doc/api_samples/os-keypairs/keypairs-post-req.xml b/doc/api_samples/os-keypairs/keypairs-post-req.xml new file mode 100644 index 000000000..4dc4ce483 --- /dev/null +++ b/doc/api_samples/os-keypairs/keypairs-post-req.xml @@ -0,0 +1,3 @@ + + keypair-b03122a0-102b-445b-a128-dba267c7cd2a + \ No newline at end of file diff --git a/doc/api_samples/os-keypairs/keypairs-post-resp.json b/doc/api_samples/os-keypairs/keypairs-post-resp.json new file mode 100644 index 000000000..cba62170b --- /dev/null +++ b/doc/api_samples/os-keypairs/keypairs-post-resp.json @@ -0,0 +1,9 @@ +{ + "keypair": { + "fingerprint": "35:9d:d0:c3:4a:80:d3:d8:86:f1:ca:f7:df:c4:f9:d8", + "name": "keypair-7d7c3650-dabe-4eb0-b904-5c464453c043", + "private_key": "-----BEGIN RSA P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EnOS5Q== Generated by Nova\n", + "user_id": "fake" + } +} \ No newline at end of file diff --git a/doc/api_samples/os-keypairs/keypairs-post-resp.xml b/doc/api_samples/os-keypairs/keypairs-post-resp.xml new file mode 100644 index 000000000..388ce95bd --- /dev/null +++ b/doc/api_samples/os-keypairs/keypairs-post-resp.xml @@ -0,0 +1,24 @@ + + + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDNa8e/Gfe4572GwEDXlLsCqxsMcuUiF8Fr9RSeW30EuWg8Me5HM/rzqaShmzdHZbN5dvGH15H1yMXTUg8cxcLaOU04IQi/g+BHkGzbxV3gCdODWqjF+5928Ljg6x87e5lxxB6WAoyoGuzghaJXikOihRZSzdityb3DlYuYRfaRMw== Generated by Nova + + -----BEGIN RSA PRIVATE KEY----- +MIICXgIBAAKBgQDNa8e/Gfe4572GwEDXlLsCqxsMcuUiF8Fr9RSeW30EuWg8Me5H +M/rzqaShmzdHZbN5dvGH15H1yMXTUg8cxcLaOU04IQi/g+BHkGzbxV3gCdODWqjF ++5928Ljg6x87e5lxxB6WAoyoGuzghaJXikOihRZSzdityb3DlYuYRfaRMwIDAQAB +AoGBAL67q4zqHJRIQDcE/W/t/jI9E3FcoRoluod12P4sbolbacgyiE7+ma1yv5T6 +HLqjWKCYay05YKI5GE3dbIDHsuHnnhd1S5tE2SNY85as8zC0QT6N8eFexh5/0Px4 +dVl3tXKj+Oaovb0tCKoiPVUHIZTsihNPwYqFS2kMuHnUwthxAkEA99Bw2FIWbgq9 +gj37qNGP5Vm2pmK9xU0aSyG2NJKH77CrERgmqrBT41a97BdsJbzuIaAwi4RJaDqm +AsTFBw312wJBANQ02vVin5NYD4BAfMyCsoNI7pQBCkq6UeK3VAC9ozCBE5BIDqat +VTx2ijbdlfwGqQVM6g773xuuNebgZJrbrYkCQQDV4YXzfe2z7fsf1MVGMBBkn2h/ +9ErbZa9i1ua+OxWt7qnGaDS/Ls5IMQ5cHN8PNx/Dz9D2KSd+GNg9HXz7mLXvAkEA +0GvZYomrEZy8HMs5x+PWUPug19ztrtew9Wv6JYAcd9dOz7b2LN6xiOEkfx7D4PTp +rTsN6AmZ6CYC6vAZ379DgQJAPMZjO9Z9KZ2t2VFu0YgK9LbQ4upbhew7YUmWA5dV +djCVjJ/0AZgQofvvUDe9FZHtSLt6IN5+jsLAi35Q3iQp9g== +-----END RSA PRIVATE KEY----- + + fake + keypair-b03122a0-102b-445b-a128-dba267c7cd2a + 7f:97:1c:83:27:a3:6b:c5:a6:a2:37:90:4c:be:73:86 + \ No newline at end of file