feat: 🎸 Download latest HCP binary for worker config commands (#1680)
✅ Closes: ICU-7265
This commit is contained in:
1 parent
ffd36003e0
commit
3d1ac0a4e0
2 files changed
+24
-6
No files matched your search
@@ -118,8 +118,10 @@ ${listenerText}
|
||||
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" ;\\
|
||||
sudo apt-get update && sudo apt-get install boundary ;\\
|
||||
boundary server -config="${configPath}/pki-worker.hcl"`;
|
||||
const hcpContent = `wget -q https://releases.hashicorp.com/boundary-worker/0.12.0+hcp/boundary-worker_0.12.0+hcp_linux_amd64.zip ;\\
|
||||
sudo apt-get update && sudo apt-get install unzip ;\\
|
||||
|
||||
const hcpContent = `sudo apt-get update && sudo apt-get install jq unzip ;\\
|
||||
wget -q "$(curl -fsSL "https://api.releases.hashicorp.com/v1/releases/boundary-worker/latest?license_class=hcp" \
|
||||
| jq -r '.builds[] | select(.arch == "amd64" and .os == "linux") | .url')" ;\\
|
||||
unzip *.zip ;\\
|
||||
./boundary-worker server -config="${configPath}/pki-worker.hcl"`;
|
||||
|
||||
|
||||
@@ -69,8 +69,16 @@ module('Acceptance | workers | create', function (hooks) {
|
||||
await visit(newWorkerURL);
|
||||
const createSection = findAll('.worker-create-section');
|
||||
assert.false(featuresService.isEnabled('byow-pki-hcp-cluster-id'));
|
||||
assert.dom(createSection[1]).includesText('curl -fsSL');
|
||||
assert.dom(createSection[1]).doesNotIncludeText('wget -q');
|
||||
assert
|
||||
.dom(createSection[1])
|
||||
.includesText(
|
||||
'curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - ;'
|
||||
);
|
||||
assert
|
||||
.dom(createSection[1])
|
||||
.doesNotIncludeText(
|
||||
'wget -q "$(curl -fsSL "https://api.releases.hashicorp.com/v1/releases/boundary-worker/latest?license_class=hcp"'
|
||||
);
|
||||
});
|
||||
|
||||
test('download and install step shows correct hcp instructions', async function (assert) {
|
||||
@@ -79,8 +87,16 @@ module('Acceptance | workers | create', function (hooks) {
|
||||
featuresService.enable('byow-pki-hcp-cluster-id');
|
||||
await visit(newWorkerURL);
|
||||
const createSection = findAll('.worker-create-section');
|
||||
assert.dom(createSection[1]).includesText('wget -q');
|
||||
assert.dom(createSection[1]).doesNotIncludeText('curl -fsSL');
|
||||
assert
|
||||
.dom(createSection[1])
|
||||
.includesText(
|
||||
'wget -q "$(curl -fsSL "https://api.releases.hashicorp.com/v1/releases/boundary-worker/latest?license_class=hcp"'
|
||||
);
|
||||
assert
|
||||
.dom(createSection[1])
|
||||
.doesNotIncludeText(
|
||||
'curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - ;'
|
||||
);
|
||||
});
|
||||
|
||||
test('Users can navigate to new workers route with proper authorization', async function (assert) {
|
||||
|
||||
Reference in new issue
Block a user