You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a feature that allows upload CSV with Applications and related resources to populate the application inventory in the Hub. Write an API test that will upload sample CSV and verify created resources in the Hub.
For most of things follow what you learned in #370, just updating binding pakage is not needed in this case, the CSV can be uploaded with RichClient.Client HTTP methods. Suggested test structure is similar to previous PR, but expecting to specify list of TestCases (path to import CSV file and applications, dependencies, etc. expected be created) instead of samples.
Closes#388
Work Done as of now
1. Created a sample of data to be passed in `samples.go`
2. Initialized RichClient.Client
3. Uploaded CSV using FilePost
4. Get contents of `/importsummaries`
5. Compare Applications and Dependencies with the output of the API
6. Compare valid count with no. of Applications and Dependencies
7. Added checks for all routes
8. Download the CSV
9. Compare informations of CSV's
---------
Signed-off-by: Yash Khare <yash2010118@akgec.ac.in>
There is a feature that allows upload CSV with Applications and related resources to populate the application inventory in the Hub. Write an API test that will upload sample CSV and verify created resources in the Hub.
For most of things follow what you learned in #370, just updating binding pakage is not needed in this case, the CSV can be uploaded with RichClient.Client HTTP methods. Suggested test structure is similar to previous PR, but expecting to specify list of TestCases (path to import CSV file and applications, dependencies, etc. expected be created) instead of samples.
Resources:
Example upload with curl: curl -F "file=@import.csv" http://localhost:8080/importsummaries/upload (not for test, just to show how the request should look like)
Part of konveyor/operator#220 for @khareyash05
The text was updated successfully, but these errors were encountered: