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
This commit is contained in:
parent
dd15b64827
commit
2f0c8980f5
11
doc/api_samples/os-keypairs/keypairs-get-resp.json
Normal file
11
doc/api_samples/os-keypairs/keypairs-get-resp.json
Normal file
@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
9
doc/api_samples/os-keypairs/keypairs-get-resp.xml
Normal file
9
doc/api_samples/os-keypairs/keypairs-get-resp.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<keypairs>
|
||||
<keypair>
|
||||
<public_key>ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCWdUoGD7qz9kjbLoY2L0S5CdhUS8RvQ1g62OTgvmWE/bEKDLwaTIFEEpN/0huGk/nxvVZ6VOhv1eSKC3o9dZ2NDk0C4sBsrvJ41uWd1hbq72sDGzVEkJ+925CraioSAbMpRK5Ea7UPWbR8laqrY1TsKtcuxiGJ936bOPIXW12h6Q== Generated by Nova
|
||||
</public_key>
|
||||
<name>keypair-a4c7d228-218b-4c4c-9d99-62e7878ebb1b</name>
|
||||
<fingerprint>62:32:23:67:56:ee:6f:51:4c:03:ce:b8:00:f9:41:ff</fingerprint>
|
||||
</keypair>
|
||||
</keypairs>
|
@ -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"
|
||||
}
|
||||
}
|
4
doc/api_samples/os-keypairs/keypairs-import-post-req.xml
Normal file
4
doc/api_samples/os-keypairs/keypairs-import-post-req.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<keypair>
|
||||
<name>keypair-96bbe50e-05e1-4d59-9115-4779a3ebcc2e</name>
|
||||
<public_key>ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDx8nkQv/zgGgB4rMYmIf+6A4l6Rr+o/6lHBQdW5aYd44bd8JttDCE/F/pNRr0lRE+PiqSPO8nDPHw0010JeMH9gYgnnFlyY3/OcJ02RhIPyyxYpv9FhY+2YiUkpwFOcLImyrxEsYXpD/0d3ac30bNH6Sw9JD9UZHYcpSxsIbECHw== Generated by Nova</public_key>
|
||||
</keypair>
|
@ -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"
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<keypair>
|
||||
<public_key>ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDx8nkQv/zgGgB4rMYmIf+6A4l6Rr+o/6lHBQdW5aYd44bd8JttDCE/F/pNRr0lRE+PiqSPO8nDPHw0010JeMH9gYgnnFlyY3/OcJ02RhIPyyxYpv9FhY+2YiUkpwFOcLImyrxEsYXpD/0d3ac30bNH6Sw9JD9UZHYcpSxsIbECHw== Generated by Nova</public_key>
|
||||
<user_id>fake</user_id>
|
||||
<name>keypair-96bbe50e-05e1-4d59-9115-4779a3ebcc2e</name>
|
||||
<fingerprint>1e:2c:9b:56:79:4b:45:77:f9:ca:7a:98:2c:b0:d5:3c</fingerprint>
|
||||
</keypair>
|
5
doc/api_samples/os-keypairs/keypairs-post-req.json
Normal file
5
doc/api_samples/os-keypairs/keypairs-post-req.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"keypair": {
|
||||
"name": "keypair-7d7c3650-dabe-4eb0-b904-5c464453c043"
|
||||
}
|
||||
}
|
3
doc/api_samples/os-keypairs/keypairs-post-req.xml
Normal file
3
doc/api_samples/os-keypairs/keypairs-post-req.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<keypair>
|
||||
<name>keypair-b03122a0-102b-445b-a128-dba267c7cd2a</name>
|
||||
</keypair>
|
9
doc/api_samples/os-keypairs/keypairs-post-resp.json
Normal file
9
doc/api_samples/os-keypairs/keypairs-post-resp.json
Normal file
@ -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",
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88e12xuH2XB/CZN9OpEiF98hAagiOE0EnOS5Q== Generated by Nova\n",
|
||||
"user_id": "fake"
|
||||
}
|
||||
}
|
24
doc/api_samples/os-keypairs/keypairs-post-resp.xml
Normal file
24
doc/api_samples/os-keypairs/keypairs-post-resp.xml
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<keypair>
|
||||
<public_key>ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDNa8e/Gfe4572GwEDXlLsCqxsMcuUiF8Fr9RSeW30EuWg8Me5HM/rzqaShmzdHZbN5dvGH15H1yMXTUg8cxcLaOU04IQi/g+BHkGzbxV3gCdODWqjF+5928Ljg6x87e5lxxB6WAoyoGuzghaJXikOihRZSzdityb3DlYuYRfaRMw== Generated by Nova
|
||||
</public_key>
|
||||
<private_key>-----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-----
|
||||
</private_key>
|
||||
<user_id>fake</user_id>
|
||||
<name>keypair-b03122a0-102b-445b-a128-dba267c7cd2a</name>
|
||||
<fingerprint>7f:97:1c:83:27:a3:6b:c5:a6:a2:37:90:4c:be:73:86</fingerprint>
|
||||
</keypair>
|
Loading…
Reference in New Issue
Block a user