From 143fb274efbd365689873d178ce18748c5282cf0 Mon Sep 17 00:00:00 2001 From: Tiago Mello Date: Mon, 21 Jan 2013 12:37:07 -0200 Subject: Adds API Sample tests for os-instance_usage_audit_log extension. Fixes Bug 1091752. Partially implements bp nova-api-samples. Change-Id: I2db83ac32283795ab0cbf254c6adbd352806b297 --- .../inst-usage-audit-log-index-get-resp.json | 17 +++++++++++++++++ .../inst-usage-audit-log-index-get-resp.xml | 16 ++++++++++++++++ .../inst-usage-audit-log-show-get-resp.json | 17 +++++++++++++++++ .../inst-usage-audit-log-show-get-resp.xml | 16 ++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.json create mode 100644 doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.xml create mode 100644 doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.json create mode 100644 doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.xml (limited to 'doc') diff --git a/doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.json b/doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.json new file mode 100644 index 000000000..1d308d4ae --- /dev/null +++ b/doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.json @@ -0,0 +1,17 @@ +{ + "instance_usage_audit_logs": { + "hosts_not_run": [ + "f4eb7cfd155f4574967f8b55a7faed75" + ], + "log": {}, + "num_hosts": 1, + "num_hosts_done": 0, + "num_hosts_not_run": 1, + "num_hosts_running": 0, + "overall_status": "0 of 1 hosts done. 0 errors.", + "period_beginning": "2012-12-01 00:00:00", + "period_ending": "2013-01-01 00:00:00", + "total_errors": 0, + "total_instances": 0 + } +} \ No newline at end of file diff --git a/doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.xml b/doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.xml new file mode 100644 index 000000000..82d157fb9 --- /dev/null +++ b/doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-index-get-resp.xml @@ -0,0 +1,16 @@ + + + 0 + 0 + + 0 + 0 + 1 + + 107debd115684f098d4c73ffac7ec515 + + 0 of 1 hosts done. 0 errors. + 2013-01-01 00:00:00 + 2012-12-01 00:00:00 + 1 + \ No newline at end of file diff --git a/doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.json b/doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.json new file mode 100644 index 000000000..2b5fe54c1 --- /dev/null +++ b/doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.json @@ -0,0 +1,17 @@ +{ + "instance_usage_audit_log": { + "hosts_not_run": [ + "8e33da2b48684ef3ab165444d6a7384c" + ], + "log": {}, + "num_hosts": 1, + "num_hosts_done": 0, + "num_hosts_not_run": 1, + "num_hosts_running": 0, + "overall_status": "0 of 1 hosts done. 0 errors.", + "period_beginning": "2012-06-01 00:00:00", + "period_ending": "2012-07-01 00:00:00", + "total_errors": 0, + "total_instances": 0 + } +} \ No newline at end of file diff --git a/doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.xml b/doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.xml new file mode 100644 index 000000000..453689737 --- /dev/null +++ b/doc/api_samples/os-instance_usage_audit_log/inst-usage-audit-log-show-get-resp.xml @@ -0,0 +1,16 @@ + + + 0 + 0 + + 0 + 0 + 1 + + 4b54478b73734afcbf0e2676a3303d1a + + 0 of 1 hosts done. 0 errors. + 2012-07-01 00:00:00 + 2012-06-01 00:00:00 + 1 + \ No newline at end of file -- cgit