mirror of
https://github.com/google/nomulus
synced 2026-09-08 17:17:02 +00:00
Fix list_cursors command for globals (#1840)
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
package google.registry.tools;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static google.registry.testing.DatabaseHelper.createTld;
|
||||
import static google.registry.testing.DatabaseHelper.createTlds;
|
||||
import static google.registry.testing.DatabaseHelper.persistResource;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
@@ -41,6 +42,12 @@ public class ListCursorsCommandTest extends CommandTestCase<ListCursorsCommand>
|
||||
fakeClock.setTo(DateTime.parse("1984-12-21T06:07:08.789Z"));
|
||||
}
|
||||
|
||||
@Test
|
||||
void testlistCursors_globalScoped() throws Exception {
|
||||
createTld("com");
|
||||
runCommand("--type=RECURRING_BILLING");
|
||||
}
|
||||
|
||||
@Test
|
||||
void testListCursors_noTlds_printsNothing() throws Exception {
|
||||
runCommand("--type=BRDA");
|
||||
|
||||
Reference in New Issue
Block a user