Skip to content

Commit

Permalink
Change language server unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharuja committed Jan 26, 2020
1 parent bed1e01 commit aa6bd5b
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,20 @@
"insertText": "SSL_ERROR",
"insertTextFormat": "Snippet"
},
{
"label": "COOKIE_HANDLING_ERROR",
"kind": "Variable",
"detail": "string",
"documentation": {
"right": {
"kind": "markdown",
"value": "Represents the reason string for the `http:CookieHandlingError`"
}
},
"sortText": "130",
"insertText": "COOKIE_HANDLING_ERROR",
"insertTextFormat": "Snippet"
},
{
"label": "AGE",
"kind": "Variable",
Expand Down Expand Up @@ -2575,6 +2589,17 @@
"insertText": "CookieClient",
"insertTextFormat": "Snippet"
},
{
"label": "PersistentCookieHandler",
"kind": "Interface",
"detail": "Object",
"documentation": {
"left": "The representation of a persistent cookie handler for managing persistent cookies."
},
"sortText": "190",
"insertText": "PersistentCookieHandler",
"insertTextFormat": "Snippet"
},
{
"label": "HttpFuture",
"kind": "Interface",
Expand Down Expand Up @@ -3054,6 +3079,17 @@
"insertText": "SslError",
"insertTextFormat": "Snippet"
},
{
"label": "CookieHandlingError",
"kind": "Event",
"detail": "Error",
"documentation": {
"left": "Represents a cookie error that occurred when using cookies"
},
"sortText": "200",
"insertText": "CookieHandlingError",
"insertTextFormat": "Snippet"
},
{
"label": "ResiliencyError",
"kind": "Event",
Expand Down Expand Up @@ -3698,6 +3734,17 @@
"insertText": "BearerAuthHandler",
"insertTextFormat": "Snippet"
},
{
"label": "CsvPersistentCookieHandler",
"kind": "Interface",
"detail": "Object",
"documentation": {
"left": "Represents a default persistent cookie handler which stores persistent cookies in a CSV file.\n"
},
"sortText": "190",
"insertText": "CsvPersistentCookieHandler",
"insertTextFormat": "Snippet"
},
{
"label": "RequestMessage",
"kind": "Enum",
Expand Down Expand Up @@ -3739,13 +3786,13 @@
}
},
{
"label": "createHttpCachingClient(string url, http:ClientConfiguration config, http:CacheConfig cacheConfig)((http:HttpClient|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError))",
"label": "createHttpCachingClient(string url, http:ClientConfiguration config, http:CacheConfig cacheConfig)((http:HttpClient|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError|http:CookieHandlingError))",
"kind": "Function",
"detail": "Function",
"documentation": {
"right": {
"kind": "markdown",
"value": "**Package:** _ballerina/http_ \n \nCreates an HTTP client capable of caching HTTP responses.\n \n**Params** \n- `string` url: The URL of the HTTP endpoint to connect to \n- `http:ClientConfiguration` config: The configurations for the client endpoint associated with the caching client \n- `http:CacheConfig` cacheConfig: The configurations for the HTTP cache to be used with the caching client \n \n**Returns** `(http:HttpClient|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError)` \n- An `HttpCachingClient` instance which wraps the base `Client` with a caching layer \n \n"
"value": "**Package:** _ballerina/http_ \n \nCreates an HTTP client capable of caching HTTP responses.\n \n**Params** \n- `string` url: The URL of the HTTP endpoint to connect to \n- `http:ClientConfiguration` config: The configurations for the client endpoint associated with the caching client \n- `http:CacheConfig` cacheConfig: The configurations for the HTTP cache to be used with the caching client \n \n**Returns** `(http:HttpClient|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError|http:CookieHandlingError)` \n- An `HttpCachingClient` instance which wraps the base `Client` with a caching layer \n \n"
}
},
"sortText": "120",
Expand All @@ -3757,13 +3804,13 @@
}
},
{
"label": "parseHeader(string headerValue)(([string,map\u003cany\u003e]|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError))",
"label": "parseHeader(string headerValue)(([string,map\u003cany\u003e]|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError|http:CookieHandlingError))",
"kind": "Function",
"detail": "Function",
"documentation": {
"right": {
"kind": "markdown",
"value": "**Package:** _ballerina/http_ \n \nParses the given header value to extract its value and parameter map.\n \n**Params** \n- `string` headerValue: The header value \n \n**Returns** `([string,map\u003cany\u003e]|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError)` \n- Returns a tuple containing the value and its parameter map \n \n"
"value": "**Package:** _ballerina/http_ \n \nParses the given header value to extract its value and parameter map.\n \n**Params** \n- `string` headerValue: The header value \n \n**Returns** `([string,map\u003cany\u003e]|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError|http:CookieHandlingError)` \n- Returns a tuple containing the value and its parameter map \n \n"
}
},
"sortText": "120",
Expand All @@ -3775,13 +3822,13 @@
}
},
{
"label": "invokeEndpoint(string path, http:Request outRequest, (FORWARD|GET|POST|DELETE|OPTIONS|PUT|PATCH|HEAD|SUBMIT|NONE) requestAction, http:HttpClient httpClient, string verb)((http:Response|http:HttpFuture|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError))",
"label": "invokeEndpoint(string path, http:Request outRequest, (FORWARD|GET|POST|DELETE|OPTIONS|PUT|PATCH|HEAD|SUBMIT|NONE) requestAction, http:HttpClient httpClient, string verb)((http:Response|http:HttpFuture|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError|http:CookieHandlingError))",
"kind": "Function",
"detail": "Function",
"documentation": {
"right": {
"kind": "markdown",
"value": "**Package:** _ballerina/http_ \n \nThe HEAD remote function implementation of the Circuit Breaker. This wraps the `head` function of the underlying\nHTTP remote function provider. \n**Params** \n- `string` path: Resource path \n- `http:Request` outRequest: A Request struct \n- `(FORWARD|GET|POST|DELETE|OPTIONS|PUT|PATCH|HEAD|SUBMIT|NONE)` requestAction: `HttpOperation` related to the request \n- `http:HttpClient` httpClient: HTTP client which uses to call the relevant functions \n- `string` verb: HTTP verb used for submit method(Defaultable) \n \n**Returns** `(http:Response|http:HttpFuture|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError)` \n- The response for the request or an `http:ClientError` if failed to establish communication with the upstream server \n \n"
"value": "**Package:** _ballerina/http_ \n \nThe HEAD remote function implementation of the Circuit Breaker. This wraps the `head` function of the underlying\nHTTP remote function provider. \n**Params** \n- `string` path: Resource path \n- `http:Request` outRequest: A Request struct \n- `(FORWARD|GET|POST|DELETE|OPTIONS|PUT|PATCH|HEAD|SUBMIT|NONE)` requestAction: `HttpOperation` related to the request \n- `http:HttpClient` httpClient: HTTP client which uses to call the relevant functions \n- `string` verb: HTTP verb used for submit method(Defaultable) \n \n**Returns** `(http:Response|http:HttpFuture|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError|http:CookieHandlingError)` \n- The response for the request or an `http:ClientError` if failed to establish communication with the upstream server \n \n"
}
},
"sortText": "120",
Expand All @@ -3793,13 +3840,13 @@
}
},
{
"label": "createHttpSecureClient(string url, http:ClientConfiguration config)((http:HttpClient|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError))",
"label": "createHttpSecureClient(string url, http:ClientConfiguration config)((http:HttpClient|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError|http:CookieHandlingError))",
"kind": "Function",
"detail": "Function",
"documentation": {
"right": {
"kind": "markdown",
"value": "**Package:** _ballerina/http_ \n \nCreates an HTTP client capable of securing HTTP requests with authentication.\n \n**Params** \n- `string` url: Base URL \n- `http:ClientConfiguration` config: Client endpoint configurations \n \n**Returns** `(http:HttpClient|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError)` \n- Created secure HTTP client \n \n"
"value": "**Package:** _ballerina/http_ \n \nCreates an HTTP client capable of securing HTTP requests with authentication.\n \n**Params** \n- `string` url: Base URL \n- `http:ClientConfiguration` config: Client endpoint configurations \n \n**Returns** `(http:HttpClient|http:FailoverAllEndpointsFailedError|http:FailoverActionFailedError|http:UpstreamServiceUnavailableError|http:AllLoadBalanceEndpointsFailedError|http:AllRetryAttemptsFailed|http:IdleTimeoutError|http:AuthenticationError|http:AuthorizationError|http:InitializingOutboundRequestError|http:WritingOutboundRequestHeadersError|http:WritingOutboundRequestBodyError|http:InitializingInboundResponseError|http:ReadingInboundResponseHeadersError|http:ReadingInboundResponseBodyError|http:UnsupportedActionError|http:Http2ClientError|http:MaximumWaitTimeExceededError|http:SslError|http:GenericClientError|http:CookieHandlingError)` \n- Created secure HTTP client \n \n"
}
},
"sortText": "120",
Expand Down
Loading

0 comments on commit aa6bd5b

Please sign in to comment.