Skip to content

Commit

Permalink
check activity types
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Shandling committed Feb 19, 2025
1 parent 45ac22f commit b410347
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/service/integration_enterprise_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2546,11 +2546,13 @@ func (s *integrationEnterpriseTestSuite) TestGitOpsModeConfig() {
s.Do("PATCH", "/api/latest/fleet/config", json.RawMessage(`{
"gitops": { "gitops_mode_enabled": true, "repository_url": "a.b.cc" }
}`), http.StatusOK)
s.lastActivityOfTypeMatches(fleet.ActivityTypeEnabledGitOpsMode{}.ActivityName(), "", 0)

// turn off, persists repo url
s.Do("PATCH", "/api/latest/fleet/config", json.RawMessage(`{
"gitops": { "gitops_mode_enabled": false, "repository_url": "a.b.cc" }
}`), http.StatusOK)
s.lastActivityOfTypeMatches(fleet.ActivityTypeDisabledGitOpsMode{}.ActivityName(), "", 0)
}

func (s *integrationEnterpriseTestSuite) assertAppleOSUpdatesDeclaration(teamID *uint, profileName string, expected *fleet.AppleOSUpdateSettings) {
Expand Down

0 comments on commit b410347

Please sign in to comment.