mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 14:54:51 +02:00
Make nomulus list_cursors command faster by batching loads
They're all in the same entity group anyway (the cross-TLD one), so they can be loaded in a single call instead of individually. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201364854
This commit is contained in:
parent
6f2e663b72
commit
a5cc359813
2 changed files with 30 additions and 29 deletions
|
@ -42,9 +42,7 @@ public class ListCursorsCommandTest extends CommandTestCase<ListCursorsCommand>
|
|||
Cursor.create(CursorType.BRDA, DateTime.parse("1984-12-18TZ"), Registry.get("bar")));
|
||||
runCommand("--type=BRDA");
|
||||
assertThat(getStdoutAsLines())
|
||||
.containsExactly(
|
||||
"1984-12-18T00:00:00.000Z bar",
|
||||
"absent foo")
|
||||
.containsExactly("(absent) foo", "1984-12-18T00:00:00.000Z bar")
|
||||
.inOrder();
|
||||
}
|
||||
|
||||
|
@ -65,6 +63,6 @@ public class ListCursorsCommandTest extends CommandTestCase<ListCursorsCommand>
|
|||
createTlds("foo", "bar");
|
||||
persistResource(Registry.get("bar").asBuilder().setEscrowEnabled(true).build());
|
||||
runCommand("--type=BRDA", "--escrow_enabled");
|
||||
assertThat(getStdoutAsLines()).containsExactly("absent bar");
|
||||
assertThat(getStdoutAsLines()).containsExactly("(absent) bar");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue