File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -85,11 +85,16 @@ func TestBuildpacks(t *testing.T) {
85
85
Endpoint : "/v3/buildpacks/6f3c68d0-e119-4ca2-8ce4-83661ad6e0eb" ,
86
86
Output : g .Single (buildpack ),
87
87
Status : http .StatusOK ,
88
- PostForm : `{ "position": 1 }` ,
88
+ PostForm : `{
89
+ "position": 1,
90
+ "stack" : "cflinuxfs4"
91
+ }` ,
89
92
},
90
93
Expected : buildpack ,
91
94
Action : func (c * Client , t * testing.T ) (any , error ) {
92
- r := resource .NewBuildpackUpdate ().WithPosition (1 )
95
+ r := resource .NewBuildpackUpdate ().
96
+ WithPosition (1 ).
97
+ WithStack ("cflinuxfs4" )
93
98
return c .Buildpacks .Update (context .Background (), "6f3c68d0-e119-4ca2-8ce4-83661ad6e0eb" , r )
94
99
},
95
100
},
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ type BuildpackCreateOrUpdate struct {
18
18
Position * int `json:"position,omitempty"` // The order in which the buildpacks are checked during buildpack auto-detection
19
19
Enabled * bool `json:"enabled,omitempty"` // Whether the buildpack can be used for staging
20
20
Locked * bool `json:"locked,omitempty"` // Whether the buildpack is locked to prevent updating the bits
21
- Stack * string `json:"stack,omitempty"` // The name of the stack that the buildpack will use
21
+ Stack * string `json:"stack"` // The name of the stack that the buildpack will use
22
22
Metadata * Metadata `json:"metadata,omitempty"`
23
23
}
24
24
You can’t perform that action at this time.
0 commit comments