<p>This test case will check that a CAPIF AMF can get log entry to Logging Service</p>
<p><strong>Pre-Conditions</strong>:</p>
@@ -1353,11 +1362,13 @@
<li>Invoker exist in CAPIF</li>
<li>Log Entry exist in CAPIF</li>
</ul>
<p><strong>Execution Steps</strong>:
1. Register Provider and Invoker CCF
2. Publish Service
3. Create Log Entry
4. Get Log Entry</p>
<p><strong>Execution Steps</strong>:</p>
<ol>
<li>Register Provider and Invoker CCF</li>
<li>Publish Service</li>
<li>Create Log Entry</li>
<li>Get Log Entry</li>
</ol>
<p><strong>Information of Test</strong>:</p>
<ol>
<li>
@@ -1367,7 +1378,7 @@
<p>Publish Service API at CCF:</p>
<ul>
<li>Send <strong>POST</strong> to ccf_publish_url <strong>https://{CAPIF_HOSTNAME}/published-apis/v1/{apfId}/service-apis</strong></li>
<li>body [service api description] with apiName <strong>service_1</strong></li>
<li>body <ahref="../api_publish_service/service_api_description_post_example.json"title="Service API Description Request">service api description</a> with apiName <strong>service_1</strong></li>
<li>Use <strong>APF Certificate</strong></li>
</ul>
</li>
@@ -1391,7 +1402,7 @@
<ol>
<li>Response to Logging Service must accomplish:<ol>
<li><strong>200 OK</strong></li>
<li>Response Body must follow <strong>InvocationLog</strong> data structure with:<ul>
<li>Response Body must follow <strong>InvocationLogsRetrieveRes</strong> including <strong>InvocationLog</strong> data structure with:<ul>
<li>aefId</li>
<li>apiInvokerId</li>
<li>logs</li>
@@ -1400,8 +1411,8 @@
</ol>
</li>
</ol>
<h2id="test-case-2-get-capif-log-entry-with-no-log-entry-in-capif">Test Case 2: Get CAPIF Log Entry With no Log entry in CAPIF.</h2>
<p>This test case will check that a CAPIF AEF can create log entry to Logging Service</p>
<p><strong>Pre-Conditions</strong>:</p>
@@ -1410,10 +1421,12 @@
<li>Service exist in CAPIF</li>
<li>Invoker exist in CAPIF</li>
</ul>
<p><strong>Execution Steps</strong>:
1. Register Provider and Invoker CCF
2. Publish Service
3. Get Log Entry</p>
<p><strong>Execution Steps</strong>:</p>
<ol>
<li>Register Provider and Invoker CCF</li>
<li>Publish Service</li>
<li>Get Log Entry</li>
</ol>
<p><strong>Information of Test</strong>:</p>
<ol>
<li>
@@ -1423,7 +1436,7 @@
<p>Publish Service API at CCF:</p>
<ul>
<li>Send <strong>POST</strong> to ccf_publish_url <strong>https://{CAPIF_HOSTNAME}/published-apis/v1/{apfId}/service-apis</strong></li>
<li>body [service api description] with apiName <strong>service_1</strong></li>
<li>body <ahref="../api_publish_service/service_api_description_post_example.json"title="Service API Description Request">service api description</a> with apiName <strong>service_1</strong></li>
<li>Use <strong>APF Certificate</strong></li>
</ul>
</li>
@@ -1448,8 +1461,8 @@
</ol>
</li>
</ol>
<h2id="test-case-3-get-capif-log-entry-without-aef-id-and-api-invoker-id">Test Case 3: Get CAPIF Log Entry without aef-id and api-invoker-id.</h2>
<p>This test case will check that a CAPIF AEF can create log entry to Logging Service</p>
<p><strong>Pre-Conditions</strong>:</p>
@@ -1459,11 +1472,13 @@
<li>Invoker exist in CAPIF</li>
<li>Log Entry exist in CAPIF</li>
</ul>
<p><strong>Execution Steps</strong>:
1. Register Provider and Invoker CCF
2. Publish Service
3. Create Log Entry
4. Get Log Entry</p>
<p><strong>Execution Steps</strong>:</p>
<ol>
<li>Register Provider and Invoker CCF</li>
<li>Publish Service</li>
<li>Create Log Entry</li>
<li>Get Log Entry</li>
</ol>
<p><strong>Information of Test</strong>:</p>
<ol>
<li>
@@ -1473,7 +1488,7 @@
<p>Publish Service API at CCF:</p>
<ul>
<li>Send <strong>POST</strong> to ccf_publish_url <strong>https://{CAPIF_HOSTNAME}/published-apis/v1/{apfId}/service-apis</strong></li>
<li>body [service api description] with apiName <strong>service_1</strong></li>
<li>body <ahref="../api_publish_service/service_api_description_post_example.json"title="Service API Description Request">service api description</a> with apiName <strong>service_1</strong></li>
<li>Use <strong>APF Certificate</strong></li>
</ul>
</li>
@@ -1507,8 +1522,8 @@
</ol>
</li>
</ol>
<h2id="test-case-4-get-capif-log-entry-with-filtter-api-version">Test Case 4: Get CAPIF Log Entry with filtter api-version.</h2>
<p>This test case will check that a CAPIF AMF can get log entry to Logging Service</p>
<p><strong>Pre-Conditions</strong>:</p>
@@ -1518,11 +1533,13 @@
<li>Invoker exist in CAPIF</li>
<li>Log Entry exist in CAPIF</li>
</ul>
<p><strong>Execution Steps</strong>:
1. Register Provider and Invoker CCF
2. Publish Service
3. Create Log Entry
4. Get Log Entry</p>
<p><strong>Execution Steps</strong>:</p>
<ol>
<li>Register Provider and Invoker CCF</li>
<li>Publish Service</li>
<li>Create Log Entry</li>
<li>Get Log Entry</li>
</ol>
<p><strong>Information of Test</strong>:</p>
<ol>
<li>
@@ -1532,7 +1549,7 @@
<p>Publish Service API at CCF:</p>
<ul>
<li>Send <strong>POST</strong> to ccf_publish_url <strong>https://{CAPIF_HOSTNAME}/published-apis/v1/{apfId}/service-apis</strong></li>
<li>body [service api description] with apiName <strong>service_1</strong></li>
<li>body <ahref="../api_publish_service/service_api_description_post_example.json"title="Service API Description Request">service api description</a> with apiName <strong>service_1</strong></li>
<li>Use <strong>APF Certificate</strong></li>
</ul>
</li>
@@ -1556,7 +1573,7 @@
<ol>
<li>Response to Logging Service must accomplish:<ol>
<li><strong>200 OK</strong></li>
<li>Response Body must follow <strong>InvocationLog</strong> data structure with:<ul>
<li>Response Body must follow <strong>InvocationLogsRetrieveRes</strong> including <strong>InvocationLog</strong> data structure with:<ul>
<li>aefId</li>
<li>apiInvokerId</li>
<li>logs</li>
@@ -1565,8 +1582,8 @@
</ol>
</li>
</ol>
<h2id="test-case-5-get-capif-log-entry-with-filter-api-version-but-not-exist-in-log-entry">Test Case 5: Get CAPIF Log Entry with filter api-version but not exist in log entry.</h2>
<h2id="test-case-5-get-log-entry-with-filter-api-version-but-not-exist-in-log-entry">Test Case 5: Get Log Entry with filter api-version but not exist in log entry.</h2>
<p>This test case will check that a CAPIF AMF can get log entry to Logging Service</p>
<p><strong>Pre-Conditions</strong>:</p>
@@ -1576,11 +1593,13 @@
<li>Invoker exist in CAPIF</li>
<li>Log Entry exist in CAPIF</li>
</ul>
<p><strong>Execution Steps</strong>:
1. Register Provider and Invoker CCF
2. Publish Service
3. Create Log Entry
4. Get Log Entry</p>
<p><strong>Execution Steps</strong>:</p>
<ol>
<li>Register Provider and Invoker CCF</li>
<li>Publish Service</li>
<li>Create Log Entry</li>
<li>Get Log Entry</li>
</ol>
<p><strong>Information of Test</strong>:</p>
<ol>
<li>
@@ -1590,7 +1609,7 @@
<p>Publish Service API at CCF:</p>
<ul>
<li>Send <strong>POST</strong> to ccf_publish_url <strong>https://{CAPIF_HOSTNAME}/published-apis/v1/{apfId}/service-apis</strong></li>
<li>body [service api description] with apiName <strong>service_1</strong></li>
<li>body <ahref="../api_publish_service/service_api_description_post_example.json"title="Service API Description Request">service api description</a> with apiName <strong>service_1</strong></li>
<li>Use <strong>APF Certificate</strong></li>
</ul>
</li>
@@ -1623,6 +1642,74 @@
</ol>
</li>
</ol>
<h2id="test-case-6-get-multiple-log-entries">Test Case 6: Get Multiple Log Entries.</h2>
<li>Send <strong>POST</strong> to ccf_publish_url <strong>https://{CAPIF_HOSTNAME}/published-apis/v1/{apfId}/service-apis</strong></li>
<li>body <ahref="../api_publish_service/service_api_description_post_example.json"title="Service API Description Request">service api description</a> with apiName <strong>service_1</strong></li>
<li>Use <strong>APF Certificate</strong></li>
</ul>
</li>
<li>
<p>Create Log Entry:</p>
<ul>
<li>Send <strong>POST</strong> to <strong>https://{CAPIF_HOSTNAME}/api-invocation-logs/v1/{aefId}/logs</strong></li>
<li>Send <strong>GET</strong> to <strong>https://{CAPIF_HOSTNAME}/logs/v1/apiInvocationLogs?aef-id={aefId}&api-invoker-id={api-invoker-id}</strong></li>
<li>Use <strong>AMF Certificate</strong></li>
</ol>
</li>
</ol>
<p><strong>Expected Result</strong>:</p>
<ol>
<li>Response to Logging Service must accomplish:<ol>
<li><strong>200 OK</strong></li>
<li>Response Body must follow <strong>InvocationLogsRetrieveRes</strong> including <strong>InvocationLogs</strong> attribute on data structure with:<ul>