Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
kvch committed Feb 4, 2019
1 parent db5410a commit a30035d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions filebeat/tests/system/test_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,24 @@ def test_generate_fields_yml(self):
assert exit_code == 0

test_pipeline_path = os.path.join(self.beat_path, "tests", "system", "input", "my-module-pipeline.json")
fileset_pipeline = os.path.join(self.beat_path, "test_modules", "module",
fileset_pipeline = os.path.join("test_modules", "module",
"my_module", "my_fileset", "ingest", "pipeline.json")

print(os.path.isdir("test_modules"))
print(os.path.isdir(os.path.join("test_modules", "module")))
print(os.path.isdir(os.path.join("test_modules", "module", "my_module")))
print(os.path.isdir(os.path.join("test_modules", "module", "my_module", "my_fileset")))
print(os.path.isdir(os.path.join("test_modules", "module", "my_module", "my_fileset", "ingest")))
print(os.path.isdir(os.path.join("test_modules", "module", "my_module", "my_fileset", "ingest")))
print(os.path.exists(os.path.join("test_modules", "module", "my_module", "my_fileset", "ingest", "pipeline.json")))
print(os.path.exists(fileset_pipeline))
print(os.path.exists(test_pipeline_path))
shutil.copyfile(test_pipeline_path, fileset_pipeline)

print(fileset_pipeline)
print(os.path.abspath(fileset_pipeline))
exit_code = self.run_beat(
extra_args=["generate", "fields", "my_module", "my_fileset", "-es-beats", os.path.join(self.beat_path, "test_modules"), "-without-documentation"])
extra_args=["generate", "fields", "my_module", "my_fileset", "-es-beats", "test_modules", "-without-documentation"])
assert exit_code == 0

fields_yml_path = os.path.join("test_modules", "module", "my_module", "my_fileset", "_meta", "fields.yml")
Expand Down

0 comments on commit a30035d

Please sign in to comment.