-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b07bf0
commit a74807d
Showing
8 changed files
with
86 additions
and
37 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
30 changes: 15 additions & 15 deletions
30
chart/templates/service-wallet.yaml → chart/templates/service-stamp.yaml
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: po-stamp | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
type: {{ .Values.service.type }} | ||
selector: | ||
app: po-stamp | ||
ports: | ||
- name: rest | ||
protocol: TCP | ||
port: 5000 | ||
targetPort: 5000 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: po-stamp | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
type: {{ .Values.service.type }} | ||
selector: | ||
app: po-stamp | ||
ports: | ||
- name: rest | ||
protocol: TCP | ||
port: 5000 | ||
targetPort: 5000 |
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
54 changes: 54 additions & 0 deletions
54
src/ProjectOrigin.Stamp.Test/Options/RegistryOptionsTests.cs
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,54 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using FluentAssertions; | ||
using ProjectOrigin.Stamp.Server.Options; | ||
using Xunit; | ||
|
||
namespace ProjectOrigin.Stamp.Test.Options; | ||
|
||
public class RegistryOptionsTests | ||
{ | ||
[Fact] | ||
public void ShouldTellSupportedRegistriesOnNotFoundRegistry() | ||
{ | ||
// Arrange | ||
var registryOptions = new RegistryOptions | ||
{ | ||
RegistryUrls = new Dictionary<string, string> | ||
{ | ||
{ "Narnia", "http://foo" }, | ||
{ "TestRegistry", "http://foo" }, | ||
{ "death-star", "http://foo" } | ||
} | ||
}; | ||
|
||
// Act | ||
var sut = () => registryOptions.GetRegistryUrl("Narnia2"); | ||
|
||
// Assert | ||
sut.Should().Throw<NotSupportedException>() | ||
.WithMessage("RegistryName Narnia2 not supported. Supported registries are: Narnia, TestRegistry, death-star"); | ||
} | ||
|
||
[Fact] | ||
public void ShouldTellSupportedGridAreasOnNotFoundGridArea() | ||
{ | ||
var registryOptions = new RegistryOptions | ||
{ | ||
IssuerPrivateKeyPems = new Dictionary<string, byte[]> | ||
{ | ||
{ "Narnia", Encoding.UTF8.GetBytes("key") }, | ||
{ "TestArea", Encoding.UTF8.GetBytes("key") }, | ||
{ "death-star", Encoding.UTF8.GetBytes("key") } | ||
} | ||
}; | ||
|
||
var sut = () => registryOptions.GetIssuerKey("Narnia2"); | ||
|
||
sut.Should().Throw<NotSupportedException>() | ||
.WithMessage("Not supported GridArea Narnia2. Supported GridAreas are: Narnia, TestArea, death-star"); | ||
} | ||
} |
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