Skip to content

Commit

Permalink
Release/2.4.0 (#24)
Browse files Browse the repository at this point in the history
* Fixed pipeline

* Renamed project

* Fixed pipeline

---------

Co-authored-by: Dmitry.Gridnev <[email protected]>
  • Loading branch information
gibiw and Dmitry.Gridnev authored Sep 13, 2023
1 parent 88dfba6 commit 7ae41ca
Show file tree
Hide file tree
Showing 426 changed files with 10,603 additions and 10,601 deletions.
4 changes: 2 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name-template: 'v$NEXT_PATCH_VERSION'
tag-template: 'v$NEXT_PATCH_VERSION'
name-template: '$NEXT_PATCH_VERSION'
tag-template: '$NEXT_PATCH_VERSION'
categories:
- title: '🚀 Features'
labels:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- released

env:
PROJECT_DIR: ./src/TestIt.Client
PROJECT_DIR: ./src/TestIT.ApiClient
NUGET_DIR: ./nuget

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request

env:
PROJECT_DIR: ./src/TestIt.Client
PROJECT_DIR: ./src/TestIT.ApiClient
VALIDATION: 1

jobs:
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3,392 changes: 1,696 additions & 1,696 deletions src/TestIt.Client/Api/ProjectsApi.cs → src/TestIT.ApiClient/Api/ProjectsApi.cs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
using System.Net.Http;
using System.Net.Http.Headers;
using Polly;
using TestIT.ApiClient.Model;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// To Serialize/Deserialize JSON using our custom logic, but only when ContentType is JSON.
Expand Down Expand Up @@ -69,10 +70,10 @@ public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfi
/// <returns>A JSON string.</returns>
public string Serialize(object obj)
{
if (obj != null && obj is TestIt.Client.Model.AbstractOpenAPISchema)
if (obj != null && obj is AbstractOpenAPISchema)
{
// the object to be serialized is an oneOf/anyOf schema
return ((TestIt.Client.Model.AbstractOpenAPISchema)obj).ToJson();
return ((AbstractOpenAPISchema)obj).ToJson();
}
else
{
Expand Down Expand Up @@ -199,7 +200,7 @@ public partial class ApiClient : IDisposable, ISynchronousClient, IAsynchronousC
/// It's better to reuse the <see href="https://docs.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests#issues-with-the-original-httpclient-class-available-in-net">HttpClient and HttpClientHandler</see>.
/// </summary>
public ApiClient() :
this(TestIt.Client.Client.GlobalConfiguration.Instance.BasePath)
this(GlobalConfiguration.Instance.BasePath)
{
}

Expand Down Expand Up @@ -231,7 +232,7 @@ public ApiClient(string basePath)
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
/// </remarks>
public ApiClient(HttpClient client, HttpClientHandler handler = null) :
this(client, TestIt.Client.Client.GlobalConfiguration.Instance.BasePath, handler)
this(client, GlobalConfiguration.Instance.BasePath, handler)
{
}

Expand Down Expand Up @@ -517,7 +518,7 @@ private async Task<ApiResponse<T>> ExecAsync<T>(HttpRequestMessage req,
object responseData = await deserializer.Deserialize<T>(response).ConfigureAwait(false);

// if the response type is oneOf/anyOf, call FromJSON to deserialize the data
if (typeof(TestIt.Client.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T)))
if (typeof(AbstractOpenAPISchema).IsAssignableFrom(typeof(T)))
{
responseData = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

using System;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// API Exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
using System.Collections.Generic;
using System.Net;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// Provides a non-generic contract for the ApiResponse wrapper.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
using System.Text;
using System.Text.RegularExpressions;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// Utility functions providing some benefit to API client consumers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
using System.Text;
using System.Net.Http;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// Represents a set of configuration settings
Expand Down Expand Up @@ -513,7 +513,7 @@ private string GetServerUrl(IList<IReadOnlyDictionary<string, object>> servers,
/// </summary>
public static string ToDebugReport()
{
string report = "C# SDK (TestIt.Client) Debug Report:\n";
string report = "C# SDK (TestIT.ApiClient) Debug Report:\n";
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: v2.0\n";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

using System;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// A delegate to ExceptionFactory method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

using System.IO;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{

/// <summary>
Expand Down Expand Up @@ -77,4 +77,4 @@ public FileParameter(string filename, string contentType, Stream content)
/// <returns>FileParameter</returns>
public static implicit operator FileParameter(Stream s) => new FileParameter(s);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

using System.Collections.Generic;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// <see cref="GlobalConfiguration"/> provides a compile-time extension point for globally configuring
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

using System;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// Represents configuration aspects required to interact with the API endpoints.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using System;
using System.Threading.Tasks;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// Contract for Asynchronous RESTful API interactions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
using System.Net;
using System.Security.Cryptography.X509Certificates;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// Represents a readable-only configuration contract.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using System;
using System.IO;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// Contract for Synchronous RESTful API interactions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
using System.Collections;
using System.Collections.Generic;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// A dictionary in which one key has many associated values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Newtonsoft.Json.Converters;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// Formatter for 'date' openapi formats ss defined by full-date - RFC3339
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
using System.IO;
using System.Net;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// A container for generalized request inputs. This type allows consumers to extend the request functionality
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using Polly;
using System.Net.Http;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// Configuration class to set the polly retry policies to be applied to the requests.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using System;
using System.Collections.Generic;

namespace TestIt.Client.Client
namespace TestIT.ApiClient.Client
{
/// <summary>
/// A URI builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;

namespace TestIt.Client.Model
namespace TestIT.ApiClient.Model
{
/// <summary>
/// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using FileParameter = TestIt.Client.Client.FileParameter;
using OpenAPIDateConverter = TestIt.Client.Client.OpenAPIDateConverter;
using FileParameter = TestIT.ApiClient.Client.FileParameter;
using OpenAPIDateConverter = TestIT.ApiClient.Client.OpenAPIDateConverter;

namespace TestIt.Client.Model
namespace TestIT.ApiClient.Model
{
/// <summary>
/// Defines ActionUpdate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using FileParameter = TestIt.Client.Client.FileParameter;
using OpenAPIDateConverter = TestIt.Client.Client.OpenAPIDateConverter;
using FileParameter = TestIT.ApiClient.Client.FileParameter;
using OpenAPIDateConverter = TestIT.ApiClient.Client.OpenAPIDateConverter;

namespace TestIt.Client.Model
namespace TestIT.ApiClient.Model
{
/// <summary>
/// ApiV2AttachmentsPostRequest
Expand All @@ -36,7 +36,7 @@ public partial class ApiV2AttachmentsPostRequest : IEquatable<ApiV2AttachmentsPo
/// Initializes a new instance of the <see cref="ApiV2AttachmentsPostRequest" /> class.
/// </summary>
/// <param name="file">file.</param>
public ApiV2AttachmentsPostRequest(FileParameter file = default(FileParameter))
public ApiV2AttachmentsPostRequest(Client.FileParameter file = default(Client.FileParameter))
{
this.File = file;
}
Expand All @@ -45,7 +45,7 @@ public partial class ApiV2AttachmentsPostRequest : IEquatable<ApiV2AttachmentsPo
/// Gets or Sets File
/// </summary>
[DataMember(Name = "file", EmitDefaultValue = false)]
public FileParameter File { get; set; }
public Client.FileParameter File { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down Expand Up @@ -90,7 +90,7 @@ public bool Equals(ApiV2AttachmentsPostRequest input)
{
return false;
}
return
return
(
this.File == input.File ||
(this.File != null &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using FileParameter = TestIt.Client.Client.FileParameter;
using OpenAPIDateConverter = TestIt.Client.Client.OpenAPIDateConverter;
using FileParameter = TestIT.ApiClient.Client.FileParameter;
using OpenAPIDateConverter = TestIT.ApiClient.Client.OpenAPIDateConverter;

namespace TestIt.Client.Model
namespace TestIT.ApiClient.Model
{
/// <summary>
/// ApiV2AutoTestsFlakyBulkPostRequest
Expand Down Expand Up @@ -105,12 +105,12 @@ public bool Equals(ApiV2AutoTestsFlakyBulkPostRequest input)
{
return false;
}
return
return
(
this.AutotestSelect == input.AutotestSelect ||
(this.AutotestSelect != null &&
this.AutotestSelect.Equals(input.AutotestSelect))
) &&
) &&
(
this.Value == input.Value ||
this.Value.Equals(input.Value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using FileParameter = TestIt.Client.Client.FileParameter;
using OpenAPIDateConverter = TestIt.Client.Client.OpenAPIDateConverter;
using FileParameter = TestIT.ApiClient.Client.FileParameter;
using OpenAPIDateConverter = TestIT.ApiClient.Client.OpenAPIDateConverter;

namespace TestIt.Client.Model
namespace TestIT.ApiClient.Model
{
/// <summary>
/// ApiV2AutoTestsIdTestResultsSearchPostRequest
Expand Down Expand Up @@ -144,42 +144,42 @@ public bool Equals(ApiV2AutoTestsIdTestResultsSearchPostRequest input)
{
return false;
}
return
return
(
this.Outcomes == input.Outcomes ||
this.Outcomes != null &&
input.Outcomes != null &&
this.Outcomes.SequenceEqual(input.Outcomes)
) &&
) &&
(
this.TestPlanIds == input.TestPlanIds ||
this.TestPlanIds != null &&
input.TestPlanIds != null &&
this.TestPlanIds.SequenceEqual(input.TestPlanIds)
) &&
) &&
(
this.TestRunIds == input.TestRunIds ||
this.TestRunIds != null &&
input.TestRunIds != null &&
this.TestRunIds.SequenceEqual(input.TestRunIds)
) &&
) &&
(
this.ConfigurationIds == input.ConfigurationIds ||
this.ConfigurationIds != null &&
input.ConfigurationIds != null &&
this.ConfigurationIds.SequenceEqual(input.ConfigurationIds)
) &&
) &&
(
this.LaunchSource == input.LaunchSource ||
(this.LaunchSource != null &&
this.LaunchSource.Equals(input.LaunchSource))
) &&
) &&
(
this.UserIds == input.UserIds ||
this.UserIds != null &&
input.UserIds != null &&
this.UserIds.SequenceEqual(input.UserIds)
) &&
) &&
(
this.Duration == input.Duration ||
(this.Duration != null &&
Expand Down
Loading

0 comments on commit 7ae41ca

Please sign in to comment.