@@ -85,13 +85,42 @@ jsonpath "$.[0].ip" == "1.2.3.4"
8585jsonpath "$.[0].name" == "test_builder"
8686
8787# [Builder API] Register credentials for 'rbuilder' service
88- #POST http://localhost:8888/api/l1-builder/v1/register_credentials/rbuilder
89- #{
90- # "ecdsa_pubkey_address": "0x321f3426eEc20DE1910af1CD595c4DD83BEA0BA5"
91- #}
88+ POST http://localhost:8888/api/l1-builder/v1/register_credentials/rbuilder
89+ {
90+ "ecdsa_pubkey_address" : "0x321f3426eEc20DE1910af1CD595c4DD83BEA0BA5"
91+ }
92+ HTTP 200
9293
93- ## [Builder API] List of peers now includes the added credentials
94- #GET http://localhost:8888/api/l1-builder/v1/builders
95- #HTTP 200
96- #[Asserts]
97- #jsonpath "$.[0].rbuilder.ecdsa_pubkey_address" == "0x321f3426eec20de1910af1cd595c4dd83bea0ba5"
94+ # [Builder API] Register credentials for 'orderflow_proxy' service
95+ POST http://localhost:8888/api/l1-builder/v1/register_credentials/orderflow_proxy
96+ {
97+ "ecdsa_pubkey_address" : "0x321f3426eEc20DE1910af1CD595c4DD83BEA0BA5" ,
98+ "tls_cert" : "abcdefghijklmnopqrstuvwxyz"
99+ }
100+ HTTP 200
101+
102+ # [Builder API] Register credentials for 'instance' service
103+ POST http://localhost:8888/api/l1-builder/v1/register_credentials/instance
104+ {
105+ "tls_cert" : "1234567890"
106+ }
107+ HTTP 200
108+
109+ # [Builder API] Register credentials for custom service
110+ POST http://localhost:8888/api/l1-builder/v1/register_credentials/foobar123
111+ {
112+ "tls_cert" : "1234567890" ,
113+ "ecdsa_pubkey_address" : "0x321f3426eEc20DE1910af1CD595c4DD83BEA0BA5"
114+ }
115+ HTTP 200
116+
117+ # [Builder API] Get the list of peers
118+ GET http://localhost:8888/api/l1-builder/v1/builders
119+ HTTP 200
120+ [Asserts]
121+ jsonpath "$.[0].orderflow_proxy.tls_cert" == "abcdefghijklmnopqrstuvwxyz"
122+ jsonpath "$.[0].orderflow_proxy.ecdsa_pubkey_address" == "0x321f3426eec20de1910af1cd595c4dd83bea0ba5"
123+ jsonpath "$.[0].rbuilder.ecdsa_pubkey_address" == "0x321f3426eec20de1910af1cd595c4dd83bea0ba5"
124+ jsonpath "$.[0].instance.tls_cert" == "1234567890"
125+ jsonpath "$.[0].foobar123.tls_cert" == "1234567890"
126+ jsonpath "$.[0].foobar123.ecdsa_pubkey_address" == "0x321f3426eec20de1910af1cd595c4dd83bea0ba5"
0 commit comments