File tree 2 files changed +2
-22
lines changed
2 files changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -103,17 +103,9 @@ type databaseBranchesService struct {
103
103
client * Client
104
104
}
105
105
106
- type DatabaseBranchCredentials struct {
107
- GatewayHost string `json:"mysql_gateway_host"`
108
- GatewayPort int `json:"mysql_gateway_port"`
109
- User string `json:"mysql_gateway_user"`
110
- Password string `json:"mysql_gateway_pass"`
111
- }
112
-
113
106
// DatabaseBranchStatus represents the status of a PlanetScale database branch.
114
107
type DatabaseBranchStatus struct {
115
- Ready bool `json:"ready"`
116
- Credentials DatabaseBranchCredentials `json:"credentials"`
108
+ Ready bool `json:"ready"`
117
109
}
118
110
119
111
var _ DatabaseBranchesService = & databaseBranchesService {}
Original file line number Diff line number Diff line change @@ -149,13 +149,7 @@ func TestDatabaseBranches_Status(t *testing.T) {
149
149
"type": "BranchStatus",
150
150
"ready": true,
151
151
"created_at": "2021-01-14T10:19:23.000Z",
152
- "updated_at": "2021-01-14T10:19:23.000Z",
153
- "credentials": {
154
- "mysql_gateway_host": "test-host",
155
- "mysql_gateway_port": 3306,
156
- "mysql_gateway_user": "root",
157
- "mysql_gateway_pass": "password"
158
- }
152
+ "updated_at": "2021-01-14T10:19:23.000Z"
159
153
}`
160
154
161
155
_ , err := w .Write ([]byte (out ))
@@ -178,12 +172,6 @@ func TestDatabaseBranches_Status(t *testing.T) {
178
172
179
173
want := & DatabaseBranchStatus {
180
174
Ready : true ,
181
- Credentials : DatabaseBranchCredentials {
182
- GatewayHost : "test-host" ,
183
- GatewayPort : 3306 ,
184
- User : "root" ,
185
- Password : "password" ,
186
- },
187
175
}
188
176
189
177
c .Assert (err , qt .IsNil )
You can’t perform that action at this time.
0 commit comments