(path string, old string, new string)
| 21 | } |
| 22 | |
| 23 | func replaceConfig(path string, old string, new string) { |
| 24 | r := regexp.MustCompile(old) |
| 25 | newConfig := r.ReplaceAllString(fileAsString(path), new) |
| 26 | err := os.WriteFile(path, []byte(newConfig), 0600) |
| 27 | Expect(err).ToNot(HaveOccurred()) |
| 28 | } |
| 29 | |
| 30 | var _ = Describe("custom oauth client id", func() { |
| 31 | var configPath string |
no test coverage detected