Management.Sql - Generated SQL DataSync and added test scenario's#3558
Management.Sql - Generated SQL DataSync and added test scenario's#3558shahabhijeet merged 5 commits intoAzure:psSdkJson6from ScottHolden:psSdkJson6
Conversation
…ing datasync, added SyncAgent SyncGroup SyncMember scenario's with session records.
|
Can one of the admins verify this patch? |
2 similar comments
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
@ScottHolden, It will cover your contributions to all Microsoft-managed open source projects. |
|
Can one of the admins verify this patch? |
|
@ScottHolden, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request. |
|
I have signed the cla :) |
|
@ScottHolden are you part of the Azure org, if not please become a part of the Azure Team by visiting |
|
@fhljys ,@ferno-ms , @nathannfan fyi |
jaredmoo
left a comment
There was a problem hiding this comment.
Looks excellent, just some minor changes requested. Thank you!
| <Description>Azure SQL Management SDK library</Description> | ||
| <AssemblyName>Microsoft.Azure.Management.Sql</AssemblyName> | ||
| <VersionPrefix>1.7.0-preview</VersionPrefix> | ||
| <VersionPrefix>1.8.0-preview</VersionPrefix> |
There was a problem hiding this comment.
the latest published version is 1.6.0 (see https://www.nuget.org/packages/Microsoft.Azure.Management.Sql ) so please undo this
|
|
||
|
|
||
|
|
||
| [assembly: AssemblyFileVersion("1.8.0.0")] No newline at end of file |
| }); | ||
| Assert.NotNull(updateSyncMember); | ||
| Assert.Equal(updateSyncMemberDirection, updateSyncMember.SyncDirection); | ||
| Assert.NotEqual(syncMemberDirection, updateSyncMemberDirection); |
There was a problem hiding this comment.
can you also test empty update, e.g.
// Empty update of sync member
SyncMember updateSyncMember2 = sqlClient.SyncMembers.Update(resourceGroup.Name, server.Name, testDatabaseName, syncGroupName, syncMemberName, new SyncMember());
| IPage<SyncMember> listSyncMembers = sqlClient.SyncMembers.ListBySyncGroup(resourceGroup.Name, server.Name, testDatabaseName, syncGroupName); | ||
| Assert.NotNull(listSyncMembers); | ||
| Assert.Equal(1, listSyncMembers.Count()); | ||
| Assert.Equal(syncMemberName, listSyncMembers.FirstOrDefault()?.Name); |
There was a problem hiding this comment.
nit: already checked that there is one, so this can be listSyncMembers.Single().Name
| Interval = interval2 | ||
| }); | ||
| Assert.NotNull(updateSyncGroup); | ||
| Assert.Equal(interval2, updateSyncGroup.Interval); |
There was a problem hiding this comment.
Can you please test empty update, i..e.
SyncGroup updateSyncGroup = sqlClient.SyncGroups.Update(resourceGroup.Name, server.Name, testDatabaseName, syncGroupName, new SyncGroup());
There was a problem hiding this comment.
oops, these empty updates ideally should not fail. Not your fault though, it has to be fixed server-side. Thanks for testing!
|
@shahabhijeet I'm not currently part of the Azure GitHub organisation, who do I need to reach out to to be added, as I couldn't see a link on https://github.com/Azure/ |
|
@ScottHolden I think that this is only applicable to Microsoft employees working in the Azure organization. So my understanding is that this is not applicable to you. |
|
@azuresdkci test this please |
|
@ScottHolden sql tests are failing on travis. |
|
@azuresdkci add to whitelist |
|
All tests were working fine locally @shahabhijeet. I was able to run in record mode and playback mode, and committed the SessionRecord with the test changes. |
|
It looks like the lab build merges with the target branch (azure/psSdkJson6) before running tests, and we made some incompatible test changes recently that you haven't pulled in. It should be fixed by merging from azure/psSdkJson6 and re-recording the tests. You will need to add a few new properties to your test environment connection string, e.g. |
|
Thanks @jaredmoo ! That did the trick :) |
shahabhijeet
left a comment
There was a problem hiding this comment.
@jaredmoo I assume you will be updating the AssemblyInfo to reflect the next release version.
|
Awesome! Yes AssemblyInfo is handled. Thx |
…ure#3558) * Generated Management.Sql with package-2015-05-preview api spec including datasync, added SyncAgent SyncGroup SyncMember scenario's with session records. * Reverted version to 1.7.0, made minor changes to scenarios, re-recorded scenarios * Regenerated sql management client now rest api specs have been merged. * Re-recorded DataSync test scenarios


Description
Generated Management.Sql with package-2015-05-preview api spec including datasync, added SyncAgent SyncGroup SyncMember scenario's with session records.
Corresponding rest-api-spec change can be found at:
Azure/azure-rest-api-specs#1510
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
Testing Guidelines
SDK Generation Guidelines
*.csprojandAssemblyInfo.csfiles have been updated with the new version of the SDK.