Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/improve tests syntax #35667

Merged
1 change: 1 addition & 0 deletions CHANGELOG-developer.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ The list below covers the major changes between 7.0.0-rc2 and main only.
- Add support for `credentials_json` in `gcp` module, all metricsets {pull}29584[29584]
- Add gcp firestore metricset. {pull}29918[29918]
- Added TESTING_FILEBEAT_FILEPATTERN option for filebeat module pytests {pull}30103[30103]
- Improve tests files with shorter statements. {pull}35667[35667]
- Add gcp dataproc metricset. {pull}30008[30008]
- Add Github action for linting
- Add regex support for drop_fields processor.
Expand Down
2 changes: 1 addition & 1 deletion filebeat/tests/load/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
randomString = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(length))
log_message = timestamp + " " + str(count) + " " + str(uuid.uuid4()) + " " + randomString
my_logger.debug(log_message)
count = count + 1
count += 1
time.sleep(sleepTime)
2 changes: 1 addition & 1 deletion filebeat/tests/open-file-handlers/log_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
while True:
# for i in range(0, 10000):
time.sleep(random.uniform(0, 0.1))
i = i + 1
i += 1
# Tries to cause some more heavy peaks
events = random.randrange(10) + 1
for n in range(events):
Expand Down