@@ -1856,7 +1856,6 @@ public async Task TestSqlMetadataValidationForEntitiesWithInvalidSource()
18561856 /// <summary>
18571857 /// This test method validates a sample DAB runtime config file against DAB's JSON schema definition.
18581858 /// It asserts that the validation is successful and there are no validation failures.
1859- /// It also verifies that the expected log message is logged.
18601859 /// </summary>
18611860 [ TestMethod ( "Validates the config file schema." ) , TestCategory ( TestCategory . MSSQL ) ]
18621861 public void TestConfigSchemaIsValid ( )
@@ -1874,20 +1873,11 @@ public void TestConfigSchemaIsValid()
18741873 JsonSchemaValidationResult result = jsonSchemaValidator . ValidateJsonConfigWithSchema ( jsonSchema , jsonData ) ;
18751874 Assert . IsTrue ( result . IsValid ) ;
18761875 Assert . IsTrue ( EnumerableUtilities . IsNullOrEmpty ( result . ValidationErrors ) ) ;
1877- schemaValidatorLogger . Verify (
1878- x => x . Log (
1879- LogLevel . Information ,
1880- It . IsAny < EventId > ( ) ,
1881- It . Is < It . IsAnyType > ( ( o , t ) => o . ToString ( ) ! . Contains ( $ "The config satisfies the schema requirements.") ) ,
1882- It . IsAny < Exception > ( ) ,
1883- ( Func < It . IsAnyType , Exception , string > ) It . IsAny < object > ( ) ) ,
1884- Times . Once ) ;
18851876 }
18861877
18871878 /// <summary>
18881879 /// This test method validates a sample DAB runtime config file against DAB's JSON schema definition.
18891880 /// It asserts that the validation is successful and there are no validation failures when no optional fields are used.
1890- /// It also verifies that the expected log message is logged.
18911881 /// </summary>
18921882 [ DataTestMethod ]
18931883 [ DataRow ( CONFIG_FILE_WITH_NO_OPTIONAL_FIELD , DisplayName = "Validates schema of the config file with no optional fields." ) ]
@@ -1906,14 +1896,6 @@ public void TestBasicConfigSchemaWithNoOptionalFieldsIsValid(string jsonData)
19061896 Assert . IsTrue ( EnumerableUtilities . IsNullOrEmpty ( result . ValidationErrors ) ) ;
19071897
19081898 Assert . IsTrue ( result . IsValid ) ;
1909- schemaValidatorLogger . Verify (
1910- x => x . Log (
1911- LogLevel . Information ,
1912- It . IsAny < EventId > ( ) ,
1913- It . Is < It . IsAnyType > ( ( o , t ) => o . ToString ( ) ! . Contains ( $ "The config satisfies the schema requirements.") ) ,
1914- It . IsAny < Exception > ( ) ,
1915- ( Func < It . IsAnyType , Exception , string > ) It . IsAny < object > ( ) ) ,
1916- Times . Once ) ;
19171899 }
19181900
19191901 [ DataTestMethod ]
@@ -1940,14 +1922,6 @@ public void TestBasicConfigSchemaWithFlexibleBoolean(string Value)
19401922 Assert . IsTrue ( EnumerableUtilities . IsNullOrEmpty ( result . ValidationErrors ) , "Validation Erros null of empty" ) ;
19411923
19421924 Assert . IsTrue ( result . IsValid , "Result should be valid" ) ;
1943- schemaValidatorLogger . Verify (
1944- x => x . Log (
1945- LogLevel . Information ,
1946- It . IsAny < EventId > ( ) ,
1947- It . Is < It . IsAnyType > ( ( o , t ) => o . ToString ( ) ! . Contains ( $ "The config satisfies the schema requirements.") ) ,
1948- It . IsAny < Exception > ( ) ,
1949- ( Func < It . IsAnyType , Exception , string > ) It . IsAny < object > ( ) ) ,
1950- Times . Once ) ;
19511925 }
19521926
19531927 /// <summary>
0 commit comments