-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore support for multiple XSUAA Application Plan service bindings (#…
…1249) * Restore support in ServiceBindingEnvironment for multiple configurations with the same service plan. To not break the existing API: * Provide ServiceBindingEnvironment#getServiceConfigurationsAsList as an alternative that returns all configurations --------- Co-authored-by: liga-oz <[email protected]>
- Loading branch information
1 parent
f85c599
commit 822e436
Showing
4 changed files
with
236 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"xsuaa": [ | ||
{ | ||
"binding_name": null, | ||
"credentials": { | ||
"apiurl": "https://api.uaadomain.org", | ||
"certificate": "", | ||
"key": "", | ||
"clientid": "sb-xsuaa-unknown!b8066", | ||
"clientsecret": "sppEXArNzp3tccATO99CZsRKESY=", | ||
"identityzone": "id-test-zone", | ||
"identityzoneid": "a179bf0f-5a57-2276-a3f0-94c6d79bd05b", | ||
"sburl": "https://internal-xsuaa.uaadomain.org", | ||
"tenantid": "a179bf0f-5a57-2276-a3f0-94c6d79bd05b", | ||
"tenantmode": "dedicated", | ||
"trustedclientidsuffix": "|xsuaa-unknown!b8066", | ||
"uaadomain": "uaadomain.org", | ||
"url": "https://id-test-zone.uaadomain.org", | ||
"verificationkey": "-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAABBBQ8AMIIBCgKCAQEAx/jN5v1mp/TVn9nTQoYVIUfCsUDHa3Upr5tDZC7mzlTrN2PnwruzyS7w1Jd+StqwW4/vn87ua2YlZzU8Ob0jR4lbOPCKaHIi0kyNtJXQvQ7LZPG8epQLbx0IIP/WLVVVtB8bL5OWuHma3pUnibbmATtbOh5LksQ2zLMngEjUF52JQyzTpjoQkahp0BNe/drlAqO253keiY63FL6belKjJGmSqdnotSXxB2ym+HQ0ShaNvTFLEvi2+ObkyjGWgFpQaoCcGq0KX0y0mPzOvdFsNT+rBFdkHiK+Jl638Sbim1z9fItFbH9hiVwY37R9rLtH1YKi3PuATMjf/DJ7mUluDQIDAQAB-----END PUBLIC KEY-----", | ||
"xsappname": "xsuaa-unknown!b8066" | ||
}, | ||
"instance_name": "xsuaa-broker", | ||
"label": "xsuaa", | ||
"name": "xsuaa-unknown", | ||
"plan": "unknown", | ||
"provider": null, | ||
"syslog_drain_url": null, | ||
"tags": [ | ||
"xsuaa" | ||
], | ||
"volume_mounts": [] | ||
} | ||
] | ||
} |
88 changes: 88 additions & 0 deletions
88
env/src/test/resources/vcapXsuaaServiceMultipleApplicationPlanBindings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
{ | ||
"xsuaa": [ | ||
{ | ||
"binding_name": null, | ||
"credentials": { | ||
"apiurl": "https://api.uaadomain.org", | ||
"certificate": "", | ||
"key": "", | ||
"clientid": "sb-xsuaa-broker!b8066", | ||
"clientsecret": "sppEXArNzp3tccATO99CZsRKESY=", | ||
"identityzone": "id-test-zone", | ||
"identityzoneid": "a179bf0f-5a57-2276-a3f0-94c6d79bd05b", | ||
"sburl": "https://internal-xsuaa.uaadomain.org", | ||
"tenantid": "a179bf0f-5a57-2276-a3f0-94c6d79bd05b", | ||
"tenantmode": "dedicated", | ||
"trustedclientidsuffix": "|xsuaa-broker!b8066", | ||
"uaadomain": "uaadomain.org", | ||
"url": "https://id-test-zone.uaadomain.org", | ||
"verificationkey": "-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAABBBQ8AMIIBCgKCAQEAx/jN5v1mp/TVn9nTQoYVIUfCsUDHa3Upr5tDZC7mzlTrN2PnwruzyS7w1Jd+StqwW4/vn87ua2YlZzU8Ob0jR4lbOPCKaHIi0kyNtJXQvQ7LZPG8epQLbx0IIP/WLVVVtB8bL5OWuHma3pUnibbmATtbOh5LksQ2zLMngEjUF52JQyzTpjoQkahp0BNe/drlAqO253keiY63FL6belKjJGmSqdnotSXxB2ym+HQ0ShaNvTFLEvi2+ObkyjGWgFpQaoCcGq0KX0y0mPzOvdFsNT+rBFdkHiK+Jl638Sbim1z9fItFbH9hiVwY37R9rLtH1YKi3PuATMjf/DJ7mUluDQIDAQAB-----END PUBLIC KEY-----", | ||
"xsappname": "xsuaa-broker!b8066" | ||
}, | ||
"instance_name": "xsuaa-broker", | ||
"label": "xsuaa", | ||
"name": "xsuaa-broker", | ||
"plan": "broker", | ||
"provider": null, | ||
"syslog_drain_url": null, | ||
"tags": [ | ||
"xsuaa" | ||
], | ||
"volume_mounts": [] | ||
}, | ||
{ | ||
"binding_name": null, | ||
"credentials": { | ||
"apiurl": "https://api.uaadomain.org", | ||
"clientid": "sb-na-d6a3278d-5e07-40e9-92ae-546bbfd9cdde!t8066", | ||
"clientsecret": "1idLRlbbb9oextvpmS6bfpQXLk=", | ||
"identityzone": "id-test-zone", | ||
"identityzoneid": "a179bf0f-5a57-2276-a3f0-94c6d79bd05b", | ||
"sburl": "https://internal-xsuaa.uaadomain.org", | ||
"tenantid": "a179bf0f-5a57-2276-a3f0-94c6d79bd05b", | ||
"tenantmode": "shared", | ||
"uaadomain": "uaadomain.org", | ||
"url": "https://id-test-zone.uaadomain.org", | ||
"verificationkey": "-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAABBBQ8AMIIBCgKCAQEAx/jN5v1mp/TVn9nTQoYVIUfCsUDHa3Upr5tDZC7mzlTrN2PnwruzyS7w1Jd+StqwW4/vn87ua2YlZzU8Ob0jR4lbOPCKaHIi0kyNtJXQvQ7LZPG8epQLbx0IIP/WLVVVtB8bL5OWuHma3pUnibbmATtbOh5LksQ2zLMngEjUF52JQyzTpjoQkahp0BNe/drlAqO253keiY63FL6belKjJGmSqdnotSXxB2ym+HQ0ShaNvTFLEvi2+ObkyjGWgFpQaoCcGq0KX0y0mPzOvdFsNT+rBFdkHiK+Jl638Sbim1z9fItFbH9hiVwY37R9rLtH1YKi3PuATMjf/DJ7mUluDQIDAQAB-----END PUBLIC KEY-----", | ||
"xsappname": "na-d6a3278d-5e07-40e9-92ae-546bbfd9cdde!t8066" | ||
}, | ||
"instance_name": "xsuaa-app", | ||
"label": "xsuaa", | ||
"name": "xsuaa-app", | ||
"plan": "application", | ||
"provider": null, | ||
"syslog_drain_url": null, | ||
"tags": [ | ||
"xsuaa" | ||
], | ||
"volume_mounts": [] | ||
}, | ||
{ | ||
"binding_name": null, | ||
"credentials": { | ||
"apiurl": "https://api2.uaadomain.org", | ||
"clientid": "sb-na-d6a3278d-5e07-40e9-92ae-546bbfd9cdde!t8067", | ||
"clientsecret": "1idLRlbbb9oextvpmS6bfpQXLk=", | ||
"identityzone": "id-test-zone", | ||
"identityzoneid": "a179bf0f-5a57-2276-a3f0-94c6d79bd05b", | ||
"sburl": "https://internal-xsuaa.uaadomain.org", | ||
"tenantid": "a179bf0f-5a57-2276-a3f0-94c6d79bd05b", | ||
"tenantmode": "shared", | ||
"uaadomain": "uaadomain.org", | ||
"url": "https://id-test-zone.uaadomain.org", | ||
"verificationkey": "-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAABBBQ8AMIIBCgKCAQEAx/jN5v1mp/TVn9nTQoYVIUfCsUDHa3Upr5tDZC7mzlTrN2PnwruzyS7w1Jd+StqwW4/vn87ua2YlZzU8Ob0jR4lbOPCKaHIi0kyNtJXQvQ7LZPG8epQLbx0IIP/WLVVVtB8bL5OWuHma3pUnibbmATtbOh5LksQ2zLMngEjUF52JQyzTpjoQkahp0BNe/drlAqO253keiY63FL6belKjJGmSqdnotSXxB2ym+HQ0ShaNvTFLEvi2+ObkyjGWgFpQaoCcGq0KX0y0mPzOvdFsNT+rBFdkHiK+Jl638Sbim1z9fItFbH9hiVwY37R9rLtH1YKi3PuATMjf/DJ7mUluDQIDAQAB-----END PUBLIC KEY-----", | ||
"xsappname": "na-d6a3278d-5e07-40e9-92ae-546bbfd9cdde!t8067" | ||
}, | ||
"instance_name": "xsuaa-app2", | ||
"label": "xsuaa", | ||
"name": "xsuaa-app2", | ||
"plan": "application", | ||
"provider": null, | ||
"syslog_drain_url": null, | ||
"tags": [ | ||
"xsuaa" | ||
], | ||
"volume_mounts": [] | ||
} | ||
] | ||
} |