-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from microsoft/dev
Fix minor issues
- Loading branch information
Showing
11 changed files
with
53 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ public AssetsOperationsTests() | |
|
||
[Theory] | ||
[InlineData(null)] | ||
public async Task Create_WithNull(string name) | ||
public void Create_WithNull(string name) | ||
{ | ||
// Arrange | ||
var assetsOperations = new AssetsOperations(mockClient.Object); | ||
|
@@ -30,7 +30,7 @@ public async Task Create_WithNull(string name) | |
|
||
[Theory] | ||
[InlineData("")] | ||
public async Task Create_WithEmpty(string name) | ||
public void Create_WithEmpty(string name) | ||
{ | ||
// Arrange | ||
var assetsOperations = new AssetsOperations(mockClient.Object); | ||
|
@@ -52,7 +52,7 @@ public async Task Create_WithEmpty(string name) | |
[InlineData("Name-123")] | ||
[InlineData("a")] | ||
[InlineData("12")] | ||
public async Task Create_ContainerNameError(string name) | ||
public void Create_ContainerNameError(string name) | ||
{ | ||
// Arrange | ||
var assetsOperations = new AssetsOperations(mockClient.Object); | ||
|
@@ -65,7 +65,7 @@ public async Task Create_ContainerNameError(string name) | |
[InlineData("name-123")] | ||
[InlineData("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")] | ||
[InlineData(null)] | ||
public async Task Create_ContainerNameOK(string name) | ||
public void Create_ContainerNameOK(string name) | ||
{ | ||
var mockClient2 = new Mock<MKIOClient>("subscriptionname", Constants.jwtFakeToken); | ||
|
||
|
@@ -89,7 +89,7 @@ public async Task Create_ContainerNameOK(string name) | |
|
||
[Theory] | ||
[InlineData("{\"name\":\"ignite-truncated-StandardEncoder-H264SingleBitrate720p-98b7c74252\",\"id\":\"/subscriptions/52907a2e-ab43-43ba-8b9f-8cb78285f665/resourceGroups/default/providers/Microsoft.Media/mediaservices/mkiotest/assets/ignite-truncated-StandardEncoder-H264SingleBitrate720p-98b7c74252\",\"type\":\"Microsoft.Media/mediaservices/assets\",\"properties\":{\"assetId\":\"bcf8655e-9f8a-4f97-8fb6-c81962d859dd\",\"created\":\"2024-03-26T14:51:19.125280Z\",\"lastModified\":\"2024-03-26T14:51:22.180123Z\",\"alternateId\":\"\",\"description\":null,\"container\":\"asset-ac71836f-cc24-4614-af60-2fe2ae7f811e\",\"storageAccountName\":\"amsxpfrstorage\",\"storageEncryptionFormat\":null,\"encryptionScope\":null,\"containerDeletionPolicy\":\"Retain\"},\"labels\":{},\"systemData\":{\"createdBy\":\"[email protected]\",\"createdByType\":\"User\",\"createdAt\":\"2024-03-26T14:51:19.125280Z\",\"lastModifiedBy\":\"[email protected]\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2024-03-26T14:51:22.180123Z\"},\"supplemental\":{\"operation\":\"get\",\"subscription\":{\"id\":\"bf747f59-771a-4e9b-a6cd-59351c4a71d2\",\"name\":\"mkiotest\"}}}")] | ||
public async Task Create_DeserializationOK(string json) | ||
public void Create_DeserializationOK(string json) | ||
{ | ||
var mockClient2 = new Mock<MKIOClient>("subscriptionname", Constants.jwtFakeToken); | ||
|
||
|
@@ -113,7 +113,7 @@ public async Task Create_DeserializationOK(string json) | |
|
||
[Theory] | ||
[InlineData("{\"name\":\"ignite-truncated-StandardEncoder-H264SingleBitrate720p-98b7c74252\",\"id\":\"/subscriptions/52907a2e-ab43-43ba-8b9f-8cb78285f665/resourceGroups/default/providers/Microsoft.Media/mediaservices/mkiotest/assets/ignite-truncated-StandardEncoder-H264SingleBitrate720p-98b7c74252\",\"type\":\"Microsoft.Media/mediaservices/assets\",\"properties\":{\"assetId\":\"bcf8655e-9f8a-4f97-8fb6-c81962d859dd\",\"created\":\"2024-03-26T14:51:19.125280Z\",\"lastModified\":\"2024-03-26T14:51:22.180123Z\",\"alternateId\":\"\",\"description\":null,\"container\":\"asset-ac71836f-cc24-4614-af60-2fe2ae7f811e\",\"storageAccountName\":\"amsxpfrstorage\",\"storageEncryptionFormat\":null,\"encryptionScope\":null,\"containerDeletionPolicy\":\"Rein\"},\"labels\":{},\"systemData\":{\"createdBy\":\"[email protected]\",\"createdByType\":\"User\",\"createdAt\":\"2024-03-26T14:51:19.125280Z\",\"lastModifiedBy\":\"[email protected]\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2024-03-26T14:51:22.180123Z\"},\"supplemental\":{\"operation\":\"get\",\"subscription\":{\"id\":\"bf747f59-771a-4e9b-a6cd-59351c4a71d2\",\"name\":\"mkiotest\"}}}")] | ||
public async Task Create_DeserializationError(string json) | ||
public void Create_DeserializationError(string json) | ||
{ | ||
var mockClient2 = new Mock<MKIOClient>("subscriptionname", Constants.jwtFakeToken); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ public ContentKeyPoliciesOperationsTests() | |
|
||
[Theory] | ||
[InlineData(null)] | ||
public async Task Create_WithNull(string name) | ||
public void Create_WithNull(string name) | ||
{ | ||
// Arrange | ||
var operations = new ContentKeyPoliciesOperations(mockClient.Object); | ||
|
@@ -31,7 +31,7 @@ public async Task Create_WithNull(string name) | |
[Theory] | ||
[InlineData("")] | ||
[InlineData("name with space")] | ||
public async Task Create_WithEmptyOrSpace(string name) | ||
public void Create_WithEmptyOrSpace(string name) | ||
{ | ||
// Arrange | ||
var operations = new ContentKeyPoliciesOperations(mockClient.Object); | ||
|
@@ -42,7 +42,7 @@ public async Task Create_WithEmptyOrSpace(string name) | |
|
||
[Theory] | ||
[InlineData("{\"name\":\"testpolcreate\",\"id\":\"/subscriptions/52907a2e-ab43-43ba-8b9f-8cb78285f665/resourceGroups/default/providers/Microsoft.Media/mediaservices/mkiotest/contentKeyPolicies/testpolcreate\",\"type\":\"Microsoft.Media/mediaservices/contentKeyPolicies\",\"supplemental\":{\"id\":\"3b2c47e3-e5a6-408c-9ff4-45fcf7396885\",\"state\":\"Created\"},\"properties\":{\"options\":[{\"name\":\"option1\",\"restriction\":{\"issuer\":\"issuer\",\"audience\":\"audience\",\"@odata.type\":\"#Microsoft.Media.ContentKeyPolicyTokenRestriction\",\"requiredClaims\":[{\"claimType\":\"urn:microsoft:azure:mediaservices:contentkeyidentifier\"}],\"restrictionTokenType\":\"Jwt\",\"primaryVerificationKey\":{\"keyValue\":\"\",\"@odata.type\":\"#Microsoft.Media.ContentKeyPolicySymmetricTokenKey\"},\"alternateVerificationKeys\":[]},\"configuration\":{\"@odata.type\":\"#Microsoft.Media.ContentKeyPolicyWidevineConfiguration\",\"widevineTemplate\":\"{}\"}}],\"description\":\"Mydescription\",\"created\":\"2024-06-25T17:14:16.861426Z\",\"lastModified\":\"2024-06-25T17:14:16.861441Z\"},\"systemData\":{\"createdBy\":\"[email protected]\",\"createdByType\":\"User\",\"createdAt\":\"2024-06-25T17:14:16.861426Z\",\"lastModifiedBy\":\"[email protected]\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T17:14:16.861441Z\"}}")] | ||
public async Task Create_DeserializationOK(string json) | ||
public void Create_DeserializationOK(string json) | ||
{ | ||
var mockClient2 = new Mock<MKIOClient>("subscriptionname", Constants.jwtFakeToken); | ||
|
||
|
@@ -66,7 +66,7 @@ public async Task Create_DeserializationOK(string json) | |
|
||
[Theory] | ||
[InlineData("{\"name\":\"testpolcreate\",\"id\":\"/subscriptions/52907a2e-ab43-43ba-8b9f-8cb78285f665/resourceGroups/default/providers/Microsoft.Media/mediaservices/mkiotest/contentKeyPolicies/testpolcreate\",\"type\":\"Microsoft.Media/mediaservices/contentKeyPolicies\",\"supplemental\":{\"id\":\"3b2c47e3-e5a6-408c-9ff4-45fcf7396885\",\"state\":\"Created\"},\"properties\":{\"options\":[{\"name\":\"option1\",\"restriction\":{\"issuer\":\"issuer\",\"audience\":\"audience\",\"@odata.type\":\"#Microsoft.Media.ContentKeyPolicyTokenRestriction\",\"requiredClaims\":[{\"claimType\":\"urn:microsoft:azure:mediaservices:contentkeyidentifier\"}],\"restrictionTokenType\":\"Jwt\",\"primaryVerificationKey\":{\"keyValue\":\"\",\"@odata.type\":\"#Microsoft.Media.ContentKeyPolicySymmetricTokenKey\"},\"alternateVerificationKeys\":[]},\"configuration\":{\"@odata.type\":\"#Microsoft.Media.ContentKeyPolicyWidevineConfiguration\",\"widevineTemplate\":\"{}\"}}],\"description\":\"Mydescription\",\"created\":\"XXXXXX\",\"lastModified\":\"2024-06-25T17:14:16.861441Z\"},\"systemData\":{\"createdBy\":\"[email protected]\",\"createdByType\":\"User\",\"createdAt\":\"2024-06-25T17:14:16.861426Z\",\"lastModifiedBy\":\"[email protected]\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T17:14:16.861441Z\"}}")] | ||
public async Task Create_DeserializationFormatError(string json) | ||
public void Create_DeserializationFormatError(string json) | ||
{ | ||
var mockClient2 = new Mock<MKIOClient>("subscriptionname", Constants.jwtFakeToken); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ public JobsOperationsTests() | |
|
||
[Theory] | ||
[InlineData(null)] | ||
public async Task Create_WithNull(string name) | ||
public void Create_WithNull(string name) | ||
{ | ||
// Arrange | ||
var jobsOperations = new JobsOperations(_mockClient.Object); | ||
|
@@ -46,7 +46,7 @@ public async Task Create_WithNull(string name) | |
|
||
[Theory] | ||
[InlineData("")] | ||
public async Task Create_WithEmpty(string name) | ||
public void Create_WithEmpty(string name) | ||
{ | ||
// Arrange | ||
var jobsOperations = new JobsOperations(_mockClient.Object); | ||
|
@@ -63,7 +63,7 @@ public async Task Create_WithEmpty(string name) | |
[InlineData("job-123.4")] | ||
[InlineData("-job-123")] | ||
[InlineData("job-123-")] | ||
public async Task Create_JobNameErrorInName(string name) | ||
public void Create_JobNameErrorInName(string name) | ||
{ | ||
// Arrange | ||
var jobsOperations = new JobsOperations(_mockClient.Object); | ||
|
@@ -120,7 +120,7 @@ public async Task Create_DeserializationOK(string json) | |
[Theory] | ||
[InlineData("{\"name\":\"live-to-mp4-6a3413a8\",\"id\":\"/subscriptions/52907a2e-ab43-43ba-8b9f-8cb78285f665/resourceGroups/default/providers/Microsoft.Media/mediaservices/mkiotest/transforms/ConverterAllBitrateInterleaved/jobs/live-to-mp4-6a3413a8\",\"type\":\"Microsoft.Media/mediaservices/transforms/jobs\",\"properties\":{\"created\":\"2024-06-18T11:58:47.351891Z\",\"description\":\"Myjobwhichprocesses'asset-ec0688cc'to'asset-ec0688cc-mp4'with'ConverterAllBitrateInterleaved'transform.\",\"lastModified\":\"2024-06-18T11:59:06.511738Z\",\"priority\":\"Normal\",\"state\":\"FinishedXX\",\"input\":{\"files\":[\"*\"],\"assetName\":\"asset-ec0688cc\",\"@odata.type\":\"#Microsoft.Media.JobInputAssetXX\"},\"outputs\":[{\"label\":\"BuiltInAssetConverterPreset_0\",\"state\":\"Finhed\",\"endTime\":\"2024-06-18T11:59:06.394517Z\",\"progress\":100,\"assetName\":\"asset-ec0688cc-mp4\",\"@odata.type\":\"#Microsoft.Media.JobOutputAsset\"}],\"endTime\":\"2024-06-18T11:59:06.394517Z\"},\"systemData\":{\"createdBy\":\"[email protected]\",\"createdByType\":\"User\",\"createdAt\":\"2024-06-18T11:58:47.351891Z\",\"lastModifiedBy\":\"[email protected]\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2024-06-18T11:59:06.511738Z\"},\"supplemental\":{\"operation\":\"get\",\"subscription\":{\"id\":\"bf747f59-771a-4e9b-a6cd-59351c4a71d2\",\"name\":\"mkiotest\"}}}")] | ||
[InlineData("{\"name\":\"job-7326300f\",\"id\":\"/subscriptions/52907a2e-ab43-43ba-8b9f-8cb78285f665/resourceGroups/default/providers/Microsoft.Media/mediaservices/mkiotest/transforms/simpletransformsd/jobs/job-7326300f\",\"type\":\"Microsoft.Media/mediaservices/transforms/jobs\",\"properties\":{\"created\":\"2024-03-27T15:33:58.451407Z\",\"description\":\"Mysdencodingjob\",\"lastModified\":\"2024-03-27T15:36:43.395374Z\",\"priority\":\"High\",\"state\":\"FinishedXXX\",\"input\":{\"files\":[\"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4\"],\"@odata.type\":\"#Microsoft.Media.JobInputHttpXX\"},\"outputs\":[{\"label\":\"BuiltInStandardEncoderPreset_0\",\"state\":\"Finished\",\"endTime\":\"2024-03-27T15:36:36.000000Z\",\"progress\":100,\"assetName\":\"output-b19d8b84\",\"@odata.type\":\"#Microsoft.Media.JobOutputAsset\",\"startTime\":\"2024-03-27T15:36:31.000000Z\"}],\"startTime\":\"2024-03-27T15:36:31.000000Z\",\"endTime\":\"2024-03-27T15:36:36.000000Z\"},\"systemData\":{\"createdBy\":\"[email protected]\",\"createdByType\":\"User\",\"createdAt\":\"2024-03-27T15:33:58.451407Z\",\"lastModifiedBy\":\"[email protected]\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2024-03-27T15:36:43.395374Z\"},\"supplemental\":{\"operation\":\"get\",\"subscription\":{\"id\":\"bf747f59-771a-4e9b-a6cd-59351c4a71d2\",\"name\":\"mkiotest\"}}}")] | ||
public async Task Create_DeserializationError(string json) | ||
public void Create_DeserializationError(string json) | ||
{ | ||
var mockClient2 = new Mock<MKIOClient>("subscriptionname", Constants.jwtFakeToken); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.