Skip to content

Commit

Permalink
add system data validation (Azure#9)
Browse files Browse the repository at this point in the history
* vnet and platform version tests

* validate system data

Co-authored-by: Kacie <[email protected]>
  • Loading branch information
solankisamir and KacieKK authored Dec 2, 2021
1 parent 30e482f commit 7fa89f6
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
// license information.
//

using System.Collections.Generic;
using ApiManagementManagement.Tests.Helpers;
using Microsoft.Azure.Management.ApiManagement.Models;
using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
using System.Collections.Generic;
using Xunit;
using ApiManagementManagement.Tests.Helpers;

namespace ApiManagement.Tests.ResourceProviderTests
{
Expand Down Expand Up @@ -49,6 +49,13 @@ private void ValidateService(
Assert.Equal(expectedPublisherEmail, service.PublisherEmail);
Assert.Equal(platformVersion, service.PlatformVersion);
Assert.Equal("Enabled", service.PublicNetworkAccess);
Assert.NotNull(service.SystemData);
Assert.NotNull(service.SystemData.CreatedAt);
Assert.NotNull(service.SystemData.CreatedBy);
Assert.Equal("Application", service.SystemData.CreatedByType);
Assert.NotNull(service.SystemData.LastModifiedAt);
Assert.NotNull(service.SystemData.LastModifiedBy);
Assert.Equal("Application", service.SystemData.LastModifiedByType);
}
}
}

0 comments on commit 7fa89f6

Please sign in to comment.