-
Notifications
You must be signed in to change notification settings - Fork 401
Minimum required changes for working tests #481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ded1b4d
Updated models and fixed tests
f9dd969
Discarded model
4cc11b9
Failing tests on CI/CD
2ef06ed
Debugging tests on CI/CD
acf9b19
Applied PR suggested changes
15ebea8
error when running tests on CI/CD pipeline
7e23974
Implemented approach from PR #343 for cancelling streamReader
e56935f
Tests case is behaving differently while it runs on CI/CD pipeline
860b53b
Merged changes from author fork
3fca955
Error on CI/CD pipeline due to new Message.Status. Discarted Message.…
353014a
Serialization for IList<byte> to base64
e21a71b
PR suggestions by @galvesriverio
73bcc76
Updated test for DockerService_IsRunning
402b8ad
Renamed process name in tests
5369ddf
Updated version for Nerdbank.GitVersioning
91ab832
Updated ProcesName in test
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace Docker.DotNet | ||
{ | ||
internal class JsonBase64Converter : JsonConverter | ||
{ | ||
private static readonly Type _byteListType = typeof(IList<byte>); | ||
public override bool CanRead => true; | ||
|
||
public override bool CanWrite => false; | ||
|
||
public override void WriteJson(JsonWriter writer, object value, Newtonsoft.Json.JsonSerializer serializer) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, Newtonsoft.Json.JsonSerializer serializer) | ||
{ | ||
var strVal = reader.Value as string; | ||
|
||
return Convert.FromBase64String(strVal); | ||
} | ||
|
||
public override bool CanConvert(Type objectType) | ||
{ | ||
return objectType == _byteListType; | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class GlobalJob // (swarm.GlobalJob) | ||
{ | ||
jterry75 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class JobStatus // (swarm.JobStatus) | ||
{ | ||
[DataMember(Name = "JobIteration", EmitDefaultValue = false)] | ||
public Version JobIteration { get; set; } | ||
|
||
[DataMember(Name = "LastExecution", EmitDefaultValue = false)] | ||
public DateTime LastExecution { get; set; } | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class NetworkAddressPool // (types.NetworkAddressPool) | ||
{ | ||
[DataMember(Name = "Base", EmitDefaultValue = false)] | ||
public string Base { get; set; } | ||
|
||
[DataMember(Name = "Size", EmitDefaultValue = false)] | ||
public long Size { get; set; } | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class ReplicatedJob // (swarm.ReplicatedJob) | ||
{ | ||
[DataMember(Name = "MaxConcurrent", EmitDefaultValue = false)] | ||
public ulong? MaxConcurrent { get; set; } | ||
|
||
[DataMember(Name = "TotalCompletions", EmitDefaultValue = false)] | ||
public ulong? TotalCompletions { get; set; } | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/Docker.DotNet/Models/ServiceListParameters.Generated.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class ServiceListParameters // (main.ServiceListParameters) | ||
{ | ||
[QueryStringParameter("filters", false, typeof(MapQueryStringConverter))] | ||
public IDictionary<string, IDictionary<string, bool>> Filters { get; set; } | ||
|
||
[QueryStringParameter("status", false, typeof(BoolQueryStringConverter))] | ||
public bool? Status { get; set; } | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/Docker.DotNet/Models/ServiceLogsParameters.Generated.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class ServiceLogsParameters // (main.ServiceLogsParameters) | ||
{ | ||
[QueryStringParameter("stdout", false, typeof(BoolQueryStringConverter))] | ||
public bool? ShowStdout { get; set; } | ||
|
||
[QueryStringParameter("stderr", false, typeof(BoolQueryStringConverter))] | ||
public bool? ShowStderr { get; set; } | ||
|
||
[QueryStringParameter("since", false)] | ||
public string Since { get; set; } | ||
|
||
[QueryStringParameter("timestamps", false, typeof(BoolQueryStringConverter))] | ||
public bool? Timestamps { get; set; } | ||
|
||
[QueryStringParameter("follow", false, typeof(BoolQueryStringConverter))] | ||
public bool? Follow { get; set; } | ||
|
||
[QueryStringParameter("tail", false)] | ||
public string Tail { get; set; } | ||
|
||
[QueryStringParameter("details", false, typeof(BoolQueryStringConverter))] | ||
public bool? Details { get; set; } | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class ShimConfig // (types.ShimConfig) | ||
{ | ||
[DataMember(Name = "Binary", EmitDefaultValue = false)] | ||
public string Binary { get; set; } | ||
|
||
[DataMember(Name = "Opts", EmitDefaultValue = false)] | ||
public object Opts { get; set; } | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.