@fairmint/canton-node-sdk
Version:
Canton Node SDK
61 lines (56 loc) • 2.49 kB
YAML
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
chart:
version: "0.3.1"
templates:
- configmap-content-static.yaml
tests:
- it: "should render minimal configmap with deployment details in JSON format"
set:
deploymentDetails:
network: "dev"
configDigest:
allowedIpRanges:
type: "md5"
value: "d41d8cd98f00b204e9800998ecf8427e"
approvedSvIdentities:
type: "sha256"
value: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
synchronizer:
active:
chainIdSuffix: "id0"
migrationId: 4
asserts:
- equal:
path: data["index.html"]
value: '{"deploymentInfo":{"configDigest":{"allowed-ip-ranges":"md5:d41d8cd98f00b204e9800998ecf8427e","approved-sv-id-values":"sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"network":"dev","sv":{"version":"0.3.1"},"synchronizer":{"active":{"chainIdSuffix":"id0","migrationId":4,"version":"0.3.1"},"legacy":null,"staging":null}}}'
- it: "should render full configmap with deployment details in JSON format"
set:
deploymentDetails:
network: "dev"
sv:
version: "0.3.3"
configDigest:
allowedIpRanges:
type: "md5"
value: "d41d8cd98f00b204e9800998ecf8427e"
approvedSvIdentities:
type: "sha256"
value: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
synchronizer:
active:
chainIdSuffix: "id0"
migrationId: 4
version: "0.3.3"
staging:
chainIdSuffix: "id1"
migrationId: 5
version: "0.3.4"
legacy:
chainIdSuffix: "id9"
migrationId: 3
version: "0.3.2"
asserts:
- equal:
path: data["index.html"]
value: '{"deploymentInfo":{"configDigest":{"allowed-ip-ranges":"md5:d41d8cd98f00b204e9800998ecf8427e","approved-sv-id-values":"sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"network":"dev","sv":{"version":"0.3.3"},"synchronizer":{"active":{"chainIdSuffix":"id0","migrationId":4,"version":"0.3.3"},"legacy":{"chainIdSuffix":"id9","migrationId":3,"version":"0.3.2"},"staging":{"chainIdSuffix":"id1","migrationId":5,"version":"0.3.4"}}}}'