mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
* Update mirage config * Update ember-cli-mirage and imports * bump ember-cli-mirage to latest * add lock file
26 lines
522 B
JavaScript
26 lines
522 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { Factory } from 'miragejs';
|
|
|
|
export default Factory.extend({
|
|
path: 'foo/',
|
|
description: 'secret-engine generated by mirage',
|
|
local: true,
|
|
sealWrap: true,
|
|
// set in afterCreate
|
|
accessor: 'type_7f52940',
|
|
type: 'kv',
|
|
options: null,
|
|
|
|
afterCreate(secretEngine) {
|
|
if (!secretEngine.options && ['generic', 'kv'].includes(secretEngine.type)) {
|
|
secretEngine.options = {
|
|
version: '2',
|
|
};
|
|
}
|
|
},
|
|
});
|