Remove obsolete assertions to fix failing tests (#39249)

This commit is contained in:
Martin Angers
2026-02-03 13:01:49 -05:00
committed by GitHub
parent 471d200b3d
commit b25c9522e4
2 changed files with 0 additions and 17 deletions
@@ -41,11 +41,6 @@ func TestIntegrationsPreview(t *testing.T) {
// run some sanity checks on the preview environment
// starter library queries must have been loaded
queries := fleetctl.RunAppForTest(t, []string{"get", "queries", "--config", configPath, "--json"})
n := strings.Count(queries, `"kind":"query"`)
require.Greater(t, n, 0)
// app configuration must disable analytics
appConf := fleetctl.RunAppForTest(t, []string{"get", "config", "--include-server-config", "--config", configPath, "--yaml"})
ok := strings.Contains(appConf, `enable_analytics: false`)
-12
View File
@@ -502,18 +502,6 @@ func TestApplyStarterLibraryWithMockClient(t *testing.T) {
teamName := team1["name"].(string)
require.NotEmpty(t, teamName, "Team name should not be empty")
// Verify the scripts
scripts, ok := team1["scripts"].([]interface{})
require.True(t, ok, "Team should have scripts")
require.Len(t, scripts, 3, "Team should have 3 scripts")
// Verify that script references were rewritten to point to the temporary directory
for _, v := range scripts {
path := v.(string)
assert.Contains(t, path, os.TempDir(), "Script path should contain the temporary directory")
assert.True(t, filepath.IsAbs(path), "Script path should be absolute")
}
// Verify that the starter library URL was requested
assert.Contains(t, mockRT.calls, starterLibraryURL, "The starter library URL should have been requested")
}