revert
This commit is contained in:
@@ -481,7 +481,7 @@ func TestSubscriptionDetailsJSONValidation(t *testing.T) {
|
|||||||
g := newTestGrain()
|
g := newTestGrain()
|
||||||
|
|
||||||
// Valid JSON on create
|
// Valid JSON on create
|
||||||
jsonStr := `{"offeringCode": "OFFJSON", "signingType": "TYPEJSON", "data": {"value":"eyJvayI6dHJ1ZX0=","a":1}}`
|
jsonStr := `{"offeringCode": "OFFJSON", "signingType": "TYPEJSON", "data": {"value":"test","a":1}}`
|
||||||
var validCreate SubscriptionDetailsRequest
|
var validCreate SubscriptionDetailsRequest
|
||||||
if err := json.Unmarshal([]byte(jsonStr), &validCreate); err != nil {
|
if err := json.Unmarshal([]byte(jsonStr), &validCreate); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
@@ -494,7 +494,7 @@ func TestSubscriptionDetailsJSONValidation(t *testing.T) {
|
|||||||
for k := range g.SubscriptionDetails {
|
for k := range g.SubscriptionDetails {
|
||||||
id = k
|
id = k
|
||||||
}
|
}
|
||||||
if string(g.SubscriptionDetails[id].Meta) != `{"value":"eyJvayI6dHJ1ZX0=","a":1}` {
|
if string(g.SubscriptionDetails[id].Meta) != `{"value":"test","a":1}` {
|
||||||
t.Fatalf("expected meta stored as valid json, got %s", string(g.SubscriptionDetails[id].Meta))
|
t.Fatalf("expected meta stored as valid json, got %s", string(g.SubscriptionDetails[id].Meta))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user