@@ -25,6 +25,83 @@ public void CanBuildUsingIIs()
2525 } , results ) ;
2626 }
2727
28+ [ Fact ]
29+ public void CanBuildWebDirProperties ( )
30+ {
31+ var folder = TestData . Get ( @"TestData\WebDirProperties" ) ;
32+ var build = new Builder ( folder , typeof ( IisExtensionFactory ) , new [ ] { folder } ) ;
33+
34+ var results = build . BuildAndQuery ( Build , validate : true , "Wix4IIsWebSite" , "Wix4IIsWebDir" , "Wix4IIsWebDirProperties" ) ;
35+ WixAssert . CompareLineByLine ( new [ ]
36+ {
37+ "Wix4IIsWebDir:TestDirAccessSSL\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestAccessSSL\t TestAccessSSL\t " ,
38+ "Wix4IIsWebDir:TestDirAccessSSL128\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestAccessSSL128\t TestAccessSSL128\t " ,
39+ "Wix4IIsWebDir:TestDirAccessSSLMapCert\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestAccessSSLMapCert\t TestAccessSSLMapCert\t " ,
40+ "Wix4IIsWebDir:TestDirAccessSSLNegotiateCert\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestAccessSSLNegotiateCert\t TestAccessSSLNegotiateCert\t " ,
41+ "Wix4IIsWebDir:TestDirAccessSSLRequireCert\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestAccessSSLRequireCert\t TestAccessSSLRequireCert\t " ,
42+ "Wix4IIsWebDir:TestDirAnonymousAccess\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestAnonymousAccess\t TestAnonymousAccess\t " ,
43+ "Wix4IIsWebDir:TestDirAspDetailedError\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestAspDetailedError\t TestAspDetailedError\t " ,
44+ "Wix4IIsWebDir:TestDirAuthenticationProviders\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestAuthenticationProviders\t TestAuthenticationProviders\t " ,
45+ "Wix4IIsWebDir:TestDirBasicAuthentication\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestBasicAuthentication\t TestBasicAuthentication\t " ,
46+ "Wix4IIsWebDir:TestDirCacheControlCustom\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestCacheControlCustom\t TestCacheControlCustom\t " ,
47+ "Wix4IIsWebDir:TestDirCacheControlMaxAge\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestCacheControlMaxAge\t TestCacheControlMaxAge\t " ,
48+ //"Wix4IIsWebDir:TestDirCacheControlMaxAgeNull\tfilF5_pLhBuF5b4N9XEo52g_hUM5Lo\tTest\tTestCacheControlMaxAgeNull\tTestCacheControlMaxAgeNull\t",
49+ "Wix4IIsWebDir:TestDirClearCustomError\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestClearCustomError\t TestClearCustomError\t " ,
50+ "Wix4IIsWebDir:TestDirDefaultDocuments\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestDefaultDocuments\t TestDefaultDocuments\t " ,
51+ "Wix4IIsWebDir:TestDirDigestAuthentication\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestDigestAuthentication\t TestDigestAuthentication\t " ,
52+ "Wix4IIsWebDir:TestDirDirBrowseShowDate\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestDirBrowseShowDate\t TestDirBrowseShowDate\t " ,
53+ "Wix4IIsWebDir:TestDirDirBrowseShowExtension\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestDirBrowseShowExtension\t TestDirBrowseShowExtension\t " ,
54+ "Wix4IIsWebDir:TestDirDirBrowseShowLongDate\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestDirBrowseShowLongDate\t TestDirBrowseShowLongDate\t " ,
55+ "Wix4IIsWebDir:TestDirDirBrowseShowSize\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestDirBrowseShowSize\t TestDirBrowseShowSize\t " ,
56+ "Wix4IIsWebDir:TestDirDirBrowseShowTime\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestDirBrowseShowTime\t TestDirBrowseShowTime\t " ,
57+ "Wix4IIsWebDir:TestDirEnableDefaultDoc\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestEnableDefaultDoc\t TestEnableDefaultDoc\t " ,
58+ "Wix4IIsWebDir:TestDirEnableDirBrowsing\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestEnableDirBrowsing\t TestEnableDirBrowsing\t " ,
59+ "Wix4IIsWebDir:TestDirExecute\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestExecute\t TestExecute\t " ,
60+ "Wix4IIsWebDir:TestDirHttpExpires\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestHttpExpires\t TestHttpExpires\t " ,
61+ "Wix4IIsWebDir:TestDirIIsControlledPassword\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestIIsControlledPassword\t TestIIsControlledPassword\t " ,
62+ "Wix4IIsWebDir:TestDirIndex\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestIndex\t TestIndex\t " ,
63+ "Wix4IIsWebDir:TestDirLogVisits\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestLogVisits\t TestLogVisits\t " ,
64+ "Wix4IIsWebDir:TestDirPassportAuthentication\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestPassportAuthentication\t TestPassportAuthentication\t " ,
65+ "Wix4IIsWebDir:TestDirRead\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestRead\t TestRead\t " ,
66+ "Wix4IIsWebDir:TestDirScript\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestScript\t TestScript\t " ,
67+ "Wix4IIsWebDir:TestDirWindowsAuthentication\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestWindowsAuthentication\t TestWindowsAuthentication\t " ,
68+ "Wix4IIsWebDir:TestDirWrite\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test\t TestWrite\t TestWrite\t " ,
69+ "Wix4IIsWebDirProperties:TestAccessSSL\t \t \t \t 0\t \t \t \t \t \t \t \t \t 8\t \t " ,
70+ "Wix4IIsWebDirProperties:TestAccessSSL128\t \t \t \t 0\t \t \t \t \t \t \t \t \t 256\t \t " ,
71+ "Wix4IIsWebDirProperties:TestAccessSSLMapCert\t \t \t \t 0\t \t \t \t \t \t \t \t \t 128\t \t " ,
72+ "Wix4IIsWebDirProperties:TestAccessSSLNegotiateCert\t \t \t \t 0\t \t \t \t \t \t \t \t \t 32\t \t " ,
73+ "Wix4IIsWebDirProperties:TestAccessSSLRequireCert\t \t \t \t 0\t \t \t \t \t \t \t \t \t 64\t \t " ,
74+ "Wix4IIsWebDirProperties:TestAnonymousAccess\t \t 1\t \t 0\t \t \t \t \t \t \t \t \t \t \t " ,
75+ "Wix4IIsWebDirProperties:TestAspDetailedError\t \t \t \t 0\t \t \t \t 1\t \t \t \t \t \t \t " ,
76+ "Wix4IIsWebDirProperties:TestAuthenticationProviders\t \t \t \t 0\t \t \t \t \t \t \t \t \t \t NTLM\t " ,
77+ "Wix4IIsWebDirProperties:TestBasicAuthentication\t \t 2\t \t 0\t \t \t \t \t \t \t \t \t \t \t " ,
78+ "Wix4IIsWebDirProperties:TestCacheControlCustom\t \t \t \t 0\t \t \t \t \t \t \t CacheControl\t \t \t \t " ,
79+ "Wix4IIsWebDirProperties:TestCacheControlMaxAge\t \t \t \t 0\t \t \t \t \t \t -1\t \t \t \t \t " ,
80+ //"Wix4IIsWebDirProperties:TestCacheControlMaxAgeNull\t\t\t\t0\t\t\t\t\t\t4294967295\t\t\t\t\t",
81+ "Wix4IIsWebDirProperties:TestClearCustomError\t \t \t \t 0\t \t \t \t \t \t \t \t 1\t \t \t " ,
82+ "Wix4IIsWebDirProperties:TestDefaultDocuments\t \t \t \t 0\t \t \t DefaultDocument.html,index.html,index.htm\t \t \t \t \t \t \t \t " ,
83+ "Wix4IIsWebDirProperties:TestDigestAuthentication\t \t 16\t \t 0\t \t \t \t \t \t \t \t \t \t \t " ,
84+ "Wix4IIsWebDirProperties:TestDirBrowseShowDate\t \t \t \t 0\t \t \t \t \t \t \t \t \t \t \t 1" ,
85+ "Wix4IIsWebDirProperties:TestDirBrowseShowExtension\t \t \t \t 0\t \t \t \t \t \t \t \t \t \t \t 2" ,
86+ "Wix4IIsWebDirProperties:TestDirBrowseShowLongDate\t \t \t \t 0\t \t \t \t \t \t \t \t \t \t \t 4" ,
87+ "Wix4IIsWebDirProperties:TestDirBrowseShowSize\t \t \t \t 0\t \t \t \t \t \t \t \t \t \t \t 8" ,
88+ "Wix4IIsWebDirProperties:TestDirBrowseShowTime\t \t \t \t 0\t \t \t \t \t \t \t \t \t \t \t 16" ,
89+ "Wix4IIsWebDirProperties:TestEnableDefaultDoc\t \t \t \t 0\t \t \t \t \t \t \t \t \t \t \t 32" ,
90+ "Wix4IIsWebDirProperties:TestEnableDirBrowsing\t \t \t \t 0\t \t \t \t \t \t \t \t \t \t \t 64" ,
91+ "Wix4IIsWebDirProperties:TestExecute\t 4\t \t \t 0\t \t \t \t \t \t \t \t \t \t \t " ,
92+ "Wix4IIsWebDirProperties:TestHttpExpires\t \t \t \t 0\t \t \t \t \t yes\t \t \t \t \t \t " ,
93+ "Wix4IIsWebDirProperties:TestIIsControlledPassword\t \t \t \t 1\t \t \t \t \t \t \t \t \t \t \t " ,
94+ "Wix4IIsWebDirProperties:TestIndex\t \t \t \t 0\t \t 1\t \t \t \t \t \t \t \t \t " ,
95+ "Wix4IIsWebDirProperties:TestLogVisits\t \t \t \t 0\t 1\t \t \t \t \t \t \t \t \t \t " ,
96+ "Wix4IIsWebDirProperties:TestPassportAuthentication\t \t 64\t \t 0\t \t \t \t \t \t \t \t \t \t \t " ,
97+ "Wix4IIsWebDirProperties:TestRead\t 1\t \t \t 0\t \t \t \t \t \t \t \t \t \t \t " ,
98+ "Wix4IIsWebDirProperties:TestScript\t 512\t \t \t 0\t \t \t \t \t \t \t \t \t \t \t " ,
99+ "Wix4IIsWebDirProperties:TestWindowsAuthentication\t \t 4\t \t 0\t \t \t \t \t \t \t \t \t \t \t " ,
100+ "Wix4IIsWebDirProperties:TestWrite\t 2\t \t \t 0\t \t \t \t \t \t \t \t \t \t \t " ,
101+ "Wix4IIsWebSite:Test\t filF5_pLhBuF5b4N9XEo52g_hUM5Lo\t Test web server\t \t TestWebSiteProductDirectory\t 2\t 2\t TestAddress\t \t \t \t \t " ,
102+ } , results ) ;
103+ }
104+
28105 private static void Build ( string [ ] args )
29106 {
30107 var newArgs = args . ToList ( ) ;
0 commit comments