| 105 | } |
| 106 | |
| 107 | func entryForChangelogs(changeType string, issue int, keys ...string) *chlog.Entry { |
| 108 | keyStr := "default" |
| 109 | if len(keys) > 0 { |
| 110 | keyStr = strings.Join(keys, ",") |
| 111 | } |
| 112 | return &chlog.Entry{ |
| 113 | ChangeLogs: keys, |
| 114 | ChangeType: changeType, |
| 115 | Component: "receiver/foo", |
| 116 | Note: fmt.Sprintf("Some change relevant to [%s]", keyStr), |
| 117 | Issues: []int{issue}, |
| 118 | User: "octocat", |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | func setupTestDir(t *testing.T, entries []*chlog.Entry) { |
| 123 | require.NotNil(t, globalCfg, "test should instantiate globalCfg before calling setupTestDir") |