Skip to content
This repository was archived by the owner on Sep 16, 2026. It is now read-only.

Commit 0a29cd1

Browse files
committed
APIGOV-32262 - update on unit test
1 parent 5feb232 commit 0a29cd1

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎pkg/apic/apiservice_test.go‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,15 @@ func TestPublishServiceRevisionOnly(t *testing.T) {
196196
"full publish creates service, revision, and instance": {
197197
revisionOnly: false,
198198
responses: []api.MockResponse{
199-
{FileName: testAPIServiceFile, RespCode: http.StatusCreated}, // POST service
200-
{FileName: testAgentDetailsFile, RespCode: http.StatusOK}, // service subresource
201-
{FileName: testAgentDetailsFile, RespCode: http.StatusOK}, // spec hashes
202-
{FileName: testRevisionFile, RespCode: http.StatusCreated}, // POST revision
199+
{FileName: testAPIServiceFile, RespCode: http.StatusCreated}, // POST service
200+
{FileName: testAgentDetailsFile, RespCode: http.StatusOK}, // service source subresource
201+
{FileName: testAgentDetailsFile, RespCode: http.StatusOK}, // service x-agent-details subresource
202+
{FileName: testRevisionFile, RespCode: http.StatusCreated}, // POST revision
203203
{FileName: testAgentDetailsFile, RespCode: http.StatusOK}, // revision subresource
204-
{FileName: testInstanceFile, RespCode: http.StatusCreated}, // POST instance
204+
{FileName: testInstanceFile, RespCode: http.StatusCreated}, // POST instance
205205
{FileName: testAgentDetailsFile, RespCode: http.StatusOK}, // instance subresource
206206
{FileName: testAgentDetailsFile, RespCode: http.StatusOK}, // spec hashes update
207+
{FileName: testAgentDetailsFile, RespCode: http.StatusOK}, // service source update
207208
},
208209
},
209210
"revision-only publish skips instance creation": {

0 commit comments

Comments
 (0)