pluton/tests/bootkube: scale test curl syntax error
@@ -70,10 +70,10 @@ func resizeSelfHostedEtcd(c *pluton.Cluster, size int) error {
tprGroup, apiVersion, tprKind)
scaleCmds := []string{
- fmt.Sprintf("curl -H -f 'Content-Type: application/json' -X GET %v > body.json", tprEndpoint),
+ fmt.Sprintf("curl -f -H 'Content-Type: application/json' -X GET %v > body.json", tprEndpoint),
// delete resourceVersion field before curling back
fmt.Sprintf("jq 'recurse(.metadata) |= del(.resourceVersion)' < body.json | jq .spec.size=%v > newbody.json", size),
- fmt.Sprintf("curl -H -f 'Content-Type: application/json' -X PUT --data @newbody.json %v", tprEndpoint),
+ fmt.Sprintf("curl -f -H 'Content-Type: application/json' -X PUT --data @newbody.json %v", tprEndpoint),
}
for _, cmd := range scaleCmds {
sout, serr, err := c.SSH(cmd)
