vault/ui/tests/unit/adapters/console-test.js
Vault Automation 0c6c13dd38
license: update headers to IBM Corp. (#10229) (#10233)
* license: update headers to IBM Corp.
* `make proto`
* update offset because source file changed

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2025-10-21 15:20:20 -06:00

20 lines
591 B
JavaScript

/**
* Copyright IBM Corp. 2016, 2025
* SPDX-License-Identifier: BUSL-1.1
*/
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Adapter | console', function (hooks) {
setupTest(hooks);
test('it builds the correct URL', function (assert) {
const adapter = this.owner.lookup('adapter:console');
const sysPath = 'sys/health';
const awsPath = 'aws/roles/my-other-role';
assert.strictEqual(adapter.buildURL(sysPath), '/v1/sys/health');
assert.strictEqual(adapter.buildURL(awsPath), '/v1/aws/roles/my-other-role');
});
});