Skip to content

Commit e5ef7e2

Browse files
committed
[tests] Fix tests to cope with the setup.cfg live loading
Signed-off-by: Valerio Cosentino <[email protected]>
1 parent b077467 commit e5ef7e2

File tree

5 files changed

+836
-57
lines changed

5 files changed

+836
-57
lines changed

tests/test-bad-study.cfg

Lines changed: 262 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,262 @@
1+
#
2+
# Test config with only git and github activated
3+
#
4+
5+
6+
# Config values format
7+
#
8+
# List: [val1, val2 ...]
9+
# Int: int_value
10+
# Int as string: "Int"
11+
# List as string: "[val1, val2 ...]"
12+
# String: string_value
13+
# None: None, none
14+
# Boolean: true, True, False, false
15+
16+
[general]
17+
short_name = Grimoire
18+
update = false
19+
min_update_delay = 10
20+
debug = true
21+
# /var/log/sigmordred/
22+
logs_dir = logs
23+
# Number of items per bulk request to Elasticsearch
24+
bulk_size = 100
25+
# Number of items to get from Elasticsearch when scrolling
26+
scroll_size = 100
27+
28+
[projects]
29+
projects_file = test-projects.json
30+
31+
[es_collection]
32+
url = http://localhost:9200
33+
# url = https://admin:admin@localhost:9200
34+
35+
[es_enrichment]
36+
url = http://localhost:9200
37+
# url = https://admin:admin@localhost:9200
38+
autorefresh = false
39+
40+
[sortinghat]
41+
host = 127.0.0.1
42+
user = root
43+
password =
44+
database = test_sh
45+
load_orgs = true
46+
orgs_file = data/orgs_sortinghat.json
47+
identities_api_token = 'xxxx'
48+
identities_file = [data/perceval_identities_sortinghat.json]
49+
affiliate = true
50+
# commonly: Unknown
51+
unaffiliated_group = Unknown
52+
autoprofile = [customer,git,github]
53+
matching = [email]
54+
sleep_for = 120
55+
# sleep_for = 1800
56+
bots_names = [Beloved Bot]
57+
58+
[panels]
59+
kibiter_time_from= "now-30y"
60+
kibiter_default_index= "git"
61+
kibiter_url = http://localhost:5601
62+
63+
[phases]
64+
collection = true
65+
identities = true
66+
enrichment = true
67+
panels = true
68+
69+
[askbot]
70+
collect = false
71+
raw_index = askbot_test-raw
72+
enriched_index = askbot_test
73+
74+
[bugzilla]
75+
raw_index = bugzilla_test-raw
76+
enriched_index = bugzilla-test
77+
78+
[bugzillarest]
79+
raw_index = bugzillarest_test-raw
80+
enriched_index = bugzillarest_test
81+
82+
[confluence]
83+
raw_index = confluence_test-raw
84+
enriched_index = confluence_test
85+
86+
[discourse]
87+
raw_index = discourse_test-raw
88+
enriched_index = discourse_test
89+
90+
[dockerhub]
91+
raw_index = dockerhub_test-raw
92+
enriched_index = dockerhub_test
93+
94+
[functest]
95+
collect=False
96+
raw_index = functest_test-raw
97+
enriched_index = functest_test
98+
99+
[gerrit]
100+
raw_index = gerrit_test-raw
101+
enriched_index = gerrit_test
102+
user = acs
103+
104+
[git]
105+
raw_index = git_test-raw
106+
enriched_index = git_test
107+
studies = [bad_study]
108+
109+
[enrich_demography:1]
110+
date_field = grimoire_creation_date
111+
author_field = author_uuid
112+
113+
[enrich_areas_of_code]
114+
in_index = git_test-raw
115+
out_index = git_test-aoc
116+
117+
[enrich_onion]
118+
in_index = git_test
119+
out_index = git_test-onion
120+
contribs_field = hash
121+
no_incremental = true
122+
123+
[github]
124+
raw_index = github_test-raw
125+
enriched_index = github_test
126+
api-token = XXXXX
127+
sleep-for-rate = true
128+
archive-path = /tmp/test_github_archive
129+
category = issue
130+
sleep-time = 300
131+
132+
[github:pull]
133+
raw_index = github_test-raw-pull
134+
enriched_index = github_test-pull
135+
api-token = XXXXX
136+
sleep-for-rate = true
137+
archive-path = /tmp/test_github_archive
138+
category = pull_request
139+
sleep-time = 300
140+
141+
[gitlab]
142+
raw_index = test_gitlab-raw
143+
enriched_index = test_gitlab
144+
api-token = xxxx
145+
no-archive = true
146+
147+
[google_hits]
148+
raw_index = google_hits_test-raw
149+
enriched_index =google_hits_test
150+
151+
[hyperkitty]
152+
raw_index = hyperkitty_test-raw
153+
enriched_index = hyperkitty_test
154+
from-date = 2017-01-01
155+
156+
[jenkins]
157+
raw_index = jenkins_test-raw
158+
enriched_index = jenkins_test
159+
160+
[jira]
161+
raw_index = jira_test-raw
162+
enriched_index = jira_test
163+
project = PUP
164+
165+
[mattermost]
166+
raw_index = mattermost_test
167+
enriched_index = mattermost_test_enriched
168+
api-token = xxx
169+
170+
[mattermost:group1]
171+
raw_index = mattermost_test_group1
172+
enriched_index = mattermost_test_enriched_group1
173+
api-token = xxx
174+
175+
[mattermost:group2]
176+
raw_index = mattermost_test_group2
177+
enriched_index = mattermost_test_enriched_group2
178+
api-token = zzz
179+
180+
[mbox]
181+
raw_index = mbox_test-raw
182+
enriched_index = mbox_test
183+
184+
[kafka_kip]
185+
no_incremental = true
186+
187+
[mediawiki]
188+
raw_index = mediawiki_test-raw
189+
enriched_index = mediawiki_test
190+
191+
[meetup]
192+
raw_index = meetup_test-raw
193+
enriched_index = meetup_test
194+
api-token = XXXXX
195+
196+
[mozillaclub]
197+
raw_index = mozillaclub_test-raw
198+
enriched_index = mozillaclub_test
199+
200+
[nntp]
201+
raw_index = nntp_grimoire_test-raw
202+
enriched_index = nntp_grimoire_test
203+
204+
[phabricator]
205+
raw_index = phabricator_test-raw
206+
enriched_index = phabricator_test
207+
api-token = XXXXX
208+
209+
[pipermail]
210+
raw_index = pipermail_test-raw
211+
enriched_index = pipermail_test
212+
213+
[puppetforge]
214+
raw_index = puppetforge_test-raw
215+
enriched_index = puppetforge_test
216+
217+
[redmine]
218+
raw_index = redmine_test-raw
219+
enriched_index = redmine_test
220+
api-token = XXXXX
221+
222+
[remo]
223+
raw_index = remo_test-raw
224+
enriched_index = remo_test
225+
226+
[remo:activities]
227+
# Perceval archive already used in [remo]
228+
collect = false
229+
raw_index = remo_activities_test-raw
230+
enriched_index = remo_activities_test
231+
no-archive = true
232+
233+
[rss]
234+
raw_index = rss_test-raw
235+
enriched_index = rss_test
236+
237+
[stackexchange]
238+
es_collection_url = http://127.0.0.1:9200
239+
raw_index = stackexchange_test-raw
240+
enriched_index = stackexchange_test
241+
api-token = XXXXX
242+
243+
[slack]
244+
raw_index = slack_test-raw
245+
enriched_index = slack_test
246+
api-token = XXXXX
247+
248+
[supybot]
249+
raw_index = supybot_test-raw
250+
enriched_index = supybot_test
251+
from-date = 2000-12-09
252+
253+
[telegram]
254+
raw_index = telegram_test-raw
255+
enriched_index = telegram_test
256+
api-token = XXXXX
257+
258+
[twitter]
259+
collect = false
260+
raw_index = twitter_test-raw
261+
enriched_index = twitter_test
262+
api-token = XXXX

0 commit comments

Comments
 (0)