Skip to content

Commit

Permalink
Adding json files to be included in stix shifter package. (#104)
Browse files Browse the repository at this point in the history
Default field selection option is select_fields
  • Loading branch information
benjamin-craig authored Jan 23, 2019
1 parent 7d7eea8 commit 38ee70d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ include *.md
include LICENSE.txt

# Include JSON files
include stix_shifter/stix_translation/src/modules/aws_security_hub/json/*.json
include stix_shifter/stix_translation/src/modules/bigfix/json/*.json
include stix_shifter/stix_translation/src/modules/car/json/*.json
include stix_shifter/stix_translation/src/modules/csa/json/*.json
include stix_shifter/stix_translation/src/modules/dummy/json/*.json
include stix_shifter/stix_translation/src/modules/qradar/json/*.json
include stix_shifter/stix_translation/src/modules/splunk/json/*.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def transform_query(self, data, options, mapping=None):
query_object = generate_query(data)
data_mapper = options.get('data_mapper')
mapping = options.get('mapping')
fields = options.get('fields')
fields = options.get('select_fields')

if not data_mapper:
data_mapper_module = cim_data_mapping
Expand Down
4 changes: 2 additions & 2 deletions tests/stix_translation/test_splunk_stix_to_spl.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def test_custom_mapping(self):
options = {
"timerange": timerange,
"result_limit": result_limit,
"mapping": {
"mapping": {
"mac-addr": {
"cim_type": "flow",
"fields": {
Expand All @@ -173,7 +173,7 @@ def test_custom_mapping(self):
}
}
},
"fields": {
"select_fields": {
"default":
[
"src_ip",
Expand Down

0 comments on commit 38ee70d

Please sign in to comment.