private void VerifyDatabase(Database database, string databaseName, TimeSpan?softDeletePeriod, TimeSpan?hotCachePeriod, string clusterName) { var databaseFullName = ResourcesNamesUtils.GetFullDatabaseName(clusterName, databaseName); Assert.Equal(database.Name, databaseFullName); Assert.Equal(database.SoftDeletePeriod, softDeletePeriod); Assert.Equal(database.HotCachePeriod, hotCachePeriod); }
private void VerifyDatabase(Database database, string databaseName, int softDeletePeriodInDays, int hotCachePeriodInDays, string clusterName) { var databaseFullName = ResourcesNamesUtils.GetFullDatabaseName(clusterName, databaseName); Assert.Equal(database.Name, databaseFullName); Assert.Equal(database.SoftDeletePeriodInDays, softDeletePeriodInDays); Assert.Equal(database.HotCachePeriodInDays, hotCachePeriodInDays); }
private void VerifyScript(Script createdScript, string scriptUrl, string forceUpdateTag, bool continueOnEerros, string clusterName, string databaseName, string scriptName) { var eventHubFullName = ResourcesNamesUtils.GetDatabaseChildFullName(clusterName, databaseName, scriptName); Assert.Equal(createdScript.Name, eventHubFullName); Assert.Equal(createdScript.ForceUpdateTag, forceUpdateTag); Assert.Equal(createdScript.ScriptUrl, scriptUrl); }
private void VerifyIotHub(IotHubDataConnection createdDataConnection, string iotHubConnectionName, string iotHubResourceId, string consumerGroupName, string clusterName, string databaseName, string dataFormat) { var iotHubFullName = ResourcesNamesUtils.GetDataConnectionFullName(clusterName, databaseName, iotHubConnectionName); Assert.Equal(createdDataConnection.Name, iotHubFullName); Assert.Equal(createdDataConnection.IotHubResourceId, iotHubResourceId); Assert.Equal(createdDataConnection.ConsumerGroup, consumerGroupName); Assert.Equal(createdDataConnection.DataFormat, dataFormat); }
private void VerifyAttachedDatabaseConfiguration(AttachedDatabaseConfiguration createdAttachedDatabaseConfiguration, string attachedDatabaseConfigurationName, string clusterName, string databaseName, string clusterResourceId, string defaultPrincipalsModificationKind) { var attahcedDatabaseConfigurationFullName = ResourcesNamesUtils.GetAttachedDatabaseConfigurationName(clusterName, attachedDatabaseConfigurationName); Assert.Equal(createdAttachedDatabaseConfiguration.Name, attahcedDatabaseConfigurationFullName); Assert.Equal(createdAttachedDatabaseConfiguration.DatabaseName, databaseName); Assert.Equal(createdAttachedDatabaseConfiguration.ClusterResourceId, clusterResourceId); Assert.Equal(createdAttachedDatabaseConfiguration.DefaultPrincipalsModificationKind, defaultPrincipalsModificationKind); }
private void VerifyReadOnlyFollowingDatabase(ReadOnlyFollowingDatabase database, string databaseName, TimeSpan?softDeletePeriod, TimeSpan?hotCachePeriod, string principalsModificationKind, string clusterName) { var databaseFullName = ResourcesNamesUtils.GetFullDatabaseName(clusterName, databaseName); Assert.NotNull(database); Assert.Equal(database.Name, databaseFullName); Assert.Equal(softDeletePeriod, database.SoftDeletePeriod); Assert.Equal(hotCachePeriod, database.HotCachePeriod); Assert.Equal(principalsModificationKind, database.PrincipalsModificationKind); }
private void VerifyEventHub(EventHubDataConnection createdDataConnection, string eventHubConnectionName, string eventHubResourceId, string consumerGroupName, string clusterName, string databaseName, string dataFormat) { var eventHubFullName = ResourcesNamesUtils.GetFullEventHubName(clusterName, databaseName, eventHubConnectionName); Assert.Equal(createdDataConnection.Name, eventHubFullName); Assert.Equal(createdDataConnection.EventHubResourceId, eventHubResourceId); Assert.Equal(createdDataConnection.ConsumerGroup, consumerGroupName); Assert.Equal(createdDataConnection.Name, eventHubFullName); Assert.Equal(createdDataConnection.DataFormat, dataFormat); }
private void VerifyEventGrid(EventGridDataConnection createdDataConnection, string eventGridConnectinoName, string eventHubResourceId, string consumerGroupName, string clusterName, string databaseName, string dataFormat, string storageAccountResourceId, string tableName) { var eventGridFullName = ResourcesNamesUtils.GetDataConnectionFullName(clusterName, databaseName, eventGridConnectinoName); Assert.Equal(createdDataConnection.Name, eventGridFullName); Assert.Equal(createdDataConnection.EventHubResourceId, eventHubResourceId); Assert.Equal(createdDataConnection.ConsumerGroup, consumerGroupName); Assert.Equal(createdDataConnection.DataFormat, dataFormat); Assert.Equal(createdDataConnection.StorageAccountResourceId, storageAccountResourceId); Assert.Equal(createdDataConnection.TableName, tableName); }