@@ -24,7 +24,7 @@ func TestRoleDNS_Etcd(t *testing.T) {
2424 types .KeyZones ,
2525 "." ,
2626 ).String (),
27- tests .MustJSON ( types.Zone {
27+ tests .MustPB ( & types.Zone {
2828 HandlerConfigs : []* structpb.Struct {
2929 {
3030 Fields : map [string ]* structpb.Value {
@@ -44,7 +44,7 @@ func TestRoleDNS_Etcd(t *testing.T) {
4444 types .DNSRecordTypeA ,
4545 "0" ,
4646 ).String (),
47- tests .MustJSON ( types.Record {
47+ tests .MustPB ( & types.Record {
4848 Data : "10.1.2.3" ,
4949 }),
5050 )
@@ -70,7 +70,7 @@ func TestRoleDNS_Etcd_Wildcard(t *testing.T) {
7070 types .KeyZones ,
7171 "." ,
7272 ).String (),
73- tests .MustJSON ( types.Zone {
73+ tests .MustPB ( & types.Zone {
7474 HandlerConfigs : []* structpb.Struct {
7575 {
7676 Fields : map [string ]* structpb.Value {
@@ -90,7 +90,7 @@ func TestRoleDNS_Etcd_Wildcard(t *testing.T) {
9090 types .DNSRecordTypeA ,
9191 "0" ,
9292 ).String (),
93- tests .MustJSON ( types.Record {
93+ tests .MustPB ( & types.Record {
9494 Data : "10.1.2.3" ,
9595 }),
9696 )
@@ -116,7 +116,7 @@ func TestRoleDNS_Etcd_WildcardNested(t *testing.T) {
116116 types .KeyZones ,
117117 "." ,
118118 ).String (),
119- tests .MustJSON ( types.Zone {
119+ tests .MustPB ( & types.Zone {
120120 HandlerConfigs : []* structpb.Struct {
121121 {
122122 Fields : map [string ]* structpb.Value {
@@ -136,7 +136,7 @@ func TestRoleDNS_Etcd_WildcardNested(t *testing.T) {
136136 types .DNSRecordTypeA ,
137137 "0" ,
138138 ).String (),
139- tests .MustJSON ( types.Record {
139+ tests .MustPB ( & types.Record {
140140 Data : "10.1.2.3" ,
141141 }),
142142 )
0 commit comments