27 references to WithDenoAllow
Aspire.Hosting.JavaScript (2)
DenoHostingExtensions.cs (1)
96
/// configured with <see cref="
WithDenoAllow
"/>.
JavaScriptHostingExtensions.cs (1)
810
/// modes) can be configured with the fluent <c>WithDeno*</c> methods (for example <see cref="
WithDenoAllow
"/>,
Aspire.Hosting.JavaScript.Tests (25)
AddDenoAppTests.cs (25)
478
.
WithDenoAllow
(DenoPermissionKind.Read, @"data\read")
480
.
WithDenoAllow
(DenoPermissionKind.Ffi, @"native\lib");
1377
.
WithDenoAllow
(DenoPermissionKind.Net, "localhost");
1419
var exception = Assert.Throws<ArgumentNullException>(() => builder.
WithDenoAllow
(DenoPermissionKind.Net));
1440
denoApp.
WithDenoAllow
((DenoPermissionKind)42);
1466
denoApp.
WithDenoAllow
(DenoPermissionKind.Read, value!);
1478
var args = await GetDenoArgsAsync(d => d.
WithDenoAllow
(DenoPermissionKind.Read, " "));
1809
.
WithDenoAllow
(DenoPermissionKind.Read, "/etc/app")
1893
d.
WithDenoAllow
(DenoPermissionKind.Net, hosts);
1928
.
WithDenoAllow
(DenoPermissionKind.Env, "PORT", "HOME")
1932
.
WithDenoAllow
(DenoPermissionKind.Net, "localhost:8080", "api.internal")
1933
.
WithDenoAllow
(DenoPermissionKind.Read, "/etc/app")
1935
.
WithDenoAllow
(DenoPermissionKind.Write, "/var/app")
1937
.
WithDenoAllow
(DenoPermissionKind.Run, "git")
1939
.
WithDenoAllow
(DenoPermissionKind.Import, "cdn.example")
1940
.
WithDenoAllow
(DenoPermissionKind.Sys)
1942
.
WithDenoAllow
(DenoPermissionKind.Ffi, "./native.so")
1972
.
WithDenoAllow
(DenoPermissionKind.Net, "localhost")
2163
.
WithDenoAllow
(DenoPermissionKind.Net, "0.0.0.0:8000")
2201
.
WithDenoAllow
(DenoPermissionKind.Net, "localhost") // permissions belong to the task; must not be emitted
2243
.
WithDenoAllow
(DenoPermissionKind.Net, "0.0.0.0:8000", "db:5432")
2244
.
WithDenoAllow
(DenoPermissionKind.Env, "PORT", "DATABASE_URL")
2245
.
WithDenoAllow
(DenoPermissionKind.Read, "./config")
2272
var ex = Assert.Throws<ArgumentException>(() => deno.
WithDenoAllow
(DenoPermissionKind.Read, "data,secret"));
2283
deno.
WithDenoAllow
(DenoPermissionKind.Read, "data", "secret");