Skip to content

Commit 5c33e66

Browse files
committed
Delete application version command
1 parent 4f9bec6 commit 5c33e66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apptrust/service/versions/version_service_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)