mirror of
https://github.com/hashicorp/vault.git
synced 2025-09-01 03:51:08 +02:00
* adding columnify and ember-cli-cjs-transform * add yargs-parser * remove vendored yargs-parser tokenizer and use cjs transform to import it from actual yargs-parser * add clear command that clears the log, but maintains history * make codemirror have no gutter and be auto-height when rendered in the console output log * add fullscreen command and hook up fullscreen toggle button * hook up copy button
14 lines
481 B
JavaScript
14 lines
481 B
JavaScript
import { moduleFor, test } from 'ember-qunit';
|
|
|
|
moduleFor('adapter:console', 'Unit | Adapter | console', {
|
|
needs: ['service:auth', 'service:flash-messages', 'service:version'],
|
|
});
|
|
|
|
test('it builds the correct URL', function(assert) {
|
|
let adapter = this.subject();
|
|
let sysPath = 'sys/health';
|
|
let awsPath = 'aws/roles/my-other-role';
|
|
assert.equal(adapter.buildURL(sysPath), '/v1/sys/health');
|
|
assert.equal(adapter.buildURL(awsPath), '/v1/aws/roles/my-other-role');
|
|
});
|