aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/securitypolicies_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-09-05 10:46:47 +0200
committerBjørn Erik Pedersen <[email protected]>2024-09-05 12:12:24 +0200
commit66a3a1100167e26a13078c311318cd0576dd14ee (patch)
tree9fa85b2d0170399fca960097e7af050151c68f09 /hugolib/securitypolicies_test.go
parent8f2eac0195cf02f7edbcbce4b7e02768b12762fe (diff)
downloadhugo-66a3a1100167e26a13078c311318cd0576dd14ee.tar.gz
hugo-66a3a1100167e26a13078c311318cd0576dd14ee.zip
Fix stray end p tag in Obsidian callout titles
Also remove test references to deprecated funcs now in ERROR. Closes #12828
Diffstat (limited to 'hugolib/securitypolicies_test.go')
-rw-r--r--hugolib/securitypolicies_test.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/hugolib/securitypolicies_test.go b/hugolib/securitypolicies_test.go
index b0d39c697..3ddda7d6a 100644
--- a/hugolib/securitypolicies_test.go
+++ b/hugolib/securitypolicies_test.go
@@ -188,33 +188,4 @@ mediaTypes=["application/json"]
`)
})
})
-
- c.Run("getJSON, OK", func(c *qt.C) {
- c.Parallel()
- httpTestVariant(c, `{{ $json := getJSON "%[1]s/fruits.json" }}{{ $json.Content }}`, "", nil)
- })
-
- c.Run("getJSON, denied URL", func(c *qt.C) {
- c.Parallel()
- httpTestVariant(c, `{{ $json := getJSON "%[1]s/fruits.json" }}{{ $json.Content }}`, `(?s).*is not whitelisted in policy "security\.http\.urls".*`,
- func(b *sitesBuilder) {
- b.WithConfigFile("toml", `
-[security]
-[security.http]
-urls="none"
-`)
- })
- })
-
- c.Run("getCSV, denied URL", func(c *qt.C) {
- c.Parallel()
- httpTestVariant(c, `{{ $d := getCSV ";" "%[1]s/cities.csv" }}{{ $d.Content }}`, `(?s).*is not whitelisted in policy "security\.http\.urls".*`,
- func(b *sitesBuilder) {
- b.WithConfigFile("toml", `
-[security]
-[security.http]
-urls="none"
-`)
- })
- })
}