MCPcopy
hub / github.com/google/seesaw / applyConfig

Function applyConfig

engine/vserver_test.go:1674–1686  ·  view source on GitHub ↗
(vserver *vserver, file, clusterName, serviceName string)

Source from the content-addressed store, hash-verified

1672}
1673
1674func applyConfig(vserver *vserver, file, clusterName, serviceName string) error {
1675 filename := filepath.Join(testDataDir, file)
1676 n, err := config.ReadConfig(filename, clusterName)
1677 if err != nil {
1678 return err
1679 }
1680 config := n.Cluster.Vservers[serviceName]
1681 if config == nil {
1682 return fmt.Errorf("unable to find vserver config for %s", serviceName)
1683 }
1684 vserver.handleConfigUpdate(config)
1685 return nil
1686}
1687
1688func compareChecks(got, want map[CheckKey]*check) []error {
1689 errs := make([]error, 0)

Callers 2

TestUpdateVserverFunction · 0.85
TestReIPVserverFunction · 0.85

Calls 2

ReadConfigFunction · 0.92
handleConfigUpdateMethod · 0.45

Tested by

no test coverage detected