Skip to content

Commit

Permalink
feat: add pod config and parent partitions ids to generate partitions (
Browse files Browse the repository at this point in the history
  • Loading branch information
ngruelaneo authored Jul 11, 2023
2 parents 2bc9d57 + 0eddaa1 commit 16239e7
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tools/mongodb/scripts/generate-partitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,18 @@ const partitionsNumber = 100;
for (let i = 0; i < partitionsNumber; i++) {
db.PartitionData.insertOne({
_id: faker.string.uuid(),
// TODO: Which value can be used here?
ParentPartitionIds: [],
// TODO: Which value can be used here?
PodConfiguration: null,
ParentPartitionIds: Array.from({
length: faker.number.int({
min: 1,
max: 10
})
}, () => faker.string.uuid()),
PodConfiguration: {
Configuration: {
verb: faker.hacker.verb(),
noun: faker.hacker.noun(),
}
},
PodMax: faker.number.int({
min: 20,
max: 100
Expand Down

0 comments on commit 16239e7

Please sign in to comment.