Add .xsaccess test data

This commit is contained in:
Mauro Baluda
2024-06-04 17:36:05 +02:00
parent 7b3e9b4ec1
commit 576ee7892d
3 changed files with 26 additions and 2 deletions

View File

@@ -182,6 +182,7 @@ public class AutoBuildTests {
addFile(true, LGTM_SRC, "package.json");
addFile(true, LGTM_SRC, ".eslintrc.yml");
addFile(true, LGTM_SRC, "vendor", "leftpad", "index.js");
addFile(true, LGTM_SRC, ".xsaccess");
runTest();
}
@@ -463,8 +464,6 @@ public class AutoBuildTests {
public void hiddenFiles() throws IOException {
Path eslintrc = addFile(true, LGTM_SRC, ".eslintrc.json");
hide(eslintrc);
Path xsaccess = addFile(true, LGTM_SRC, ".xsaccess");
hide(xsaccess);
runTest();
}

View File

@@ -0,0 +1,3 @@
{
"exposed": true // Expose data via http
}

View File

@@ -0,0 +1,22 @@
#10000=@"/.xaccess;sourcefile"
files(#10000,".xaccess")
#10001=@"/;folder"
folders(#10001,"/")
containerparent(#10001,#10000)
#10002=@"loc,{#10000},0,0,0,0"
locations_default(#10002,#10000,0,0,0,0)
hasLocation(#10000,#10002)
#20000=*
json(#20000,5,#10000,0,"{\n ""ex ... http\n}")
#20001=@"loc,{#10000},1,1,3,1"
locations_default(#20001,#10000,1,1,3,1)
json_locations(#20000,#20001)
#20002=*
json(#20002,1,#20000,0,"true")
#20003=@"loc,{#10000},2,14,2,17"
locations_default(#20001,#10000,2,14,2,17)
json_locations(#20000,#20001)
json_literals("true","true",#20002)
json_properties(#20000,"exposed",#20002)
numlines(#10000,3,0,0)
filetype(#10000,"json")