open-vault/ui/mirage/factories/server.js
Jordan Reimer 7c7d626420
Raft peer removal bug (#13098)
* fixes issue removing raft peer via cli not reflected in UI until refresh

* adds changelog entry
2021-11-09 15:05:25 -07:00

11 lines
288 B
JavaScript

import { Factory } from 'ember-cli-mirage';
import faker from 'faker';
export default Factory.extend({
address: () => faker.internet.ip(),
node_id: i => `raft_node_${i}`,
protocol_version: '3',
voter: () => faker.datatype.boolean(),
leader: () => faker.datatype.boolean(),
});