File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apptrust/service/versions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ func TestCreateAppVersion(t *testing.T) {
5656 for _ , tt := range tests {
5757 t .Run (tt .name , func (t * testing.T ) {
5858 mockHttpClient := mockhttp .NewMockApptrustHttpClient (ctrl )
59- mockHttpClient .EXPECT ().Post ("/v1/version" , tt .request ).
59+ mockHttpClient .EXPECT ().Post ("/v1/applications/ version" , tt .request ).
6060 Return (tt .mockResponse , []byte (tt .mockResponseBody ), tt .mockError ).Times (1 )
6161
6262 mockCtx := mockservice .NewMockContext (ctrl )
@@ -116,7 +116,7 @@ func TestPromoteAppVersion(t *testing.T) {
116116 for _ , tt := range tests {
117117 t .Run (tt .name , func (t * testing.T ) {
118118 mockHttpClient := mockhttp .NewMockApptrustHttpClient (ctrl )
119- mockHttpClient .EXPECT ().Post ("/v1/version/promote" , tt .payload ).
119+ mockHttpClient .EXPECT ().Post ("/v1/applications/ version/promote" , tt .payload ).
120120 Return (tt .mockResponse , []byte (tt .mockResponseBody ), tt .mockError ).Times (1 )
121121
122122 mockCtx := mockservice .NewMockContext (ctrl )
You can’t perform that action at this time.
0 commit comments