-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previous to this commit, the integration tests used a very very old version of UAA (3.5.0) from an s3 bucket that needed Java 8. Updates to the integration Docker image that raised the JDK from 8->17 caused this very old version to explode. This commit represents a major refactoring of how UAA runs in the integration specs. * The UAA version now tracks the version in bosh-deployment * There is only 1 UAA started, as opposed to 1 per spec process * The UAA version is from uaa-release, and is templated accordingly Java upgrade PRs: * #2154 * #2515 * #2516 Co-authored-by: Aram Price <aram.price@broadcom.com> Co-authored-by: Chris Selzo <chris.selzo@broadcom.com>
- Loading branch information
1 parent
9e1e333
commit 45d7d16
Showing
12 changed files
with
446 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
require 'yaml' | ||
require 'json' | ||
require 'fileutils' | ||
require 'tmpdir' | ||
|
||
uaa_archive_path = ARGV[0] | ||
|
||
%w{ | ||
/var/vcap/sys/run/uaa | ||
/var/vcap/sys/log/uaa | ||
/var/vcap/data/tmp | ||
/var/vcap/data/uaa | ||
/var/vcap/data/uaa/cert-cache | ||
}.each {|path| FileUtils.mkdir_p path} | ||
|
||
installed_uaa_job_path = File.join('/', 'var', 'vcap', 'jobs', 'uaa') | ||
|
||
Dir.mktmpdir do |workspace| | ||
`tar xzf #{uaa_archive_path} -C #{workspace}` | ||
uaa_job_path = File.join(workspace, 'uaa') | ||
FileUtils.mkdir_p uaa_job_path | ||
`tar xzf #{File.join(workspace, 'jobs', 'uaa.tgz')} -C #{uaa_job_path}` | ||
uaa_job_spec_path = File.join(uaa_job_path, 'job.MF') | ||
job_spec = YAML.load_file(uaa_job_spec_path) | ||
job_spec['packages'].each do |package_name| | ||
package_path = File.join('/', 'var', 'vcap', 'packages', package_name) | ||
FileUtils.mkdir_p(package_path) | ||
`tar xzf #{File.join(workspace, 'compiled_packages', "#{package_name}.tgz")} -C #{package_path}` | ||
end | ||
context_path = File.join(workspace, 'context.json') | ||
context = { | ||
'default_properties' => job_spec['properties'].map { |key, value| [key, value['default']]}.to_h, | ||
'job_properties' => { | ||
'uaa' => { | ||
'allow_host_access': true, | ||
'debug_listen_address': '127.0.0.1:17013', | ||
'default_container_grace_time': '0', | ||
'destroy_containers_on_start': true, | ||
'graph_cleanup_threshold_in_mb': '0', | ||
'listen_address': '127.0.0.1:7777', | ||
'listen_network': 'tcp', | ||
} | ||
} | ||
} | ||
File.write(context_path, context.to_json) | ||
templates = job_spec['templates'] | ||
templates.each do |src, dst| | ||
src_path = File.join(uaa_job_path, 'templates', src) | ||
dest_path = File.join(installed_uaa_job_path, dst) | ||
FileUtils.mkdir_p(File.dirname(dest_path)) | ||
`ruby #{File.join(__dir__, 'template-renderer.rb')} #{context_path} #{src_path} #{dest_path}` | ||
end | ||
end | ||
|
||
`chmod +x #{File.join(installed_uaa_job_path, 'bin', '*')}` |
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 was deleted.
Oops, something went wrong.
18 changes: 13 additions & 5 deletions
18
src/bosh-dev/assets/sandbox/config_server/certs/jwtVerification.key
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
-----BEGIN PUBLIC KEY----- | ||
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/85WUjM7WKxnSMkd/TtGo+WWX | ||
kI5pH8ACBtb5oameiMJIw/wZ+dtyIwU+NZ0mKua+IzpGL1++bLJL0fDxE1LpD88j | ||
WzjaaTp8930UyY23oMxSa6JMG6OpDW469VTkY1g3uE/RAFtg7J9ZnDrTrMFJrduV | ||
VRs5sM3o4r1UYUTD6wIDAQAB | ||
-----END PUBLIC KEY----- | ||
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA06hlEn4/NMWtnele3C5j | ||
PZm3P55/9jppIQXF/BP0OGaAMoRNZEafv6nH1b8btc4zs0dx52Y7xmOpeRqnXDeD | ||
3E2uTW0tgjsLQU8BbjlXRrKkzvUiYZqkaCkCMxcX5OcBvhT4Km+/1u4AGuFq9sS2 | ||
Pdv+IAWEOsYbJjPl3lZn2uiQCCX5P5z5JkGbQ/7mBSi/ja1SogP1MBzRLf6VyHpE | ||
q7zvVnfm+oBsvPu2RC0EM14kL/TktQwyAvpL4TWunhE7gAh4j0fMNgmBfW9NG328 | ||
E2+i+1ag+WyFzSy0rJQHgV0ImEtjhmj0E0C1ysI4Fpy5gew0ZrtsFwnXcKV39xMS | ||
EG3JLzV3h+QZ4BS9nBi/G8lLF3bWO/B0WTuYDWdkLm1ng3K/Oz0KhVkVG5Igu9FD | ||
k6EkD62SsMYUMl++3/EMrtNxxvJQDSOOf59/o3BQplbl6qOG6Mpji3ZggxyRYgRS | ||
iC7PPqJAKYrP3zCzeXyQEMMYxuOcmRR3W6aY341v+9Hs4w+zNJZ2DnB+r6Jaqhpi | ||
sSiu1yzT0nzkesdv47UNLaTkt0fFMbnvkUSvtz3ZRK5MqVAgjBMULqobz5ASPPe0 | ||
RBg7V6023PHtyNxsJpxsobRG2aril4+7OOspiWSHIuoV1vm1IDs2utHak0GHY0Nc | ||
MBYj/GcsUXZhHBDbjHk07IsCAwEAAQ== | ||
-----END PUBLIC KEY----- |
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
Oops, something went wrong.