-
Notifications
You must be signed in to change notification settings - Fork 18
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
Asset Bundle Importer #163
base: develop
Are you sure you want to change the base?
Conversation
I wonder if this is an appropriate name for the connector. |
Is the data folder test data? If so, what uses it? |
Can you explain why you have an empty file: |
The primary intention of this connector is to quickly load sample data into the connector. Although I see no tests in the reference connector, it would make sense to add some unit test cases. I’ll work on it! |
connectors/sample/README.md
Outdated
@@ -0,0 +1,127 @@ | |||
# Asset(Sample) ISC-CAR | |||
|
|||
Asset(Sample) CAR Connector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Asset Bundle Importer
Renamed it to asset |
@LarsenEric Added test cases! |
connectors/asset/README.md
Outdated
|
||
Running the connector: | ||
``` | ||
python3 app.py -car-service-url=http://localhost:3000/api/car/v2 -car-service-key=none -car-service-password=none -source=test -host=https://raw.githubusercontent.com/mukeshreddy44/cp4s-car-connectors/dummy_connector/data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be presented in a more general fashion? We shouldn't be referencing a personal github in the README.
For example, see how we do it for other connectors:
https://github.com/IBM/cp4s-car-connectors/blob/develop/connectors/crowdstrike/README.md?plain=1#L183
https://github.com/IBM/cp4s-car-connectors/blob/develop/connectors/nozomi/README.md?plain=1#L203
data/apps.json
Outdated
@@ -0,0 +1,2102 @@ | |||
[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the same data as connectors/asset/tests/mock_data
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering why we need to add a data folder outside of the connector's folder structure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's the same data, but I've separated it because it will be accessed by clients, and I don't want it to be accidentally modified or interfered with. We can definitely place it inside the connector, but I thought it would be easier to access it from the root folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LarsenEric Updated the data folder location.
Description
Type of change
Please select the type of change this is:
Proposed Changes
Test cases and results
Checklist:
Please review the following items and mark as complete when done.
develop
Checklist for reviewers: