27 references to WithDenoAllow
Aspire.Hosting.JavaScript (2)
DenoHostingExtensions.cs (1)
99
/// configured with <see cref="
WithDenoAllow
"/>.
JavaScriptHostingExtensions.cs (1)
797
/// modes) can be configured with the fluent <c>WithDeno*</c> methods (for example <see cref="
WithDenoAllow
"/>,
Aspire.Hosting.JavaScript.Tests (25)
AddDenoAppTests.cs (25)
481
.
WithDenoAllow
(DenoPermissionKind.Read, @"data\read")
483
.
WithDenoAllow
(DenoPermissionKind.Ffi, @"native\lib");
1380
.
WithDenoAllow
(DenoPermissionKind.Net, "localhost");
1422
var exception = Assert.Throws<ArgumentNullException>(() => builder.
WithDenoAllow
(DenoPermissionKind.Net));
1443
denoApp.
WithDenoAllow
((DenoPermissionKind)42);
1469
denoApp.
WithDenoAllow
(DenoPermissionKind.Read, value!);
1481
var args = await GetDenoArgsAsync(d => d.
WithDenoAllow
(DenoPermissionKind.Read, " "));
1812
.
WithDenoAllow
(DenoPermissionKind.Read, "/etc/app")
1896
d.
WithDenoAllow
(DenoPermissionKind.Net, hosts);
1931
.
WithDenoAllow
(DenoPermissionKind.Env, "PORT", "HOME")
1935
.
WithDenoAllow
(DenoPermissionKind.Net, "localhost:8080", "api.internal")
1936
.
WithDenoAllow
(DenoPermissionKind.Read, "/etc/app")
1938
.
WithDenoAllow
(DenoPermissionKind.Write, "/var/app")
1940
.
WithDenoAllow
(DenoPermissionKind.Run, "git")
1942
.
WithDenoAllow
(DenoPermissionKind.Import, "cdn.example")
1943
.
WithDenoAllow
(DenoPermissionKind.Sys)
1945
.
WithDenoAllow
(DenoPermissionKind.Ffi, "./native.so")
1975
.
WithDenoAllow
(DenoPermissionKind.Net, "localhost")
2166
.
WithDenoAllow
(DenoPermissionKind.Net, "0.0.0.0:8000")
2204
.
WithDenoAllow
(DenoPermissionKind.Net, "localhost") // permissions belong to the task; must not be emitted
2246
.
WithDenoAllow
(DenoPermissionKind.Net, "0.0.0.0:8000", "db:5432")
2247
.
WithDenoAllow
(DenoPermissionKind.Env, "PORT", "DATABASE_URL")
2248
.
WithDenoAllow
(DenoPermissionKind.Read, "./config")
2275
var ex = Assert.Throws<ArgumentException>(() => deno.
WithDenoAllow
(DenoPermissionKind.Read, "data,secret"));
2286
deno.
WithDenoAllow
(DenoPermissionKind.Read, "data", "secret");