mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
CLI: Refactor cluster_helpers.go and cluster_theme_pull_oauth_test.go
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -86,10 +86,7 @@ func TestClusterThemePull_JoinTokenToOAuth(t *testing.T) {
|
||||
return
|
||||
}
|
||||
// Read body to check rotateSecret flag
|
||||
var req struct {
|
||||
RotateSecret bool `json:"rotateSecret"`
|
||||
NodeName string `json:"nodeName"`
|
||||
}
|
||||
var req cluster.RegisterRequest
|
||||
_ = json.NewDecoder(r.Body).Decode(&req)
|
||||
sawRotateSecret = req.RotateSecret
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
|
||||
Reference in New Issue
Block a user