Skip to content

. #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 305 commits into from
Jul 7, 2015
Merged

. #39

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
305 commits
Select commit Hold shift + click to select a range
ff3d73f
Using HandleDeviceJobResponse in Start CLone Job
parvezah Feb 23, 2015
7dd1c13
Merge commit
rajsing Feb 23, 2015
77833d7
Fixing Some PR comments
parvezah Feb 23, 2015
abcb99a
Merge pull request #5 from AzCiS/sanmah
parvezah Feb 23, 2015
df0de20
merge commit
rajsing Feb 23, 2015
3bdeb4e
Fix changes and suggestions from PR
rajsing Feb 23, 2015
c8f8a8b
Get Migration Models
sarav123 Feb 23, 2015
3cccf3b
Legacy appliance migration models
sarav123 Feb 23, 2015
60f5da3
PR changes for JobsClient
rajsing Feb 23, 2015
9e1d220
Finish p0s and p1s for all cmdlets
rajsing Feb 23, 2015
b2f7523
Get migration models removed from csproj
sarav123 Feb 24, 2015
5a21f8d
Output object change for Migration Plan
sarav123 Feb 24, 2015
dc1638f
removing tests and recorded mocks from github; will add an inclusive …
avirupch Feb 24, 2015
c8ac33a
Merge remote-tracking branch 'upstream/dev' into dev
avirupch Feb 24, 2015
d3a9bd5
merging changes from origin/dev
avirupch Feb 24, 2015
3e3fd5a
Fix changes suggested in code reviews
rajsing Feb 24, 2015
5065727
Fix changes suggested in PR
rajsing Feb 24, 2015
8fd85eb
merge commit
rajsing Feb 24, 2015
ac32b72
Fix changes suggested in PR
rajsing Feb 24, 2015
0145d3c
Code cleanup, fixing issues with result sorting
arramach Feb 24, 2015
bc6fc13
Merge pull request #8 from AzCiS/device-config
avirupch Feb 24, 2015
b21b441
Fix help messages
rajsing Feb 24, 2015
d6bc13b
Merge branch 'onesdk-phase2' into device-config
rajsing Feb 24, 2015
906cc9a
Merge pull request #9 from AzCiS/device-config
avirupch Feb 25, 2015
bf36009
Bandwidth rate conversion from Bps yo Mbps
arramach Feb 25, 2015
f827ad0
Fix for bug 1818487
avirupch Feb 25, 2015
c36d8a8
merging changesfrom onesdk-phase2
avirupch Feb 25, 2015
2bb7860
Merge pull request #10 from AzCiS/onesdk-avirupch
parvezah Feb 26, 2015
741630d
remove primaryDnsServer
rajsing Feb 27, 2015
4de3565
Changing the SuccessSubmitDeviceJobMessage
parvezah Feb 27, 2015
41f02f9
Merge from onesdk-phase2
parvezah Feb 27, 2015
766658a
Merge pull request #11 from AzCiS/device-config
avirupch Feb 27, 2015
9a243c6
Adding Device Id inputs to the clone cmdlet
parvezah Feb 27, 2015
57d5daa
Merge pull request #12 from AzCiS/parvezah
avirupch Feb 27, 2015
ab8672f
Add piping support to StopJob and Set-ASSDevice
rajsing Mar 2, 2015
eb5ead9
Merge branch 'onesdk-phase2' into device-config
rajsing Mar 2, 2015
aee4f17
rename jobId to InstanceId and fix resource string
rajsing Mar 2, 2015
282e87b
Add check to fail when job being stopped is not a running cancellable…
rajsing Mar 2, 2015
e4fa16b
Renaming ASS to Azure Stor Simple
parvezah Mar 2, 2015
cc9f537
Merge pull request #14 from AzCiS/parvezah
avirupch Mar 2, 2015
6c053fb
Add PR suggestion fixes
rajsing Mar 2, 2015
443b2b3
Merge pull request #13 from AzCiS/device-config
avirupch Mar 2, 2015
4ba3bdb
Fixing the Error Messages shown when decrytion fails with the given r…
parvezah Mar 4, 2015
157e148
Merge pull request #15 from AzCiS/parvezah
avirupch Mar 4, 2015
35c0011
Corrected namespace of clone commandlet
Mar 4, 2015
98a950d
Merge pull request #16 from AzCiS/sanmah
Mar 4, 2015
08eb4a1
Import-AzureStorSimpleLegacyVolumeContainer updated - Changing force …
arramach Mar 5, 2015
2f2b2d3
enable piping in start-devicefailover
avirupch Mar 6, 2015
c552102
Merge branch 'onesdk-phase2' into onesdk-avirupch
avirupch Mar 6, 2015
e9c97ac
updating output type of Start-DeviceFailover cmdlet
avirupch Mar 6, 2015
7dc2376
ConfirmAzureStorSimpleLegacyVolumeContainerStatus MigrationOperation …
arramach Mar 10, 2015
196fdec
Handle empty legacy volume containers in Get Migration Plan, Volume c…
sarav123 Mar 10, 2015
28df9a4
Merge branch 'LAMigration' of https://github.com/AzCiS/azure-powershe…
sarav123 Mar 10, 2015
1239962
Updating parser for virtual disk group to identify volume based on VS…
arramach Mar 10, 2015
62f2626
Fix update virtual device to make unchanged device details to null
rajsing Mar 11, 2015
f55efc9
Merge pull request #18 from AzCiS/set-virtualdevice-fix
avirupch Mar 11, 2015
46d5cbc
Merge branch 'onesdk-phase2' into onesdk-avirupch
avirupch Mar 11, 2015
bac7006
Add support for piping timezone info in Set-ASSDevice
rajsing Mar 11, 2015
5e08e14
Add support for piping timezone in Set-ASSVD
rajsing Mar 11, 2015
e1e7891
Merge pull request #19 from AzCiS/set-device-tzinfo-piping
avirupch Mar 11, 2015
48a6e67
Merge branch 'onesdk-phase2' into onesdk-avirupch
avirupch Mar 11, 2015
b11f0db
Merge remote-tracking branch 'upstream/dev' into dev
avirupch Mar 11, 2015
8c38ae8
merging changes from dev
avirupch Mar 11, 2015
36f63e4
Merge branch 'onesdk-phase2' into onesdk-avirupch
avirupch Mar 11, 2015
9ff7836
Adding new ConfirmMigrationOperation to restrict user from giving Inv…
arramach Mar 12, 2015
ebb4935
Merge pull request #17 from AzCiS/onesdk-avirupch
parvezah Mar 12, 2015
c9f60c0
Merge remote-tracking branch 'upstream/master' into onesdk-phase2
avirupch Mar 12, 2015
37ec0eb
fixing build
avirupch Mar 12, 2015
40a6423
Fix Set-ASSVD to send CIK along with the SEK
rajsing Mar 13, 2015
e4f8985
Remove the NewName parameter
rajsing Mar 13, 2015
04e2aa8
Merge pull request #20 from AzCiS/fix-set-vd
avirupch Mar 13, 2015
aed34e9
adding a single StorSimple scenario test
avirupch Mar 13, 2015
de54481
Fix DeviceProperties null error
rajsing Mar 17, 2015
1372d98
Merge pull request #22 from AzCiS/fix-set-vd
parvezah Mar 17, 2015
e351bf7
Fix for bug #1901664. Giving a validate set for the type
parvezah Mar 17, 2015
209a183
Merge pull request #23 from AzCiS/parvezah
Mar 17, 2015
f375c2e
Changes related to batching of import config requests
sarav123 Mar 18, 2015
98970a3
Changes related to message type in import config
sarav123 Mar 18, 2015
fa1c723
Merge branch 'LAMigration' of https://github.com/AzCiS/azure-powershe…
sarav123 Mar 18, 2015
f878d76
Removed commented code in import config
sarav123 Mar 18, 2015
498dfc9
Config split helper class for batching import config
sarav123 Mar 18, 2015
e559558
Fix enableiscsibug in New-ASSConfig and add validation for first time…
rajsing Mar 18, 2015
48ca3d5
Merge pull request #24 from AzCiS/data0-iscsi-fix
avirupch Mar 18, 2015
2b7c4cc
Adding Parameter sets for the Storage Account related parameters to r…
parvezah Mar 19, 2015
f72752b
Bug fix: [Migration] [Bugbash] Get-Migration Plan without configid, v…
sarav123 Mar 19, 2015
2e36b41
Bugfix: Get-MigrationPlan without config, vc names should not show th…
sarav123 Mar 19, 2015
75e7e4a
Removing redundant parameterset declaration according to PR comments.
parvezah Mar 20, 2015
5cd166f
Fixing the locatalization, o/p strings, formats. (Bugs# 1996777, 2040…
arramach Mar 20, 2015
e93d2d2
Merge pull request #25 from AzCiS/parvezah
avirupch Mar 20, 2015
2d08074
Fixing Verbose error message to actual error message (Bug# 2039725)
arramach Mar 20, 2015
b21f8c6
Bug fix: allow rename of entities
Sumanth-SK Mar 20, 2015
422878f
Bugfix: Error message from service are not shown properly to end user
sarav123 Mar 20, 2015
09ff6dc
Merge branch 'LAMigration' of https://github.com/AzCiS/azure-powershe…
sarav123 Mar 20, 2015
489c835
Setting correct parameters as mandatory and reordering them.
Mar 23, 2015
a97cd9f
Merge pull request #27 from AzCiS/sanmah
parvezah Mar 24, 2015
a92260f
Bug fix: allow rename of entities
Sumanth-SK Mar 24, 2015
70afa87
Merge pull request #26 from AzCiS/onesdk-p2-sumanths
avirupch Mar 24, 2015
7b08b8a
Merge branch 'dev' into LAMigration
arramach Mar 24, 2015
3bd1fc6
referring to latest storsimple .net nuget pkg
avirupch Mar 25, 2015
694dd9e
Adding timestamp to TaskId verbose msg (Bug# 2152094)
arramach Mar 25, 2015
3e6318a
Bug 2040823, 2040243, 1801382, 1740978, 1619242: Show Recovery bucket…
sarav123 Mar 25, 2015
b181f3d
Merge branch 'LAMigration' of https://github.com/AzCiS/azure-powershe…
sarav123 Mar 25, 2015
3fa8dde
Fix bug 2074697 - Set-ASSDevice silently terminates when no optional …
rajsing Mar 25, 2015
a274d99
change the resource message
rajsing Mar 25, 2015
e7b9bed
Fix for Bug 2142619
avirupch Mar 25, 2015
6acc061
Merge pull request #29 from AzCiS/onesdk-avirupch
parvezah Mar 25, 2015
68d111d
Add new params to SetASSVirtualDevice for snapshot mgr passwd and adm…
rajsing Mar 25, 2015
f7cb5de
Reorder params to have mandatory ones before optional ones
rajsing Mar 25, 2015
7262852
Fix resource name
rajsing Mar 25, 2015
07b47e1
fix TrySetIPAddress
rajsing Mar 25, 2015
8a59b8a
Fix for comments from PR
rajsing Mar 25, 2015
d860931
Merge pull request #28 from AzCiS/bugfix-2074697
avirupch Mar 25, 2015
7ff6564
merge from onesdk-phas2
rajsing Mar 25, 2015
af86129
Fix error case handling for device details related cmdlets
rajsing Mar 25, 2015
cb9f8ec
Fix error handling in device jobs related cmdlets
rajsing Mar 25, 2015
e1c3bcb
Merge pull request #30 from AzCiS/set-assvd-new-params
parvezah Mar 25, 2015
63bad8b
Bug fixes -
Sumanth-SK Mar 25, 2015
85993fa
Merge branch 'onesdk-phase2' into onesdk-p2-sumanths
Sumanth-SK Mar 25, 2015
d318f63
Merge branch 'onesdk-phase2' into fix-exceptions
rajsing Mar 25, 2015
f51a4bc
Fix errors
rajsing Mar 25, 2015
79ca0ee
Merge pull request #33 from AzCiS/fix-exceptions
parvezah Mar 26, 2015
0b43681
Bugfix: MigrationPlan Add recovery buckets merge to HcsMessageInfo
sarav123 Mar 26, 2015
b189adf
Merge pull request #32 from AzCiS/onesdk-p2-sumanths
avirupch Mar 26, 2015
b0bb062
Changing exception for Bug 2142619
avirupch Mar 26, 2015
a6a3781
Change HcsMessageInfo format for get migration plan
sarav123 Mar 27, 2015
8e8c4f8
Merge pull request #36 from AzCiS/onesdk-phase2
Mar 27, 2015
641c9cb
Merge branch 'dev' into LAMigration
arramach Mar 27, 2015
ef60002
fixing 404 response message
Mar 30, 2015
dd95cbc
Merge from onesdk-phase2
Mar 30, 2015
37a7787
Adding Aliases
parvezah Mar 30, 2015
2ae6bcc
Merge pull request #34 from AzCiS/onesdk-avirupch
parvezah Mar 31, 2015
74e988c
Set enabled to true for non-data0 interfaces
rajsing Mar 31, 2015
d939ea4
Merge pull request #38 from AzCiS/devicedetails-netinterface-fix
Sumanth-SK Apr 1, 2015
b222335
Fixing the support for multiple bandwidth schedules (Bug# 2206528, CR…
arramach Apr 1, 2015
2647eca
Including internal review comments (Bug# 2229666) and Fix for support…
arramach Apr 1, 2015
b756358
Merge pull request #37 from AzCiS/parvezah
avirupch Apr 2, 2015
718c442
Bug 2101056:[Migration] Remove dup DC names in SAAS before sending it…
sarav123 Apr 2, 2015
e412410
Modify NotReadyForCommitRollback to CommitRollbackNotStarted, rename …
sarav123 Apr 5, 2015
d826d14
Add confirmation note to rollback (Bug# 1276050)
arramach Apr 5, 2015
0276ef9
Merge branch 'LAMigration' of https://github.com/AzCiS/azure-powershe…
arramach Apr 5, 2015
f2a2a5e
Bug# 1276050. Adding confirmation to rollback
arramach Apr 5, 2015
253b866
Handling 404 web exceptions with a specific error message.
Apr 6, 2015
5d43652
Cleaning up unnecessary code.
Apr 6, 2015
7750c68
Merging from phase2
Apr 6, 2015
dd04dbc
Fixing merge error in resource file.
Apr 6, 2015
b39a0da
Added check to ensure volume container creation is allowed only if ma…
Sumanth-SK Apr 6, 2015
ea5229f
Adding the PersistAzureVMOnFailrue hook for persisting failed provisi…
parvezah Apr 7, 2015
4d36404
merging latest phase 2
parvezah Apr 7, 2015
4dd5e69
Merge pull request #40 from AzCiS/onesdk-p2-sumanths
parvezah Apr 7, 2015
484c4d8
Revert "Added check to ensure volume container creation is allowed on…
parvezah Apr 7, 2015
e3a122f
Merge pull request #42 from AzCiS/revert-40-onesdk-p2-sumanths
parvezah Apr 7, 2015
65f0610
Fixing the name space for the virtual device cmdlet
parvezah Apr 7, 2015
252044f
Fixed error message, and other cr comments.
Apr 8, 2015
d62f939
Fixed spacing length
Apr 8, 2015
3ebf275
Fixing spacing. Using spaces instead of tabs.
Apr 8, 2015
0e5b07c
TSP review Feedback (Bug# 2305691)
arramach Apr 8, 2015
176f2ee
Merge pull request #41 from AzCiS/parvezah
parvezah Apr 9, 2015
03e323a
Merge pull request #39 from AzCiS/sanmah
parvezah Apr 9, 2015
7605577
Updating resource files with appropriate, scrubbed error and verbose …
Apr 9, 2015
c642f41
Merge branch 'onesdk-phase2' into sanmah
Apr 9, 2015
c0b9b3c
Bug fix #2211889: Get-AzureStorSimpleJob doesn't let me filter with b…
Sumanth-SK Apr 9, 2015
37067c1
Revert "Revert "Added check to ensure volume container creation is al…
Sumanth-SK Apr 9, 2015
ff05f4e
Merge branch 'onesdk-phase2' into onesdk-p2-sumanths
Sumanth-SK Apr 9, 2015
db4b58e
Revert "Revert "Revert "Added check to ensure volume container creati…
Sumanth-SK Apr 9, 2015
26b7417
Merge pull request #44 from AzCiS/onesdk-p2-sumanths
parvezah Apr 9, 2015
06e4e68
Fix for bug 2239174: Fixing secondaryDNS server to make it non mandat…
Apr 9, 2015
e28ae27
Updating the format of displaying the o/p based on status (Bug# 2305691)
arramach Apr 9, 2015
44c50cc
StartMigrationPlan: show success message only if HcsMessageInfo doesn…
sarav123 Apr 10, 2015
e88b8eb
Merge pull request #43 from AzCiS/sanmah
parvezah Apr 10, 2015
fecd82d
The formatting files for Get Task
parvezah Apr 10, 2015
dda1e49
removing the extra ,s
parvezah Apr 10, 2015
21f4676
Merge pull request #45 from AzCiS/parvezah
Apr 10, 2015
fc997e7
Reverting changes for SecondaryDNS.
Apr 10, 2015
6d7dcc0
Merge pull request #46 from AzCiS/sanmah
parvezah Apr 10, 2015
15f3a7e
Out formatting for
parvezah Apr 10, 2015
23555ec
getting latest
parvezah Apr 10, 2015
68c9386
Merge pull request #47 from AzCiS/parvezah
parvezah Apr 10, 2015
be0d1bd
converting all write verbose messages to throw exceptions, wherever i…
parvezah Apr 10, 2015
30d9907
Merge pull request #49 from AzCiS/onesdk-phase2
parvezah Apr 13, 2015
a387d43
getting latest changes from azure/azure-powershell/dev
parvezah Apr 13, 2015
ea13c66
Organizing usings and adding copyright message.
Apr 13, 2015
f1dc520
Merge pull request #50 from AzCiS/sanmah
parvezah Apr 13, 2015
64b13aa
Merge pull request #51 from AzCiS/onesdk-phase2
parvezah Apr 13, 2015
aab9e94
Internal PR review changes (Bug# 2328846)
arramach Apr 13, 2015
ba7665b
Merge branch 'dev' into LAMigration
arramach Apr 13, 2015
d4f043a
Passing true in case the persist parameter is not specified
parvezah Apr 13, 2015
8e93676
Removing Resources.NotFoundMessageDevice as it is not used anymore
parvezah Apr 13, 2015
151dadf
merging onesdk-phase2
parvezah Apr 13, 2015
9d5597a
Merge pull request #48 from AzCiS/parvezah
Sumanth-SK Apr 13, 2015
6eda202
Merge pull request #52 from AzCiS/deletevmfix
Sumanth-SK Apr 13, 2015
ad2d1ea
Pending cleanups post Internal PR review changes bug# 2328846.
arramach Apr 13, 2015
4baedff
Pending cleanups post Internal PR review changes bug# 2328846.
arramach Apr 13, 2015
a5ffdf5
Merge branch 'LAMigration' of https://github.com/AzCiS/azure-powershe…
arramach Apr 13, 2015
6c913e8
Reverting: changes to ImportAzureStorSimpleLegacyApplianceConfig.cs
arramach Apr 13, 2015
147b1d0
Updating to the latest packages.
parvezah Apr 14, 2015
b160c19
Merge pull request #53 from AzCiS/parvezah
parvezah Apr 14, 2015
8102254
Merge pull request #54 from AzCiS/onesdk-phase2
parvezah Apr 14, 2015
512db5e
Internal PR review changes (Bug# 2328846 Part 2)
arramach Apr 14, 2015
5fd9b21
PR review comment addressed (Bug# 2328846)
arramach Apr 14, 2015
e6a6bec
Bug 2092109- Fix: Initialize TargetACRList to empty if not passed by …
Apr 15, 2015
9559f63
Merge branch 'onesdk-phase2' into sanmah
Apr 15, 2015
862cd22
GetMigrationPlan: ValidateNotNullOrEmpty check, convert verbose msg t…
sarav123 Apr 15, 2015
dc1979d
Merge pull request #55 from AzCiS/sanmah
parvezah Apr 15, 2015
2a6b43e
Merge pull request #56 from AzCiS/onesdk-phase2
parvezah Apr 15, 2015
8f69cbe
Azure powershell version changed to use azure-sdk-for-net 1.0.4-preview
sarav123 Apr 17, 2015
0c6c7b3
PR Review: Line breaks, using namespaces
sarav123 Apr 17, 2015
06a52ce
merging changes from dev branch
sarav123 Apr 17, 2015
91fdda1
Removing the packages checkin
sarav123 Apr 17, 2015
d22310a
Merge pull request #35 from AzCiS/LAMigration
parvezah Apr 17, 2015
88a36a4
String case match for data container names, MigrationPlanNoConfig par…
sarav123 Apr 20, 2015
4031db4
Merge branch 'dev' into LAMigration
arramach Apr 20, 2015
16c6986
add distinct data containers to confirmmigrationstatus
sarav123 Apr 21, 2015
c5c529e
PR review comments
arramach Apr 21, 2015
d1e4425
Converting OrdinalIgnoreCase to InvariantCultureIgnoreCase
arramach Apr 21, 2015
f15a12c
Merge pull request #57 from AzCiS/LAMigration
parvezah Apr 21, 2015
204be67
Adding output type to migration cmdlets
arramach Apr 22, 2015
eb5a412
Merge pull request #58 from AzCiS/LAMigration
parvezah Apr 22, 2015
969b3fb
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
safeermohammed May 26, 2015
2b7b6e2
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
safeermohammed May 27, 2015
19e8291
Update RemoveAzureResourceLockCmdlet.cs
chadiel Jun 11, 2015
07acc17
Adding support for -All for Import DC, Start Migration Plan and Confi…
arramach Jun 18, 2015
7ded0f7
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
safeermohammed Jun 18, 2015
7b5b447
Saving ARM port work 1
safeermohammed Jun 18, 2015
0f4eae5
Migration -All support code-review fixes
arramach Jun 23, 2015
160e124
Migration -All support . Code review changes
arramach Jun 23, 2015
473e99b
Merge pull request #59 from AzCiS/LAMigration
parvezah Jun 23, 2015
1d0ac42
import/export runbook and tests
safeermohammed Jun 26, 2015
c69f932
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
safeermohammed Jun 26, 2015
6846c34
Export - Import cmdlets
safeermohammed Jul 1, 2015
194acf6
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
safeermohammed Jul 2, 2015
2feee8c
Fixes to invoke-action
chadiel Jul 2, 2015
82fcc94
Merge remote-tracking branch 'origin/dev' into dev
chadiel Jul 2, 2015
1c1d86e
fix build
chadiel Jul 2, 2015
1916cd8
Fix build build break
chadiel Jul 2, 2015
2959e5f
Fix build issue
chadiel Jul 2, 2015
1559dc7
Small fixes
chadiel Jul 3, 2015
a503f90
Escape } in string.Format
tekmaven Jul 4, 2015
9819fb2
pulling latest from azure repo
parvezah Jul 6, 2015
d4b4b74
Fixing Merge Errors
parvezah Jul 6, 2015
fa3b665
Fixing some char mismatches
parvezah Jul 6, 2015
fdd8417
fixing spaces
parvezah Jul 6, 2015
19441ce
added the backup tests .ps1 file to the csproj
parvezah Jul 6, 2015
c466552
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
safeermohammed Jul 7, 2015
d9ba1eb
Removing the not needed tests
parvezah Jul 7, 2015
fa229bb
Merge pull request #561 from huangpf/dev
ogail Jul 7, 2015
910d7db
Merge pull request #562 from chadiel/dev
ogail Jul 7, 2015
395ab26
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
safeermohammed Jul 7, 2015
737320c
Merge pull request #567 from tekmaven/fix-bootstrapoptions-format-bug
ogail Jul 7, 2015
a36f183
Merge pull request #569 from AzCiS/dev
ogail Jul 7, 2015
af8fdf9
Merge pull request #560 from AzureAutomationTeam/dev
ogail Jul 7, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ProjectGuid>{59D1B5DC-9175-43EC-90C6-CBA601B3565F}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Microsoft.Azure.Commands.Automation.Test</RootNamespace>
<RootNamespace>Microsoft.Azure.Commands.ResourceManager.Automation.Test</RootNamespace>
<AssemblyName>Microsoft.Azure.Commands.ResourceManager.Automation.Test</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
Expand Down Expand Up @@ -111,13 +111,43 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="UnitTests\GetAzureAutomationCertificateTest.cs" />
<Compile Include="UnitTests\GetAzureAutomationConnectionTest.cs" />
<Compile Include="UnitTests\GetAzureAutomationCredentialTest.cs" />
<Compile Include="UnitTests\GetAzureAutomationJobTest.cs" />
<Compile Include="UnitTests\GetAzureAutomationRunbookTest.cs" />
<Compile Include="UnitTests\GetAzureAutomationScheduledRunbookTest.cs" />
<Compile Include="UnitTests\GetAzureAutomationScheduleTest.cs" />
<Compile Include="UnitTests\GetAzureAutomationVariableTest.cs" />
<Compile Include="UnitTests\GetAzureAutomationWebhookTest.cs" />
<Compile Include="UnitTests\NewAzureAutomationAccountTest.cs" />
<Compile Include="UnitTests\GetAzureAutomationAccountTest.cs" />
<Compile Include="UnitTests\NewAzureAutomationCertificateTest.cs" />
<Compile Include="UnitTests\NewAzureAutomationConnectionTest.cs" />
<Compile Include="UnitTests\NewAzureAutomationCredentialTest.cs" />
<Compile Include="UnitTests\NewAzureAutomationRunbookTest.cs" />
<Compile Include="UnitTests\NewAzureAutomationScheduleTest.cs" />
<Compile Include="UnitTests\NewAzureAutomationVariableTest.cs" />
<Compile Include="UnitTests\NewAzureAutomationWebhookTest.cs" />
<Compile Include="UnitTests\PublishAzureAutomationRunbookTest.cs" />
<Compile Include="UnitTests\RegisterAzureAutomationScheduledRunbookTest.cs" />
<Compile Include="UnitTests\RemoveAzureAutomationAccountTest.cs" />
<Compile Include="UnitTests\RemoveAzureAutomationCertificateTest.cs" />
<Compile Include="UnitTests\RemoveAzureAutomationConnectionTest.cs" />
<Compile Include="UnitTests\RemoveAzureAutomationModuleTest.cs" />
<Compile Include="UnitTests\RemoveAzureAutomationRunbookTest.cs" />
<Compile Include="UnitTests\RemoveAzureAutomationScheduleTest.cs" />
<Compile Include="UnitTests\RemoveAzureAutomationVariableTest.cs" />
<Compile Include="UnitTests\RemoveAzureAutomationWebhookTest.cs" />
<Compile Include="UnitTests\ResumeAzureAutomationJobTest.cs" />
<Compile Include="UnitTests\SetAzureAutomationCredentialTest.cs" />
<Compile Include="UnitTests\SetAzureAutomationRunbookTest.cs" />
<Compile Include="UnitTests\SetAzureAutomationScheduleTest.cs" />
<Compile Include="UnitTests\SetAzureAutomationWebhookTest.cs" />
<Compile Include="UnitTests\StartAzureAutomationRunbookTest.cs" />
<Compile Include="UnitTests\StopAzureAutomationJobTest.cs" />
<Compile Include="UnitTests\SuspendAzureAutomationJobTest.cs" />
<Compile Include="UnitTests\UnregisterAzureAutomationScheduledRunbookTest.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Common\Commands.Common.Test\Commands.Common.Test.csproj">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
using Microsoft.WindowsAzure.Commands.Utilities.Common;
using Moq;

namespace Microsoft.Azure.Commands.Automation.Test.UnitTests
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
{
[TestClass]
public class GetAzureAutomationAccountTest : TestBase
Expand Down Expand Up @@ -55,6 +55,7 @@ public void GetAzureAutomationAllAccountsSuccessfull()
this.mockAutomationClient.Setup(f => f.ListAutomationAccounts(resourceGroupName, ref nextLink)).Returns((string a, string b) => new List<AutomationAccount>());

// Test
this.cmdlet.ResourceGroupName = resourceGroupName;
this.cmdlet.ExecuteCmdlet();

// Assert
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using Microsoft.Azure.Commands.Automation.Cmdlet;
using Microsoft.Azure.Commands.Automation.Common;
using Microsoft.Azure.Commands.Automation.Model;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
using Moq;

namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
{
[TestClass]
public class GetAzureAutomationCertificateTest : TestBase
{
private Mock<IAutomationClient> mockAutomationClient;

private MockCommandRuntime mockCommandRuntime;

private GetAzureAutomationCertificate cmdlet;

[TestInitialize]
public void SetupTest()
{
this.mockAutomationClient = new Mock<IAutomationClient>();
this.mockCommandRuntime = new MockCommandRuntime();
this.cmdlet = new GetAzureAutomationCertificate
{
AutomationClient = this.mockAutomationClient.Object,
CommandRuntime = this.mockCommandRuntime
};
}

[TestMethod]
public void GetAzureAutomationCertificateByNameSuccessfull()
{
// Setup
string resourceGroupName = "resourceGroup";
string accountName = "automation";
string certificateName = "certificate";

this.mockAutomationClient.Setup(f => f.GetCertificate(resourceGroupName, accountName, certificateName));

// Test
this.cmdlet.ResourceGroupName = resourceGroupName;
this.cmdlet.AutomationAccountName = accountName;
this.cmdlet.Name = certificateName;
this.cmdlet.SetParameterSet("ByCertificateName");
this.cmdlet.ExecuteCmdlet();

// Assert
this.mockAutomationClient.Verify(f => f.GetCertificate(resourceGroupName, accountName, certificateName), Times.Once());
}

[TestMethod]
public void GetAzureAutomationCertificateByAllSuccessfull()
{
// Setup
string resourceGroupName = "resourceGroup";
string accountName = "automation";
string nextLink = string.Empty;

this.mockAutomationClient.Setup(f => f.ListCertificates(resourceGroupName, accountName, ref nextLink)).Returns((string a, string b, string c) => new List<CertificateInfo>());

// Test
this.cmdlet.ResourceGroupName = resourceGroupName;
this.cmdlet.AutomationAccountName = accountName;
this.cmdlet.ExecuteCmdlet();

// Assert
this.mockAutomationClient.Verify(f => f.ListCertificates(resourceGroupName, accountName, ref nextLink), Times.Once());
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using Microsoft.Azure.Commands.Automation.Cmdlet;
using Microsoft.Azure.Commands.Automation.Common;
using Microsoft.Azure.Commands.Automation.Model;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
using Moq;

namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
{
[TestClass]
public class GetAzureAutomationConnectionTest : TestBase
{
private Mock<IAutomationClient> mockAutomationClient;

private MockCommandRuntime mockCommandRuntime;

private GetAzureAutomationConnection cmdlet;

[TestInitialize]
public void SetupTest()
{
this.mockAutomationClient = new Mock<IAutomationClient>();
this.mockCommandRuntime = new MockCommandRuntime();
this.cmdlet = new GetAzureAutomationConnection
{
AutomationClient = this.mockAutomationClient.Object,
CommandRuntime = this.mockCommandRuntime
};
}

[TestMethod]
public void GetAzureAutomationConnectionByNameSuccessfull()
{
// Setup
string resourceGroupName = "resourceGroup";
string accountName = "automation";
string connectionName = "connection";

this.mockAutomationClient.Setup(f => f.GetConnection(resourceGroupName, accountName, connectionName));

// Test
this.cmdlet.ResourceGroupName = resourceGroupName;
this.cmdlet.AutomationAccountName = accountName;
this.cmdlet.Name = connectionName;
this.cmdlet.SetParameterSet("ByConnectionName");
this.cmdlet.ExecuteCmdlet();

// Assert
this.mockAutomationClient.Verify(f => f.GetConnection(resourceGroupName, accountName, connectionName), Times.Once());
}

[TestMethod]
public void GetAzureAutomationConnectionByAllSuccessfull()
{
// Setup
string resourceGroupName = "resourceGroup";
string accountName = "automation";
string nextLink = string.Empty;

this.mockAutomationClient.Setup(f => f.ListConnections(resourceGroupName, accountName, ref nextLink)).Returns((string a, string b, string c) => new List<Connection>());

// Test
this.cmdlet.ResourceGroupName = resourceGroupName;
this.cmdlet.AutomationAccountName = accountName;
this.cmdlet.ExecuteCmdlet();

// Assert
this.mockAutomationClient.Verify(f => f.ListConnections(resourceGroupName, accountName, ref nextLink), Times.Once());
}

[TestMethod]
public void GetAzureAutomationConnectionByTypeSuccessfull()
{
// Setup
string resourceGroupName = "resourceGroup";
string accountName = "automation";
string connectionTypeName = "connectionType";

this.mockAutomationClient.Setup(f => f.ListConnectionsByType(resourceGroupName, accountName, connectionTypeName)).Returns((string a, string b, string c) => new List<Connection>());

// Test
this.cmdlet.ResourceGroupName = resourceGroupName;
this.cmdlet.AutomationAccountName = accountName;
this.cmdlet.ConnectionTypeName = connectionTypeName;
this.cmdlet.SetParameterSet("ByConnectionTypeName");
this.cmdlet.ExecuteCmdlet();

// Assert
this.mockAutomationClient.Verify(f => f.ListConnectionsByType(resourceGroupName, accountName, connectionTypeName), Times.Once());
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using Microsoft.Azure.Commands.Automation.Cmdlet;
using Microsoft.Azure.Commands.Automation.Common;
using Microsoft.Azure.Commands.Automation.Model;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
using Moq;

namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
{
[TestClass]
public class GetAzureAutomationCredentialTest : TestBase
{
private Mock<IAutomationClient> mockAutomationClient;

private MockCommandRuntime mockCommandRuntime;

private GetAzureAutomationCredential cmdlet;

[TestInitialize]
public void SetupTest()
{
this.mockAutomationClient = new Mock<IAutomationClient>();
this.mockCommandRuntime = new MockCommandRuntime();
this.cmdlet = new GetAzureAutomationCredential
{
AutomationClient = this.mockAutomationClient.Object,
CommandRuntime = this.mockCommandRuntime
};
}

[TestMethod]
public void GetAzureAutomationCredentialByNameSuccessfull()
{
// Setup
string resourceGroupName = "resourceGroup";
string accountName = "automation";
string credentialName = "credential";

this.mockAutomationClient.Setup(f => f.GetCredential(resourceGroupName, accountName, credentialName));

// Test
this.cmdlet.ResourceGroupName = resourceGroupName;
this.cmdlet.AutomationAccountName = accountName;
this.cmdlet.Name = credentialName;
this.cmdlet.ExecuteCmdlet();

// Assert
this.mockAutomationClient.Verify(f => f.GetCredential(resourceGroupName, accountName, credentialName), Times.Once());
}

[TestMethod]
public void GetAzureAutomationCredentialByAllSuccessfull()
{
// Setup
string resourceGroupName = "resourceGroup";
string accountName = "automation";
string nextLink = string.Empty;

this.mockAutomationClient.Setup(f => f.ListCredentials(resourceGroupName, accountName, ref nextLink)).Returns((string a, string b, string c) => new List<CredentialInfo>());

// Test
this.cmdlet.ResourceGroupName = resourceGroupName;
this.cmdlet.AutomationAccountName = accountName;
this.cmdlet.ExecuteCmdlet();

// Assert
this.mockAutomationClient.Verify(f => f.ListCredentials(resourceGroupName, accountName, ref nextLink), Times.Once());
}
}
}
Loading