You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// With omitempty and *int type, replicas field SHOULD be present when explicitly set to 0
166
+
replicas, hasReplicas:=body["replicas"]
167
+
c.Assert(hasReplicas, qt.IsTrue, qt.Commentf("replicas field should be present when explicitly set to 0"))
168
+
c.Assert(replicas, qt.Equals, float64(0))
169
+
170
+
out:=`{"id":"planetscale-go-test-db","type":"database","name":"planetscale-go-test-db","notes":"This is a test DB created from the planetscale-go API library","created_at":"2021-01-14T10:19:23.000Z","updated_at":"2021-01-14T10:19:23.000Z", "region": { "slug": "us-west", "display_name": "US West" },"state":"ready"}`
171
+
_, err=w.Write([]byte(out))
172
+
c.Assert(err, qt.IsNil)
173
+
}))
174
+
175
+
client, err:=NewClient(WithBaseURL(ts.URL))
176
+
c.Assert(err, qt.IsNil)
177
+
178
+
ctx:=context.Background()
179
+
org:="my-org"
180
+
name:="planetscale-go-test-db"
181
+
notes:="This is a test DB created from the planetscale-go API library"
0 commit comments