(t *testing.T)
| 1442 | } |
| 1443 | |
| 1444 | func TestSetupServerContext(t *testing.T) { |
| 1445 | base.SetUpTestLogging(t, base.LevelInfo, base.KeyAll) |
| 1446 | t.Run("Create server context with a valid configuration", func(t *testing.T) { |
| 1447 | config := DefaultStartupConfig("") |
| 1448 | config.Bootstrap.Server = base.UnitTestUrl() // Valid config requires server to be explicitly defined |
| 1449 | config.Bootstrap.UseTLSServer = base.Ptr(base.ServerIsTLS(base.UnitTestUrl())) |
| 1450 | config.Bootstrap.ServerTLSSkipVerify = base.Ptr(base.TestTLSSkipVerify()) |
| 1451 | config.Bootstrap.Username = base.TestClusterUsername() |
| 1452 | config.Bootstrap.Password = base.TestClusterPassword() |
| 1453 | ctx := base.TestCtx(t) |
| 1454 | sc, err := SetupServerContext(ctx, &config, false) |
| 1455 | require.NoError(t, err) |
| 1456 | defer sc.Close(ctx) |
| 1457 | require.NotNil(t, sc) |
| 1458 | }) |
| 1459 | } |
| 1460 | |
| 1461 | // CBG-1583 - config group ID EE-only |
| 1462 | func TestConfigGroupIDValidation(t *testing.T) { |
nothing calls this directly
no test coverage detected