fixtures.ts 635 B

1234567891011121314151617181920
  1. import { ClusterStats, NewSchemaSubject, SchemaType } from 'generated-sources';
  2. export const clusterStats: ClusterStats = {
  3. brokerCount: 1,
  4. zooKeeperStatus: 1,
  5. activeControllers: 1,
  6. onlinePartitionCount: 6,
  7. offlinePartitionCount: 0,
  8. inSyncReplicasCount: 6,
  9. outOfSyncReplicasCount: 0,
  10. underReplicatedPartitionCount: 0,
  11. diskUsage: [{ brokerId: 1, segmentSize: 6538, segmentCount: 6 }],
  12. };
  13. export const schemaPayload: NewSchemaSubject = {
  14. subject: 'NewSchema',
  15. schema:
  16. '{"type":"record","name":"MyRecord1","namespace":"com.mycompany","fields":[{"name":"id","type":"long"}]}',
  17. schemaType: SchemaType.JSON,
  18. };