Skip to content

Commit af68407

Browse files
authored
Merge pull request wso2#11006 from tharindu1st/test-fix
modify test cases to remove endpointSecurityDTO
2 parents d441b0a + 5e22eaa commit af68407

File tree

256 files changed

+2692
-7568
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+2692
-7568
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
aeac79f59eac2ab16468e051b6367e63ed9c1b0cb9bee08e25d6f22bb2579c91
1+
629d75bf7ecb7ed51ea5e89462cb418c6ed19cc46f40fe4bc207f534bca4bba2

modules/integration/tests-common/clients/publisher/api/openapi.yaml

+700-1,581
Large diffs are not rendered by default.

modules/integration/tests-common/clients/publisher/docs/APIDTO.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ Name | Type | Description | Notes
3737
**visibility** | [**VisibilityEnum**](#VisibilityEnum) | The visibility level of the API. Accepts one of the following. PUBLIC, PRIVATE, RESTRICTED. | [optional]
3838
**visibleRoles** | **List<String>** | The user roles that are able to access the API in Developer Portal | [optional]
3939
**visibleTenants** | **List<String>** | | [optional]
40-
**endpointSecurity** | [**APIEndpointSecurityDTO**](APIEndpointSecurityDTO.md) | | [optional]
4140
**gatewayEnvironments** | **List<String>** | List of gateway environments the API is available | [optional]
42-
**deploymentEnvironments** | [**List<DeploymentEnvironmentsDTO>**](DeploymentEnvironmentsDTO.md) | List of selected deployment environments and clusters | [optional]
43-
**labels** | **List<String>** | Labels of micro-gateway environments attached to the API. | [optional]
4441
**mediationPolicies** | [**List<MediationPolicyDTO>**](MediationPolicyDTO.md) | | [optional]
4542
**subscriptionAvailability** | [**SubscriptionAvailabilityEnum**](#SubscriptionAvailabilityEnum) | The subscription availability. Accepts one of the following. CURRENT_TENANT, ALL_TENANTS or SPECIFIC_TENANTS. | [optional]
4643
**subscriptionAvailableTenants** | **List<String>** | | [optional]
@@ -62,6 +59,7 @@ Name | Type | Description | Notes
6259
**categories** | **List<String>** | API categories | [optional]
6360
**keyManagers** | [**Object**](.md) | API Key Managers | [optional] [readonly]
6461
**serviceInfo** | [**APIServiceInfoDTO**](APIServiceInfoDTO.md) | | [optional]
62+
**advertiseInfo** | [**AdvertiseInfoDTO**](AdvertiseInfoDTO.md) | | [optional]
6563

6664

6765

modules/integration/tests-common/clients/publisher/docs/APIInfoDTO.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Name | Type | Description | Notes
1717
**workflowStatus** | **String** | | [optional]
1818
**hasThumbnail** | **Boolean** | | [optional]
1919
**securityScheme** | **List<String>** | | [optional]
20-
**websubSubscriptionConfiguration** | [**APIInfoWebsubSubscriptionConfigurationDTO**](APIInfoWebsubSubscriptionConfigurationDTO.md) | | [optional]
20+
**createdTime** | **String** | | [optional]
21+
**updatedTime** | **String** | | [optional]
2122

2223

2324

modules/integration/tests-common/clients/publisher/docs/APIRevisionDTO.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**displayName** | **String** | | [optional]
10-
**id** | **String** | | [optional]
9+
**displayName** | **String** | | [optional] [readonly]
10+
**id** | **String** | | [optional] [readonly]
1111
**description** | **String** | | [optional]
12-
**createdTime** | **String** | | [optional]
12+
**createdTime** | [**Date**](Date.md) | | [optional] [readonly]
1313
**apiInfo** | [**APIRevisionAPIInfoDTO**](APIRevisionAPIInfoDTO.md) | | [optional]
14-
**deploymentInfo** | [**List<APIRevisionDeploymentDTO>**](APIRevisionDeploymentDTO.md) | | [optional]
14+
**deploymentInfo** | [**List<APIRevisionDeploymentDTO>**](APIRevisionDeploymentDTO.md) | | [optional] [readonly]
1515

1616

1717

modules/integration/tests-common/clients/publisher/docs/APIRevisionDeploymentDTO.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
1010
**name** | **String** | | [optional]
1111
**vhost** | **String** | | [optional]
1212
**displayOnDevportal** | **Boolean** | | [optional]
13-
**deployedTime** | **String** | | [optional]
13+
**deployedTime** | [**Date**](Date.md) | | [optional] [readonly]
1414

1515

1616

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
# AdvertiseInfoDTO
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**advertised** | **Boolean** | | [optional]
10+
**originalDevPortalUrl** | **String** | | [optional]
11+
**apiOwner** | **String** | | [optional]
12+
13+
14+

modules/integration/tests-common/clients/publisher/docs/ApIsApi.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Method | HTTP request | Description
2121
[**getWSDLInfoOfAPI**](ApIsApi.md#getWSDLInfoOfAPI) | **GET** /apis/{apiId}/wsdl-info | Get WSDL Meta Information
2222
[**getWSDLOfAPI**](ApIsApi.md#getWSDLOfAPI) | **GET** /apis/{apiId}/wsdl | Get WSDL definition
2323
[**importAsyncAPISpecification**](ApIsApi.md#importAsyncAPISpecification) | **POST** /apis/import-asyncapi | import an AsyncAPI Specification
24-
[**importGraphQLSchema**](ApIsApi.md#importGraphQLSchema) | **POST** /apis/import-graphql-schema | Import API Definition
24+
[**importGraphQLSchema**](ApIsApi.md#importGraphQLSchema) | **POST** /apis/import-graphql-schema | Import a GraphQL SDL
2525
[**importOpenAPIDefinition**](ApIsApi.md#importOpenAPIDefinition) | **POST** /apis/import-openapi | Import an OpenAPI Definition
2626
[**importServiceFromCatalog**](ApIsApi.md#importServiceFromCatalog) | **POST** /apis/import-service | Import a Service from Service Catalog
2727
[**importWSDLDefinition**](ApIsApi.md#importWSDLDefinition) | **POST** /apis/import-wsdl | Import a WSDL Definition
@@ -941,7 +941,7 @@ public class Example {
941941
Integer limit = 25; // Integer | Maximum size of resource array to return.
942942
Integer offset = 0; // Integer | Starting point within the complete list of items qualified.
943943
String xWSO2Tenant = "xWSO2Tenant_example"; // String | For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from.
944-
String query = "query_example"; // String | **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"provider:wso2\" will match an API if the provider of the API contains \"wso2\". \"provider:\"wso2\"\" will match an API if the provider of the API is exactly \"wso2\". \"status:PUBLISHED\" will match an API if the API is in PUBLISHED state. \"label:external\" will match an API if it contains a Microgateway label called \"external\". Also you can use combined modifiers Eg. name:pizzashack version:v1 will match an API if the name of the API is pizzashack and version is v1. Supported attribute modifiers are [**version, context, name, status, description, subcontext, doc, provider, label**] If no advanced attribute modifier has been specified, the API names containing the search term will be returned as a result. Please note that you need to use encoded URL (URL encoding) if you are using a client which does not support URL encoding (such as curl)
944+
String query = "query_example"; // String | **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"provider:wso2\" will match an API if the provider of the API contains \"wso2\". \"provider:\"wso2\"\" will match an API if the provider of the API is exactly \"wso2\". \"status:PUBLISHED\" will match an API if the API is in PUBLISHED state. Also you can use combined modifiers Eg. name:pizzashack version:v1 will match an API if the name of the API is pizzashack and version is v1. Supported attribute modifiers are [**version, context, name, status, description, doc, provider**] If no advanced attribute modifier has been specified, the API names containing the search term will be returned as a result. Please note that you need to use encoded URL (URL encoding) if you are using a client which does not support URL encoding (such as curl)
945945
String ifNoneMatch = "ifNoneMatch_example"; // String | Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource.
946946
Boolean expand = true; // Boolean | Defines whether the returned response should contain full details of API
947947
String accept = "\"application/json\""; // String | Media types acceptable for the response. Default is application/json.
@@ -966,7 +966,7 @@ Name | Type | Description | Notes
966966
**limit** | **Integer**| Maximum size of resource array to return. | [optional] [default to 25]
967967
**offset** | **Integer**| Starting point within the complete list of items qualified. | [optional] [default to 0]
968968
**xWSO2Tenant** | **String**| For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. | [optional]
969-
**query** | **String**| **Search condition**. You can search in attributes by using an **\&quot;&lt;attribute&gt;:\&quot;** modifier. Eg. \&quot;provider:wso2\&quot; will match an API if the provider of the API contains \&quot;wso2\&quot;. \&quot;provider:\&quot;wso2\&quot;\&quot; will match an API if the provider of the API is exactly \&quot;wso2\&quot;. \&quot;status:PUBLISHED\&quot; will match an API if the API is in PUBLISHED state. \&quot;label:external\&quot; will match an API if it contains a Microgateway label called \&quot;external\&quot;. Also you can use combined modifiers Eg. name:pizzashack version:v1 will match an API if the name of the API is pizzashack and version is v1. Supported attribute modifiers are [**version, context, name, status, description, subcontext, doc, provider, label**] If no advanced attribute modifier has been specified, the API names containing the search term will be returned as a result. Please note that you need to use encoded URL (URL encoding) if you are using a client which does not support URL encoding (such as curl) | [optional]
969+
**query** | **String**| **Search condition**. You can search in attributes by using an **\&quot;&lt;attribute&gt;:\&quot;** modifier. Eg. \&quot;provider:wso2\&quot; will match an API if the provider of the API contains \&quot;wso2\&quot;. \&quot;provider:\&quot;wso2\&quot;\&quot; will match an API if the provider of the API is exactly \&quot;wso2\&quot;. \&quot;status:PUBLISHED\&quot; will match an API if the API is in PUBLISHED state. Also you can use combined modifiers Eg. name:pizzashack version:v1 will match an API if the name of the API is pizzashack and version is v1. Supported attribute modifiers are [**version, context, name, status, description, doc, provider**] If no advanced attribute modifier has been specified, the API names containing the search term will be returned as a result. Please note that you need to use encoded URL (URL encoding) if you are using a client which does not support URL encoding (such as curl) | [optional]
970970
**ifNoneMatch** | **String**| Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. | [optional]
971971
**expand** | **Boolean**| Defines whether the returned response should contain full details of API | [optional]
972972
**accept** | **String**| Media types acceptable for the response. Default is application/json. | [optional] [default to &quot;application/json&quot;]
@@ -1280,7 +1280,7 @@ Name | Type | Description | Notes
12801280
# **importGraphQLSchema**
12811281
> APIDTO importGraphQLSchema(ifMatch, type, file, additionalProperties)
12821282
1283-
Import API Definition
1283+
Import a GraphQL SDL
12841284

12851285
This operation can be used to create api from api definition.APIMgtDAOTest API definition is GraphQL Schema
12861286

@@ -1353,7 +1353,7 @@ Name | Type | Description | Notes
13531353

13541354
<a name="importOpenAPIDefinition"></a>
13551355
# **importOpenAPIDefinition**
1356-
> APIDTO importOpenAPIDefinition(file, url, additionalProperties)
1356+
> APIDTO importOpenAPIDefinition(file, url, additionalProperties, inlineAPIDefinition)
13571357
13581358
Import an OpenAPI Definition
13591359

@@ -1382,8 +1382,9 @@ public class Example {
13821382
File file = new File("/path/to/file"); // File | Definition to upload as a file
13831383
String url = "url_example"; // String | Definition url
13841384
String additionalProperties = "additionalProperties_example"; // String | Additional attributes specified as a stringified JSON with API's schema
1385+
String inlineAPIDefinition = "inlineAPIDefinition_example"; // String | Inline content of the OpenAPI definition
13851386
try {
1386-
APIDTO result = apiInstance.importOpenAPIDefinition(file, url, additionalProperties);
1387+
APIDTO result = apiInstance.importOpenAPIDefinition(file, url, additionalProperties, inlineAPIDefinition);
13871388
System.out.println(result);
13881389
} catch (ApiException e) {
13891390
System.err.println("Exception when calling ApIsApi#importOpenAPIDefinition");
@@ -1403,6 +1404,7 @@ Name | Type | Description | Notes
14031404
**file** | **File**| Definition to upload as a file | [optional]
14041405
**url** | **String**| Definition url | [optional]
14051406
**additionalProperties** | **String**| Additional attributes specified as a stringified JSON with API&#39;s schema | [optional]
1407+
**inlineAPIDefinition** | **String**| Inline content of the OpenAPI definition | [optional]
14061408

14071409
### Return type
14081410

@@ -1452,7 +1454,7 @@ public class Example {
14521454
OAuth2Security.setAccessToken("YOUR ACCESS TOKEN");
14531455

14541456
ApIsApi apiInstance = new ApIsApi(defaultClient);
1455-
String serviceKey = "serviceKey_example"; // String | ID of service that should be imported from Service Catalog
1457+
String serviceKey = Pizzashack-1.0.0; // String | ID of service that should be imported from Service Catalog
14561458
APIDTO APIDTO = new APIDTO(); // APIDTO |
14571459
try {
14581460
APIDTO result = apiInstance.importServiceFromCatalog(serviceKey, APIDTO);

0 commit comments

Comments
 (0)