Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 018403469b8173755a0041ad01a19c1a91239d34
Merge: 38c4320 0a7ef74
Author: Chrissy LeMaire <[email protected]>
Date:   Thu Sep 21 14:03:16 2023 +0200

    Merge branch 'development' into pr/8958

commit 38c4320
Author: Jess Pomfret <[email protected]>
Date:   Mon Aug 21 15:03:41 2023 +0100

    remove force add tags

commit d27969c
Author: Jess Pomfret <[email protected]>
Date:   Mon Aug 21 14:52:07 2023 +0100

    remove one enableexception option

commit b577aee
Author: Jess Pomfret <[email protected]>
Date:   Mon Aug 21 14:23:16 2023 +0100

    but not for jobs.. this is just best effort

commit 9d8f2f6
Author: Jess Pomfret <[email protected]>
Date:   Mon Aug 21 13:47:36 2023 +0100

    ensure enableexception is passed through

commit cb0c1d9
Author: Jess Pomfret <[email protected]>
Date:   Wed Aug 9 12:23:09 2023 +0100

    don't output killing

commit 6acc361
Author: Jess Pomfret <[email protected]>
Date:   Wed Aug 9 12:21:07 2023 +0100

    change to high impact

commit b21cea5
Author: Jess Pomfret <[email protected]>
Date:   Wed Aug 9 12:20:05 2023 +0100

    always stop job (it'll restart)

commit 2051a6b
Author: Jess Pomfret <[email protected]>
Date:   Wed Aug 9 12:08:03 2023 +0100

    better error handling

commit 2eae1d5
Author: Jess Pomfret <[email protected]>
Date:   Wed Aug 9 11:10:17 2023 +0100

    conditions are hard

commit 3c5c254
Author: Jess Pomfret <[email protected]>
Date:   Wed Aug 9 11:05:03 2023 +0100

    not dbo schema

commit 946ab83
Author: Jess Pomfret <[email protected]>
Date:   Wed Aug 9 11:02:11 2023 +0100

    set output to null when creating new schema

commit 966f56f
Author: Jess Pomfret <[email protected]>
Date:   Wed Aug 9 11:00:42 2023 +0100

    param name incorrect

commit 7ac55a5
Author: Jess Pomfret <[email protected]>
Date:   Wed Aug 9 10:53:29 2023 +0100

    create sub schema if it doesn't exist

commit 59c2228
Author: Jess Pomfret <[email protected]>
Date:   Wed Aug 9 09:18:28 2023 +0100

    schema missed a file

commit 1995e72
Author: Jess Pomfret <[email protected]>
Date:   Wed Aug 9 09:12:47 2023 +0100

    add schema to Get articles

commit 8d00ef7
Author: Jess Pomfret <[email protected]>
Date:   Tue Aug 1 15:03:56 2023 +0100

    fix test

commit 14863f0
Author: Jess Pomfret <[email protected]>
Date:   Tue Aug 1 14:31:09 2023 +0100

    note about pull subs

commit 5857426
Author: Jess Pomfret <[email protected]>
Date:   Mon Jul 31 15:32:33 2023 +0100

    add tests for subscriptions

commit 85930c3
Author: Jess Pomfret <[email protected]>
Date:   Mon Jul 31 15:32:09 2023 +0100

    remove dupe param name

commit 635e4cd
Author: Jess Pomfret <[email protected]>
Date:   Fri Jul 28 13:10:53 2023 +0100

    formatter

commit 4f8f224
Author: Jess Pomfret <[email protected]>
Date:   Fri Jul 21 16:47:55 2023 +0100

    swap sqlinstance around to publisher for subscription commands

commit d6ec1ab
Author: Jess Pomfret <[email protected]>
Date:   Fri Jul 14 19:02:19 2023 +0100

    couple of fixes for subscriptions

commit 5fb6e58
Author: Jess Pomfret <[email protected]>
Date:   Wed Jul 12 16:19:57 2023 +0100

    capital letters

commit 54bd532
Author: Jess Pomfret <[email protected]>
Date:   Wed Jul 12 16:19:48 2023 +0100

    add some params for filterign

commit 5242d09
Author: Jess Pomfret <[email protected]>
Date:   Wed Jul 12 15:49:57 2023 +0100

    Update public/Get-DbaReplSubscription.ps1

    Co-authored-by: Shawn Melton <[email protected]>

commit 0f3c4a6
Author: Jess Pomfret <[email protected]>
Date:   Wed Jul 12 15:45:51 2023 +0100

    improve help for new sub

commit 1d907d5
Author: Jess Pomfret <[email protected]>
Date:   Fri Jul 7 16:21:33 2023 +0100

    wip remove-replsub

commit 9b09acd
Author: Jess Pomfret <[email protected]>
Date:   Fri Jul 7 16:21:23 2023 +0100

    should we use the sqlinstance object so piping works

commit 0e0b21c
Author: Jess Pomfret <[email protected]>
Date:   Fri Jul 7 16:21:02 2023 +0100

    add examples

commit e90cf4a
Author: Jess Pomfret <[email protected]>
Date:   Fri Jul 7 16:20:51 2023 +0100

    bug when there aren't subscriptiosns

commit 681a137
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 14:56:12 2023 +0100

    improve confirm messaging for disable commands

commit 068981b
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 14:25:20 2023 +0100

    format doc

commit 44be61e
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 14:22:14 2023 +0100

    add props to mocked objects

commit 4e88ff9
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 13:06:24 2023 +0100

    change serverconnection standard message

commit 885ec50
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 13:05:36 2023 +0100

    review fixes

commit 79bcaed
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 12:44:02 2023 +0100

    changes from review

commit b1ae839
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 12:32:11 2023 +0100

    fix review, make whatif more verbose

commit ac8d20b
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 10:13:34 2023 +0100

    review fixes

commit 30bc26b
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 10:12:18 2023 +0100

    working on reviwe

commit fba4040
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 09:55:34 2023 +0100

    remove try\ catch for get

commit f93ee70
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 09:51:05 2023 +0100

    split try catch into more sections

commit 103b334
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 09:48:34 2023 +0100

    move filter like where to top

commit 7cbd2db
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 09:44:52 2023 +0100

    improve whatif messaging

commit ae3b02d
Merge: 6fcdae8 8f6e6ae
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 09:32:39 2023 +0100

    Merge branch 'dmm' of https://github.com/Data-Masterminds/dbatools into dmm

commit 8f6e6ae
Author: Jess Pomfret <[email protected]>
Date:   Thu Jul 6 09:32:01 2023 +0100

    Update public/Add-DbaReplArticle.ps1

    Co-authored-by: Shawn Melton <[email protected]>

commit 6fcdae8
Author: Jess Pomfret <[email protected]>
Date:   Tue Jul 4 15:20:04 2023 +0100

    fix for pull sub

commit d446664
Author: Jess Pomfret <[email protected]>
Date:   Tue Jul 4 15:19:43 2023 +0100

    responding to review comments. thanks!

commit c35829e
Author: Jess Pomfret <[email protected]>
Date:   Tue Jul 4 14:46:47 2023 +0100

    Update public/Disable-DbaReplPublishing.ps1

    Co-authored-by: Shawn Melton <[email protected]>

commit 6d9944f
Merge: 373cd37 340455a
Author: Jess Pomfret <[email protected]>
Date:   Sun Jun 18 17:37:42 2023 +0100

    Merge branch 'dmm' of https://github.com/Data-Masterminds/dbatools into dmm

commit 340455a
Author: Jess Pomfret <[email protected]>
Date:   Sun Jun 18 17:36:34 2023 +0100

    Apply suggestions from code review

    Co-authored-by: Shawn Melton <[email protected]>

commit 373cd37
Author: Jess Pomfret <[email protected]>
Date:   Sun Jun 18 17:28:59 2023 +0100

    moved to be issue #8995

commit 3da4ac4
Author: Jess Pomfret <[email protected]>
Date:   Sun Jun 18 17:28:39 2023 +0100

    remove unneeded test setup files

commit e20eab1
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 8 15:05:48 2023 +0100

    too many dlls

commit 3fcf91b
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 8 14:09:08 2023 +0100

    ghaction test failure

commit e39637e
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 8 12:48:33 2023 +0100

    variables and scopes oh my

commit 09e6517
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 8 12:43:29 2023 +0100

    fixing some tests

commit afabc0a
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 8 12:03:58 2023 +0100

    change tests to Tests

commit 5a5edfb
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 8 11:48:46 2023 +0100

    change to psobject with a check

commit 5a83896
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 8 10:46:10 2023 +0100

    add unit tests

commit 61404d7
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 8 10:27:45 2023 +0100

    rename test files

commit 69c2558
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 8 09:56:40 2023 +0100

    formatting

commit a93d17c
Merge: 243b1a1 ea5db60
Author: Jess Pomfret <[email protected]>
Date:   Tue Jun 6 20:12:36 2023 +0100

    Merge branch 'dmm' of https://github.com/Data-Masterminds/dbatools into dmm

commit 243b1a1
Author: Jess Pomfret <[email protected]>
Date:   Tue Jun 6 20:07:19 2023 +0100

    tests

commit 1d72564
Author: Jess Pomfret <[email protected]>
Date:   Tue Jun 6 20:07:04 2023 +0100

    fix piping issue

commit 5403577
Author: Jess Pomfret <[email protected]>
Date:   Tue Jun 6 20:05:44 2023 +0100

    sort out piping

commit e90fcfa
Author: Jess Pomfret <[email protected]>
Date:   Mon Jun 5 13:39:08 2023 +0100

    change publicationname --> name

commit 2ce1c17
Author: Jess Pomfret <[email protected]>
Date:   Mon Jun 5 13:38:23 2023 +0100

    change to allow piping

commit 52f0163
Author: Jess Pomfret <[email protected]>
Date:   Mon Jun 5 11:07:01 2023 +0100

    add note about ReplicationDatabases property

commit c9f7fa3
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 16:46:11 2023 +0100

    tests

commit 84f4fca
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 16:46:04 2023 +0100

    spacing and year

commit 4af3054
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 16:45:43 2023 +0100

    add get-replsubscription

commit 675383c
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 12:50:46 2023 +0100

    remove hard coded default for snapshot

commit 8093aaf
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 11:50:55 2023 +0100

    added tests

commit ac58040
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 11:50:48 2023 +0100

    add check for publishing and log reader job not for merge

commit 675fb91
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 11:50:32 2023 +0100

    tidy help

commit 245aecb
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 10:50:47 2023 +0100

    tidy help and examples

commit 3a78f7f
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 10:43:37 2023 +0100

    more examples, cleaned up help

commit 608fc9e
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 10:32:49 2023 +0100

    typos

commit 1b2ddc3
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 10:29:02 2023 +0100

    spelling word added

commit fb934e0
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 10:28:10 2023 +0100

    remove a bug with piping

commit 8c62889
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 10:28:02 2023 +0100

    add examples, tidy up

commit d6793d8
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 10:27:35 2023 +0100

    add more Add-DbaReplArticle tests

commit b393e20
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 12:16:18 2023 +0100

    tests

commit b78d274
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 12:04:07 2023 +0100

    fixed now?

commit 72beb49
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 11:53:03 2023 +0100

    add logging

commit 0d6af7d
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 11:44:45 2023 +0100

    test fix

commit e8ce7ec
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 11:39:11 2023 +0100

    more tests

commit 86cd0f6
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 11:39:06 2023 +0100

    enable piping and tidy up

commit 79809d3
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 11:38:55 2023 +0100

    remove write-message and fix bug with publication output

commit 72bd797
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 11:38:28 2023 +0100

    add url

commit 276f0e9
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 11:15:54 2023 +0100

    RefreshSubscriptions not a thing for merge

commit bab88ef
Author: Jess Pomfret <[email protected]>
Date:   Wed May 31 15:10:24 2023 +0100

    fixes for remove article

commit 3467134
Author: Jess Pomfret <[email protected]>
Date:   Tue May 30 17:29:43 2023 +0100

    remove comment

commit ac484f8
Author: Jess Pomfret <[email protected]>
Date:   Tue May 30 17:29:38 2023 +0100

    new command New-DbaReplCreationScriptOptions

commit 657fad0
Author: Jess Pomfret <[email protected]>
Date:   Fri May 26 17:05:50 2023 +0100

    stuff

commit 4052ea7
Author: Jess Pomfret <[email protected]>
Date:   Fri May 26 17:05:44 2023 +0100

    new tests

commit 2f65401
Author: Jess Pomfret <[email protected]>
Date:   Fri May 26 17:05:36 2023 +0100

    updates

commit b74083d
Author: Jess Pomfret <[email protected]>
Date:   Thu May 18 16:18:26 2023 +0100

    remove SupportsShouldProcess on get

commit 4905cd0
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 09:43:20 2023 +0100

    psf --> just message

commit e728f98
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 09:39:42 2023 +0100

    testy tests

commit d033262
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 09:24:35 2023 +0100

    change module to cache for library

commit 0971580
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 09:10:58 2023 +0100

    repl psd\psm changes

commit f41482e
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 08:57:46 2023 +0100

    psm1\psd1 merging

commit b3c83c7
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 08:54:08 2023 +0100

    testing notes

commit 3c39b99
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 08:53:54 2023 +0100

    function stub

commit f3256f8
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 08:41:29 2023 +0100

    bug fuix

commit 36e2b12
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 08:40:57 2023 +0100

    add todo

commit e92629b
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 08:40:35 2023 +0100

    add snapshot support

commit ab159ee
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 08:39:30 2023 +0100

    add tests

commit 714c923
Author: ClaudioESSilva <[email protected]>
Date:   Thu May 4 08:43:24 2023 +0100

    So the local tests works

commit 6096a6d
Author: ClaudioESSilva <[email protected]>
Date:   Mon Apr 24 15:46:58 2023 +0100

    Change parameters name

commit 1a07c2c
Author: ClaudioESSilva <[email protected]>
Date:   Mon Apr 24 15:33:32 2023 +0100

    Add PublicationName property

commit 0f352c9
Author: ClaudioESSilva <[email protected]>
Date:   Mon Apr 24 15:30:37 2023 +0100

    Fix property name & Change validation order

commit 0315ea9
Author: ClaudioESSilva <[email protected]>
Date:   Mon Apr 24 15:29:56 2023 +0100

    Added TODO why articles not appear in specific condition

commit 641b99c
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 13 14:39:34 2023 +0100

    fix issue causing test failure

commit 836fe4d
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 13:49:33 2023 +0100

    remove hard coded localhost

commit 595f55a
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 13:46:45 2023 +0100

    right name

commit 56cc426
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 13:42:50 2023 +0100

    use hostname

commit d5a01b0
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 11:01:34 2023 +0100

    verbose

commit 8302e90
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 10:58:10 2023 +0100

    no null

commit 67ddcd6
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 10:51:20 2023 +0100

    writewarning

commit 1d6abd2
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 10:42:49 2023 +0100

    test

commit 5414007
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 10:38:11 2023 +0100

    verbose

commit 4c97b4d
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 10:20:06 2023 +0100

    tests

commit 7c185c8
Author: Jess Pomfret <[email protected]>
Date:   Fri Mar 31 17:16:17 2023 +0100

    working

commit a989f1a
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 23 16:16:47 2023 +0000

    change pubtype --> type

commit d821c84
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 23 16:15:54 2023 +0000

    change publicationtype --> type

commit a8bd41a
Author: Jess Pomfret <[email protected]>
Date:   Fri Feb 17 13:48:49 2023 +0000

    add support for merge and snapshot

commit 867e9e2
Author: Jess Pomfret <[email protected]>
Date:   Fri Feb 17 13:47:49 2023 +0000

    add name to get-dbareplpublication

commit 23b9d41
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 15:05:13 2023 +0000

    debug

commit 39c92c7
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 14:45:48 2023 +0000

    rename

commit 6bccfa0
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 14:44:31 2023 +0000

    Swap order of pub dist

commit 1d18209
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 14:32:58 2023 +0000

    update wf

commit dd55165
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 14:01:26 2023 +0000

    psd1\psm1 merging

commit 2db7fa4
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 11:51:47 2023 +0000

    functions

commit f3827f8
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 11:51:39 2023 +0000

    tests

commit 162a7c0
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 11:51:23 2023 +0000

    repl testing

commit ea5db60
Author: Jess Pomfret <[email protected]>
Date:   Tue Jun 6 20:07:19 2023 +0100

    tests

commit d187ed8
Author: Jess Pomfret <[email protected]>
Date:   Tue Jun 6 20:07:04 2023 +0100

    fix piping issue

commit 199f6da
Author: Jess Pomfret <[email protected]>
Date:   Tue Jun 6 20:05:44 2023 +0100

    sort out piping

commit ba418b6
Author: Jess Pomfret <[email protected]>
Date:   Mon Jun 5 13:39:08 2023 +0100

    change publicationname --> name

commit c77d0e6
Author: Jess Pomfret <[email protected]>
Date:   Mon Jun 5 13:38:23 2023 +0100

    change to allow piping

commit 2290aa1
Author: Jess Pomfret <[email protected]>
Date:   Mon Jun 5 11:07:01 2023 +0100

    add note about ReplicationDatabases property

commit 534b784
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 16:46:11 2023 +0100

    tests

commit 2d7bd48
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 16:46:04 2023 +0100

    spacing and year

commit 5123bc7
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 16:45:43 2023 +0100

    add get-replsubscription

commit e3bed4d
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 12:50:46 2023 +0100

    remove hard coded default for snapshot

commit 49466d4
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 11:50:55 2023 +0100

    added tests

commit 4ac31a0
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 11:50:48 2023 +0100

    add check for publishing and log reader job not for merge

commit abf06fe
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 11:50:32 2023 +0100

    tidy help

commit d394731
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 10:50:47 2023 +0100

    tidy help and examples

commit d46362b
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 10:43:37 2023 +0100

    more examples, cleaned up help

commit aab5a3c
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 10:32:49 2023 +0100

    typos

commit 4a7a43e
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 10:29:02 2023 +0100

    spelling word added

commit f840f89
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 10:28:10 2023 +0100

    remove a bug with piping

commit 150cf81
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 10:28:02 2023 +0100

    add examples, tidy up

commit dc1af86
Author: Jess Pomfret <[email protected]>
Date:   Fri Jun 2 10:27:35 2023 +0100

    add more Add-DbaReplArticle tests

commit 572a038
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 12:16:18 2023 +0100

    tests

commit 69aedd0
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 12:04:07 2023 +0100

    fixed now?

commit 97a395b
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 11:53:03 2023 +0100

    add logging

commit 8eb4d6d
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 11:44:45 2023 +0100

    test fix

commit c3fa99a
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 11:39:11 2023 +0100

    more tests

commit 5c26828
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 11:39:06 2023 +0100

    enable piping and tidy up

commit eff3db3
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 11:38:55 2023 +0100

    remove write-message and fix bug with publication output

commit 715da5b
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 11:38:28 2023 +0100

    add url

commit c3ca117
Author: Jess Pomfret <[email protected]>
Date:   Thu Jun 1 11:15:54 2023 +0100

    RefreshSubscriptions not a thing for merge

commit df229cf
Author: Jess Pomfret <[email protected]>
Date:   Wed May 31 15:10:24 2023 +0100

    fixes for remove article

commit 7461786
Author: Jess Pomfret <[email protected]>
Date:   Tue May 30 17:29:43 2023 +0100

    remove comment

commit 6cf3455
Author: Jess Pomfret <[email protected]>
Date:   Tue May 30 17:29:38 2023 +0100

    new command New-DbaReplCreationScriptOptions

commit 8300876
Author: Jess Pomfret <[email protected]>
Date:   Fri May 26 17:05:50 2023 +0100

    stuff

commit 89094f9
Author: Jess Pomfret <[email protected]>
Date:   Fri May 26 17:05:44 2023 +0100

    new tests

commit 52038ec
Author: Jess Pomfret <[email protected]>
Date:   Fri May 26 17:05:36 2023 +0100

    updates

commit 87e9e7e
Author: Jess Pomfret <[email protected]>
Date:   Thu May 18 16:18:26 2023 +0100

    remove SupportsShouldProcess on get

commit be4943a
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 09:43:20 2023 +0100

    psf --> just message

commit 9493830
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 09:39:42 2023 +0100

    testy tests

commit 0793003
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 09:24:35 2023 +0100

    change module to cache for library

commit b0164fe
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 09:10:58 2023 +0100

    repl psd\psm changes

commit bf95f38
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 08:57:46 2023 +0100

    psm1\psd1 merging

commit 6e1f2b6
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 08:54:08 2023 +0100

    testing notes

commit 0cc9aee
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 08:53:54 2023 +0100

    function stub

commit f3ddd68
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 08:41:29 2023 +0100

    bug fuix

commit 54a5e84
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 08:40:57 2023 +0100

    add todo

commit 58d2213
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 08:40:35 2023 +0100

    add snapshot support

commit c57ed81
Author: Jess Pomfret <[email protected]>
Date:   Tue May 16 08:39:30 2023 +0100

    add tests

commit fbae7cb
Author: ClaudioESSilva <[email protected]>
Date:   Thu May 4 08:43:24 2023 +0100

    So the local tests works

commit 7c61e5c
Author: ClaudioESSilva <[email protected]>
Date:   Mon Apr 24 15:46:58 2023 +0100

    Change parameters name

commit ea1500f
Author: ClaudioESSilva <[email protected]>
Date:   Mon Apr 24 15:33:32 2023 +0100

    Add PublicationName property

commit 6384490
Author: ClaudioESSilva <[email protected]>
Date:   Mon Apr 24 15:30:37 2023 +0100

    Fix property name & Change validation order

commit fc4088e
Author: ClaudioESSilva <[email protected]>
Date:   Mon Apr 24 15:29:56 2023 +0100

    Added TODO why articles not appear in specific condition

commit ed4e19f
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 13 14:39:34 2023 +0100

    fix issue causing test failure

commit e2ff595
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 13:49:33 2023 +0100

    remove hard coded localhost

commit 30a1bfd
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 13:46:45 2023 +0100

    right name

commit 660304a
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 13:42:50 2023 +0100

    use hostname

commit 5351d1e
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 11:01:34 2023 +0100

    verbose

commit 3c19467
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 10:58:10 2023 +0100

    no null

commit 0781876
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 10:51:20 2023 +0100

    writewarning

commit 40bba9b
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 10:42:49 2023 +0100

    test

commit b24c290
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 10:38:11 2023 +0100

    verbose

commit a574a76
Author: Jess Pomfret <[email protected]>
Date:   Thu Apr 6 10:20:06 2023 +0100

    tests

commit 3492bea
Author: Jess Pomfret <[email protected]>
Date:   Fri Mar 31 17:16:17 2023 +0100

    working

commit 9bf954c
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 23 16:16:47 2023 +0000

    change pubtype --> type

commit 7263dfd
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 23 16:15:54 2023 +0000

    change publicationtype --> type

commit 87001ee
Author: Jess Pomfret <[email protected]>
Date:   Fri Feb 17 13:48:49 2023 +0000

    add support for merge and snapshot

commit b4ed664
Author: Jess Pomfret <[email protected]>
Date:   Fri Feb 17 13:47:49 2023 +0000

    add name to get-dbareplpublication

commit dc96c0e
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 15:05:13 2023 +0000

    debug

commit d22510f
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 14:45:48 2023 +0000

    rename

commit 39914f8
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 14:44:31 2023 +0000

    Swap order of pub dist

commit dd981d6
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 14:32:58 2023 +0000

    update wf

commit 11f5682
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 14:01:26 2023 +0000

    psd1\psm1 merging

commit b778e4b
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 11:51:47 2023 +0000

    functions

commit b18ea53
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 11:51:39 2023 +0000

    tests

commit d6f902a
Author: Jess Pomfret <[email protected]>
Date:   Thu Feb 16 11:51:23 2023 +0000

    repl testing
  • Loading branch information
potatoqualitee committed Sep 21, 2023
1 parent 0a7ef74 commit c7b66fc
Show file tree
Hide file tree
Showing 50 changed files with 4,013 additions and 197 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/integration-tests-repl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Run Replication Tests
on: [push]
defaults:
run:
shell: pwsh
jobs:
linux-tests:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

steps:
- uses: actions/checkout@v3

- name: Install and cache PowerShell modules
uses: potatoqualitee/[email protected]
with:
modules-to-cache: dbatools.library:2023.5.5

- name: Set encryption values
run: |
Import-Module ./dbatools.psd1 -Force
Set-DbatoolsConfig -FullName sql.connection.trustcert -Value $true -Register
Set-DbatoolsConfig -FullName sql.connection.encrypt -Value Optional -Register
Get-DbatoolsConfigValue -FullName sql.connection.encrypt | Write-Warning
- name: Setup docker images
run: |
# create a shared network
docker network create localnet
# Expose engine and endpoint then setup a shared path for migrations
docker run -p 1433:1433 --volume shared:/shared:z --name mssql1 --hostname mssql1 --network localnet -d dbatools/sqlinstance
# Expose second engine and endpoint on different port
docker run -p 14333:1433 --volume shared:/shared:z --name mssql2 --hostname mssql2 --network localnet -d dbatools/sqlinstance2
- name: Add hostname to hosts file
run: |
echo "127.0.0.1 mssql1 mssql2" | sudo tee -a /etc/hosts
- name: 👥 Clone appveyor repo
working-directory: /tmp
run: |
gh repo clone dataplat/appveyor-lab
- name: Setup Replication
run: |
Import-Module ./dbatools.psd1 -Force
# need some folders for our repl stuff
docker exec mssql1 mkdir /shared/data /shared/repldata /var/opt/mssql/ReplData
- name: Run tests
run: |
Import-Module ./dbatools.psd1 -Force
Get-DbatoolsConfigValue -FullName sql.connection.trustcert | Write-Warning
Get-DbatoolsConfigValue -FullName sql.connection.encrypt | Write-Warning
$null = Invoke-Pester ./tests/gh-actions-repl.ps1 -Output Detailed -PassThru -Verbose
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"Kokkinos",
"Kravtsov",
"Mikey",
"mssql",
"nchar",
"niphlod",
"ntext",
Expand Down
99 changes: 99 additions & 0 deletions ReplicationDemo.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# dbatools 💜 dbatools

##############################
# create docker environment
##############################
# create a shared network
docker network create localnet

# Expose engines and setup shared path for migrations
docker run -p 2500:1433 --volume shared:/shared:z --name mssql1 --hostname mssql1 --network localnet -d dbatools/sqlinstance
docker run -p 2600:1433 --volume shared:/shared:z --name mssql2 --hostname mssql2 --network localnet -d dbatools/sqlinstance2

# create the repl folder
docker exec mssql1 mkdir /var/opt/mssql/ReplData

# also need these folders for setting up replication
docker exec mssql1 mkdir /shared/data /shared/repldata

##############################

# import out version of the module
cd C:\GitHub\DMM-GitHub\dbatools
Import-Module .\dbatools.psd1

# lets save the password for connecting to containers because I'm lazy
$securePassword = ('dbatools.IO' | ConvertTo-SecureString -AsPlainText -Force)
$credential = New-Object System.Management.Automation.PSCredential('sqladmin', $securePassword)

$PSDefaultParameterValues = @{
"*:SqlCredential" = $credential
"*:DestinationCredential" = $credential
"*:DestinationSqlCredential" = $credential
"*:SourceSqlCredential" = $credential
"*:PublisherSqlCredential" = $credential
}

# what do we have so far
Get-DbaReplServer -SqlInstance mssql1
Get-DbaReplDistributor -SqlInstance mssql1
Get-DbaReplPublisher -SqlInstance mssql1

# enable distribution
Enable-DbaReplDistributor -SqlInstance mssql1

# enable publishing
Enable-DbaReplPublishing -SqlInstance mssql1

# create a transactional publication using splat format
$pub = @{
SqlInstance = 'mssql1'
Database = 'pubs'
PublicationName = 'testPub'
Type = 'Transactional'
}
New-DbaReplPublication @pub

# add an article to the publication
$article = @{
SqlInstance = 'mssql1'
Database = 'pubs'
PublicationName = 'testpub'
Name = 'authors'
}
Add-DbaReplArticle @article

# create a pubs database on mssql2 to replicate to
New-DbaDatabase -SqlInstance mssql2 -Name pubs

# if you don't the New-DbaReplSubscription command will create the database for you

# add a subscription to the publication
$sub = @{
SqlInstance = 'mssql2'
Database = 'pubs'
PublicationDatabase = 'pubs'
PublisherSqlInstance = 'mssql1'
PublicationName = 'testpub'
Type = 'Push'
SubscriptionSqlCredential = $credential

}
New-DbaReplSubscription @sub

# creates the snapshot job with a daily schedule at 8am - is that expected? good default?
# should adding a subscription kick off snapshot? should that be an param -StartSnapshotNow -- yes
# create that without a schedule by default maybe a param for a schedule
#

# stats on the subscription - in the distribution database
# could we make a command to get stats





## when adding an article - we need the options
# - action if name is in use 'drop existing object and create new'
# copy nonclusterd indexes
# nuno
42 changes: 35 additions & 7 deletions dbatools.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
'Export-DbaLogin',
'Export-DbaPfDataCollectorSetTemplate',
'Export-DbaRegServer',
'Export-DbaRepServerSetting',
'Export-DbaReplServerSetting',
'Export-DbaScript',
'Export-DbaServerRole',
'Export-DbaSpConfigure',
Expand Down Expand Up @@ -350,9 +350,10 @@
'Get-DbaRegServer',
'Get-DbaRegServerGroup',
'Get-DbaRegServerStore',
'Get-DbaRepDistributor',
'Get-DbaRepPublication',
'Get-DbaRepServer',
'Get-DbaReplDistributor',
'Get-DbaReplPublication',
'Get-DbaReplPublisher',
'Get-DbaReplServer',
'Get-DbaResourceGovernor',
'Get-DbaRgClassifierFunction',
'Get-DbaRgResourcePool',
Expand Down Expand Up @@ -693,7 +694,7 @@
'Test-DbaOptimizeForAdHoc',
'Test-DbaPath',
'Test-DbaPowerPlan',
'Test-DbaRepLatency',
'Test-DbaReplLatency',
'Test-DbaSpn',
'Test-DbaTempDbConfig',
'Test-DbaWindowsLogin',
Expand Down Expand Up @@ -728,7 +729,23 @@
'New-DbaLinkedServerLogin',
'Remove-DbaLinkedServerLogin',
'Remove-DbaCredential',
'Remove-DbaAgentProxy'
'Remove-DbaAgentProxy',

# NEW REPLICATION STUFF
'Disable-DbaReplDistributor',
'Enable-DbaReplDistributor',
'Disable-DbaReplPublishing',
'Enable-DbaReplPublishing',
'New-DbaReplPublication',
'Get-DbaReplArticle',
'Get-DbaReplArticleColumn',
'Add-DbaReplArticle',
'Remove-DbaReplArticle',
'Remove-DbaReplPublication',
'New-DbaReplSubscription',
'Remove-DbaReplSubscription',
'New-DbaReplCreationScriptOptions',
'Get-DbaReplSubscription'
)

# Cmdlets to export from this module
Expand All @@ -751,9 +768,20 @@
'Write-DbaDataTable',
'Get-DbaDbModule',
'Get-DbaBuildReference',
'Copy-DbaSysDbUserObject'
'Copy-DbaSysDbUserObject',

# replication aliases - these existed before the repl overhaul in 2.0+
'Get-DbaRepServer',
'Export-DbaRepServerSetting',
'Get-DbaRepDistributor',
'Test-DbaRepLatency',
'Get-DbaRepDistributor',
'Get-DbaRepPublication',
'Get-DbaRepServer'

)


# List of all modules packaged with this module
ModuleList = @()

Expand Down
22 changes: 17 additions & 5 deletions dbatools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,18 @@ $forever = @{
foreach ($_ in $forever.GetEnumerator()) {
Set-Alias -Name $_.Key -Value $_.Value
}

# Replication Aliases
$replAliases = @{
'Get-DbaRepServer' = 'Get-DbaReplServer'
'Export-DbaRepServerSetting' = 'Export-DbaReplServerSetting'
'Get-DbaRepDistributor' = 'Get-DbaReplDistributor'
'Test-DbaRepLatency' = 'Test-DbaReplLatency'
'Get-DbaRepPublication' = 'Get-DbaReplPublication'
}
foreach ($_ in $replAliases.GetEnumerator()) {
Set-Alias -Name $_.Key -Value $_.Value
}
#endregion Aliases

# apparently this is no longer required? :O
Expand Down Expand Up @@ -846,7 +858,7 @@ if ($PSVersionTable.PSVersion.Major -lt 5) {
)
$script:noncoresmo = @(
# SMO issues
'Get-DbaRepDistributor',
'Get-DbaReplDistributor',
'Copy-DbaPolicyManagement',
'Copy-DbaDataCollector',
'Get-DbaPbmCategory',
Expand All @@ -855,10 +867,10 @@ if ($PSVersionTable.PSVersion.Major -lt 5) {
'Get-DbaPbmObjectSet',
'Get-DbaPbmPolicy',
'Get-DbaPbmStore',
'Get-DbaRepPublication',
'Test-DbaRepLatency',
'Export-DbaRepServerSetting',
'Get-DbaRepServer'
'Get-DbaReplPublication',
'Test-DbaReplLatency',
'Export-DbaReplServerSetting',
'Get-DbaReplServer'
)
$script:windowsonly = @(
# filesystem (\\ related),
Expand Down
Loading

0 comments on commit c7b66fc

Please sign in to comment.