-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add one more test case * Fix unit tests * Remove command handler duplicate * Remove JsonElementExtensions from code coverage and Fix formatting issues * Fix * Fix
- Loading branch information
Showing
12 changed files
with
147 additions
and
53 deletions.
There are no files selected for viewing
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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,56 @@ | ||
using System; | ||
using Arcane.Operator.Models.Resources.StreamClass.Base; | ||
using k8s.Models; | ||
using Snd.Sdk.Kubernetes; | ||
|
||
namespace Arcane.Operator.Tests.Services.TestCases; | ||
|
||
/// <summary> | ||
/// A stream Class that throws an exception (for tests) | ||
/// </summary> | ||
public class FailedStreamClass : IStreamClass | ||
{ | ||
private readonly Exception exception; | ||
|
||
public FailedStreamClass(Exception exception) | ||
{ | ||
this.exception = exception; | ||
} | ||
|
||
public string ApiVersion | ||
{ | ||
get => throw this.exception; | ||
set => throw this.exception; | ||
} | ||
|
||
public string Kind | ||
{ | ||
get => throw this.exception; | ||
set => throw this.exception; | ||
} | ||
|
||
public V1ObjectMeta Metadata | ||
{ | ||
get => throw this.exception; | ||
set => throw this.exception; | ||
} | ||
public string ToStreamClassId() | ||
{ | ||
throw this.exception; | ||
} | ||
|
||
public string ApiGroupRef => throw this.exception; | ||
public string VersionRef => throw this.exception; | ||
public string PluralNameRef => throw this.exception; | ||
public string KindRef => throw this.exception; | ||
public int MaxBufferCapacity => throw this.exception; | ||
public NamespacedCrd ToNamespacedCrd() | ||
{ | ||
throw this.exception; | ||
} | ||
|
||
public bool IsSecretRef(string propertyName) | ||
{ | ||
throw this.exception; | ||
} | ||
} |
This file contains 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 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