Skip to content

Commit

Permalink
feat(core): Add provider version to creds controller (#1958)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwander authored Oct 3, 2017
1 parent a1168d5 commit dfbe9d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class CredentialsController {
'cloudProvider',
'requiredGroupMembership',
'permissions',
'providerVersion',
'accountId'])
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class CredentialsControllerSpec extends Specification {

List<Map> parsedResponse = new JsonSlurper().parseText(result.response.contentAsString) as List

parsedResponse == [[name: "test", environment: "env", accountType: "acctType", cloudProvider: "testProvider", type: "testProvider", requiredGroupMembership: ["test"], challengeDestructiveActions: false, primaryAccount: false]]
parsedResponse == [[name: "test", environment: "env", accountType: "acctType", cloudProvider: "testProvider", type: "testProvider", requiredGroupMembership: ["test"], challengeDestructiveActions: false, primaryAccount: false, providerVersion: "v1"]]
}

static class TestNamedAccountCredentials implements AccountCredentials<Map> {
Expand Down

0 comments on commit dfbe9d5

Please sign in to comment.