We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecd776d commit e613daaCopy full SHA for e613daa
tests/test_cluster.py
@@ -0,0 +1,13 @@
1
+import uuid
2
+
3
+from silverback.cluster.types import ClusterConfiguration
4
5
6
+def test_hmac_signature():
7
+ config = ClusterConfiguration()
8
+ cluster_id = uuid.uuid4()
9
+ owner = "0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97"
10
+ product_code = config.get_product_code(owner, cluster_id)
11
+ # NOTE: Ensure we can properly decode the encoded product code into a configuration
12
+ assert config == ClusterConfiguration.decode(product_code[:16])
13
+ assert config.validate_product_code(owner, product_code[16:], cluster_id)
0 commit comments