Skip to content

[Jenson|Roy] Enforce Proctor Client upgrade#53

Merged
roypeter merged 10 commits intogojek:masterfrom
jensoncs:master
Nov 21, 2018
Merged

[Jenson|Roy] Enforce Proctor Client upgrade#53
roypeter merged 10 commits intogojek:masterfrom
jensoncs:master

Conversation

@jensoncs
Copy link
Copy Markdown
Contributor

  1. Pass proctor version in Proctor Command Header
  2. On server check for Proctor Client compatibility
  3. Pass not 400 Bad Request on getting request from deprecated client with message to upgrade.

Comment thread daemon/client_test.go Outdated
Comment thread daemon/client_test.go Outdated
Comment thread daemon/client_test.go Outdated
Comment thread daemon/client_test.go Outdated
Comment thread daemon/client_test.go Outdated
Comment thread daemon/client_test.go Outdated
assert.Equal(t, expectedProcResponse, executeProcResponse)
}

func TestExecuteProcbadRequest(t *testing.T) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename this test: TestExecuteProcClientVersionOutdated

Comment thread daemon/client_test.go Outdated
assert.NoError(t,err)
}

func TestListProcsReturnProcListBadrequestError(t *testing.T) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename this test: TestListProcClientVersionOutdated

Comment thread daemon/client_test.go Outdated
Comment thread proctord/utility/utils.go Outdated
Comment thread proctord/utility/utils.go Outdated
@roypeter roypeter merged commit 3dd1e03 into gojek:master Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants