Skip to content

Commit

Permalink
Merge pull request PelicanPlatform#1799 from turetske/remove-tls-defer
Browse files Browse the repository at this point in the history
Remove tls defer
  • Loading branch information
turetske authored Dec 6, 2024
2 parents 6c9fc61 + 598ef7f commit c345e67
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 52 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,5 @@ jobs:
run: ./github_scripts/get_put_test.sh
- name: Run End-to-End Test for Director stat
run: ./github_scripts/stat_test.sh
- name: Run End-to-End Test of x509 access
run: ./github_scripts/x509_test.sh
- name: Run End-to-End Test for --version flag
run: ./github_scripts/version_test.sh
4 changes: 0 additions & 4 deletions xrootd/resources/xrootd-cache.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ pfc.writequeue 16 4
pfc.ram 4g
pfc.diskusage {{if .Cache.LowWatermark}}{{.Cache.LowWatermark}}{{else}}0.90{{end}} {{if .Cache.HighWaterMark}}{{.Cache.HighWaterMark}}{{else}}0.95{{end}} purgeinterval 300s
xrootd.fslib ++ throttle # throttle plugin is needed to calculate server IO load
http.tlsclientauth defer
{{- range $Prefix := .Cache.X509ClientAuthenticationPrefixes}}
http.tlsrequiredprefix {{$Prefix}}
{{- end}}
{{if .Cache.Concurrency}}
throttle.throttle concurrency {{.Cache.Concurrency}}
{{end}}
Expand Down
46 changes: 0 additions & 46 deletions xrootd/xrootd_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,52 +582,6 @@ func TestXrootDCacheConfig(t *testing.T) {
assert.NotNil(t, configPath)
})

t.Run("TestCacheHTTPTLSRequiredPrefixCorrectConfig", func(t *testing.T) {
xrootd := xrootdTest{T: t}
xrootd.setup()

// Set our config
viper.Set("Cache.X509ClientAuthenticationPrefixes", []string{"pref1", "pref2", "pref3"})

// Generate the xrootd config
configPath, err := ConfigXrootd(ctx, false)
require.NoError(t, err)
assert.NotNil(t, configPath)

// Verify the output
file, err := os.Open(configPath)
assert.NoError(t, err)
defer file.Close()

content, err := io.ReadAll(file)
assert.NoError(t, err)
assert.Contains(t, string(content), "http.tlsrequiredprefix pref1")
assert.Contains(t, string(content), "http.tlsrequiredprefix pref2")
assert.Contains(t, string(content), "http.tlsrequiredprefix pref3")
})

t.Run("TestCacheAuthenticationPrefixes", func(t *testing.T) {
xrootd := xrootdTest{T: t}
xrootd.setup()

// Set our config
viper.Set("Cache.X509AuthenticationPrefixes", []string{})

// Generate the xrootd config
configPath, err := ConfigXrootd(ctx, false)
require.NoError(t, err)
assert.NotNil(t, configPath)

// Verify the output
file, err := os.Open(configPath)
assert.NoError(t, err)
defer file.Close()

content, err := io.ReadAll(file)
assert.NoError(t, err)
assert.NotContains(t, string(content), "http.tlsrequiredprefix")
})

t.Run("TestNestedDataMetaNamespace", func(t *testing.T) {
testDir := t.TempDir()
viper.Set("Cache.StorageLocation", testDir)
Expand Down

0 comments on commit c345e67

Please sign in to comment.