...
1.1 The output diffs from the example's when using correct body parameters and types :
1.2 The output is not as expected when using incorrect body types. e.g. When the type of name and language is INT, the type of md5 and file is invalid, it should throw an error.
2. Install
2.1 When not body is entered, it should throw an error:
cello/src/api-engine/api/routes/chaincode/views.py line 139
'''
qs = Node.objects.filter(type="peer", organization=org)
if not qs.exists():
raise ResourceNotFound
peer_node = qs.first()
...
User can't use a specific node, the code returns the first node in peers, so all the tests failed.
Here the file should be a .tar.gz file, including "metadata.json" and "code.tar.gz" files. Now we don't have a sample chaincode package to generate this .tar.gz file, so all the following tests failed.
1.2 The output is not as expected when using incorrect body types. e.g. When the type of name and language is INT, the type of md5 and file is invalid, it should throw an error.
2. Install
2.1 When not body is entered, it should throw an error:
2.2 When the type of body is not valid, it should throw an error:
...