webperf_core
webperf_core copied to clipboard
Test Improvement - Software - Matomo
Feature/improvement
Code was commented out, let's see if we want to implement it in one way or an other.
# TODO: THIS MUST BE LOOKED AT FROM A 'COMPUTER BREACH' ARGUMENT,
# if item['name'] == 'matomo':
# a = 1
# THERE IS NO REFERENCE TO THIS SO IT COULD (WRONGLY) BE ARGUED THAT YOU ARE TRYING TO HACK
# matomo = {}
# matomo['name'] = 'Matomo'
# matomo['url'] = item['url']
# matomo_version = 'Matomo'
# # matomo_o = urlparse(item['url'])
# # matomo_hostname = matomo_o.hostname
# # matomo_url = '{0}://{1}/CHANGELOG.md'.format(
# # matomo_o.scheme, matomo_hostname)
# # matomo_changelog_url_regex = r"(?P<url>.*)\/(matomo|piwik).(js|php)"
# # matches = re.finditer(
# # matomo_changelog_url_regex, item['url'], re.MULTILINE)
# # for matchNum, match in enumerate(matches, start=1):
# # matomo_url = match.group('url') + '/CHANGELOG.md'
# # matomo_content = httpRequestGetContent(matomo_url)
# # matomo_regex = r"## Matomo (?P<version>[\.0-9]+)"
# # matches = re.finditer(
# # matomo_regex, matomo_content, re.MULTILINE)
# # for matchNum, match in enumerate(matches, start=1):
# # matomo_version = match.group('version')
# # matomo['version'] = matomo_version
# # break
# TODO: handle matomo like software rules where version = '>=4.x'.
# TODO: handle matomo like software rules where version = '>4.x'.
# TODO: handle matomo like software rules where version = '<5.x'.
# TODO: handle matomo like software rules where version = '=4.x'.
After discussions it has been concluded that this is out of scope for webperf_core, closing issue.