MCPcopy
hub / github.com/apache/devlake / configureEncryption

Method configureEncryption

backend/test/helper/client.go:248–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246}
247
248func (d *DevlakeClient) configureEncryption() {
249 v := config.GetConfig()
250 encryptionSecret := v.GetString(plugin.EncodeKeyEnvStr)
251 // only test environment should have this set
252 if encryptionSecret == "" {
253 // default value
254 v.Set(plugin.EncodeKeyEnvStr, "DFLFZLMBBFDDCYWRECDCIYUROPPAKQDFQMMJEFPIKVFVHZBRGAZIHKRJIJZMOHWEVRSCETAGGONPSULGOXITVXISVCQGPSFAOGRDLUANEYDQFBDKVMYYHUZFHYVYGPPT")
255 }
256}
257
258func (d *DevlakeClient) forceSendHttpRequest(retries uint, req *http.Request, onError func(err errors.Error) bool) {
259 d.testCtx.Helper()

Callers 1

ConnectLocalServerFunction · 0.95

Calls 2

GetStringMethod · 0.80
GetConfigMethod · 0.65

Tested by

no test coverage detected