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
@@ -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