|
276 | 276 | described_class.start_sync(
|
277 | 277 | group_name: "cluster1",
|
278 | 278 | schema_name: test_schema,
|
279 |
| - recreate_indices_post_copy: true, |
| 279 | + recreate_indices_post_copy: false, |
280 | 280 | )
|
281 | 281 |
|
282 | 282 | expect(pg_publications(connection_url: connection_url)).to eq(
|
|
304 | 304 | updated_at: kind_of(Time),
|
305 | 305 | failed_at: nil,
|
306 | 306 | table_names: "items,sellers",
|
307 |
| - recreate_indices_post_copy: true, |
| 307 | + recreate_indices_post_copy: false, |
308 | 308 | )
|
309 | 309 | end
|
310 | 310 |
|
|
318 | 318 | described_class.start_sync(
|
319 | 319 | group_name: "cluster1",
|
320 | 320 | schema_name: test_schema,
|
321 |
| - recreate_indices_post_copy: true, |
| 321 | + recreate_indices_post_copy: false, |
322 | 322 | )
|
323 | 323 | end.to raise_error(RuntimeError, "Starting sync failed: boo")
|
324 | 324 |
|
|
339 | 339 | PgEasyReplicate::Orchestrate.start_sync(
|
340 | 340 | group_name: "cluster1",
|
341 | 341 | schema_name: test_schema,
|
342 |
| - recreate_indices_post_copy: true, |
| 342 | + recreate_indices_post_copy: false, |
343 | 343 | )
|
344 | 344 | end
|
345 | 345 |
|
|
426 | 426 | described_class.start_sync(
|
427 | 427 | group_name: "cluster1",
|
428 | 428 | schema_name: test_schema,
|
429 |
| - recreate_indices_post_copy: true, |
| 429 | + recreate_indices_post_copy: false, |
430 | 430 | )
|
431 | 431 |
|
432 | 432 | expect(PgEasyReplicate::Group.find("cluster1")).to include(
|
|
439 | 439 | updated_at: kind_of(Time),
|
440 | 440 | failed_at: nil,
|
441 | 441 | table_names: "items,sellers",
|
442 |
| - recreate_indices_post_copy: true, |
| 442 | + recreate_indices_post_copy: false, |
443 | 443 | )
|
444 | 444 |
|
445 | 445 | conn1[:items].insert(name: "Foo2")
|
|
559 | 559 | described_class.start_sync(
|
560 | 560 | group_name: "cluster1",
|
561 | 561 | schema_name: test_schema,
|
562 |
| - recreate_indices_post_copy: true, |
| 562 | + recreate_indices_post_copy: false, |
563 | 563 | )
|
564 | 564 |
|
565 | 565 | conn1[:items].insert(name: "Foo2")
|
|
609 | 609 | group_name: "cluster1",
|
610 | 610 | schema_name: test_schema,
|
611 | 611 | exclude_tables: ["sellers"],
|
612 |
| - recreate_indices_post_copy: true, |
| 612 | + recreate_indices_post_copy: false, |
613 | 613 | )
|
614 | 614 |
|
615 | 615 | expect(PgEasyReplicate::Group.find("cluster1")).to include(
|
|
622 | 622 | updated_at: kind_of(Time),
|
623 | 623 | failed_at: nil,
|
624 | 624 | table_names: "items",
|
625 |
| - recreate_indices_post_copy: true, |
| 625 | + recreate_indices_post_copy: false, |
626 | 626 | )
|
627 | 627 |
|
628 | 628 | conn1[:items].insert(name: "Foo2")
|
|
726 | 726 | described_class.start_sync(
|
727 | 727 | group_name: "cluster1",
|
728 | 728 | schema_name: test_schema,
|
729 |
| - recreate_indices_post_copy: true, |
| 729 | + recreate_indices_post_copy: false, |
730 | 730 | )
|
731 | 731 |
|
732 | 732 | allow(described_class).to receive(:drop_subscription).and_raise(
|
|
795 | 795 | ENV["TARGET_DB_URL"] = target_connection_url
|
796 | 796 | end
|
797 | 797 |
|
798 |
| - it "succesfully raises lack of super user error" do |
| 798 | + it "successfully raises lack of super user error" do |
799 | 799 | conn1 =
|
800 | 800 | PgEasyReplicate::Query.connect(
|
801 | 801 | connection_url: connection_url("james-bond_role_regular"),
|
|
822 | 822 | described_class.start_sync(
|
823 | 823 | group_name: "cluster1",
|
824 | 824 | schema_name: test_schema,
|
825 |
| - recreate_indices_post_copy: true, |
| 825 | + recreate_indices_post_copy: false, |
826 | 826 | )
|
827 |
| - end.to raise_error(/Starting sync failed: PG::InsufficientPrivilege/) |
| 827 | + end.to raise_error(/PG::InsufficientPrivilege/) |
828 | 828 |
|
829 | 829 | # expect(PgEasyReplicate::Group.find("cluster1")).to include(
|
830 | 830 | # switchover_completed_at: nil,
|
|
904 | 904 | described_class.start_sync(
|
905 | 905 | group_name: "cluster1",
|
906 | 906 | schema_name: test_schema,
|
907 |
| - recreate_indices_post_copy: true, |
| 907 | + recreate_indices_post_copy: false, |
908 | 908 | exclude_tables: ["items"],
|
909 | 909 | )
|
910 | 910 |
|
|
931 | 931 | described_class.start_sync(
|
932 | 932 | group_name: "cluster1",
|
933 | 933 | schema_name: test_schema,
|
934 |
| - recreate_indices_post_copy: true, |
| 934 | + recreate_indices_post_copy: false, |
935 | 935 | )
|
936 | 936 |
|
937 | 937 | expect(PgEasyReplicate::Group.find("cluster1")).to include(
|
|
0 commit comments