SetConfigContent writes given raw config into given directory as "config.json".
(dir string, rawConfig string)
| 99 | |
| 100 | // SetConfigContent writes given raw config into given directory as "config.json". |
| 101 | func SetConfigContent(dir string, rawConfig string) { |
| 102 | err := os.MkdirAll(filepath.Join(dir), 0777) |
| 103 | Expect(err).ToNot(HaveOccurred()) |
| 104 | err = os.WriteFile(filepath.Join(dir, "config.json"), []byte(rawConfig), 0644) |
| 105 | Expect(err).ToNot(HaveOccurred()) |
| 106 | } |
| 107 | |
| 108 | // ExpiredAccessToken returns an example expired bearer token. |
| 109 | func ExpiredAccessToken() string { |
no outgoing calls