27 references to WithDenoAllow
Aspire.Hosting.JavaScript (2)
DenoHostingExtensions.cs (1)
99
/// configured with <see cref="
WithDenoAllow
"/>.
JavaScriptHostingExtensions.cs (1)
799
/// modes) can be configured with the fluent <c>WithDeno*</c> methods (for example <see cref="
WithDenoAllow
"/>,
Aspire.Hosting.JavaScript.Tests (25)
AddDenoAppTests.cs (25)
482
.
WithDenoAllow
(DenoPermissionKind.Read, @"data\read")
484
.
WithDenoAllow
(DenoPermissionKind.Ffi, @"native\lib");
1381
.
WithDenoAllow
(DenoPermissionKind.Net, "localhost");
1423
var exception = Assert.Throws<ArgumentNullException>(() => builder.
WithDenoAllow
(DenoPermissionKind.Net));
1444
denoApp.
WithDenoAllow
((DenoPermissionKind)42);
1470
denoApp.
WithDenoAllow
(DenoPermissionKind.Read, value!);
1482
var args = await GetDenoArgsAsync(d => d.
WithDenoAllow
(DenoPermissionKind.Read, " "));
1813
.
WithDenoAllow
(DenoPermissionKind.Read, "/etc/app")
1897
d.
WithDenoAllow
(DenoPermissionKind.Net, hosts);
1932
.
WithDenoAllow
(DenoPermissionKind.Env, "PORT", "HOME")
1936
.
WithDenoAllow
(DenoPermissionKind.Net, "localhost:8080", "api.internal")
1937
.
WithDenoAllow
(DenoPermissionKind.Read, "/etc/app")
1939
.
WithDenoAllow
(DenoPermissionKind.Write, "/var/app")
1941
.
WithDenoAllow
(DenoPermissionKind.Run, "git")
1943
.
WithDenoAllow
(DenoPermissionKind.Import, "cdn.example")
1944
.
WithDenoAllow
(DenoPermissionKind.Sys)
1946
.
WithDenoAllow
(DenoPermissionKind.Ffi, "./native.so")
1976
.
WithDenoAllow
(DenoPermissionKind.Net, "localhost")
2167
.
WithDenoAllow
(DenoPermissionKind.Net, "0.0.0.0:8000")
2205
.
WithDenoAllow
(DenoPermissionKind.Net, "localhost") // permissions belong to the task; must not be emitted
2247
.
WithDenoAllow
(DenoPermissionKind.Net, "0.0.0.0:8000", "db:5432")
2248
.
WithDenoAllow
(DenoPermissionKind.Env, "PORT", "DATABASE_URL")
2249
.
WithDenoAllow
(DenoPermissionKind.Read, "./config")
2276
var ex = Assert.Throws<ArgumentException>(() => deno.
WithDenoAllow
(DenoPermissionKind.Read, "data,secret"));
2287
deno.
WithDenoAllow
(DenoPermissionKind.Read, "data", "secret");