Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Functional tests not generated correctly for params with array types #1002

Closed
awjh-ibm opened this issue May 28, 2019 · 0 comments
Closed

Functional tests not generated correctly for params with array types #1002

awjh-ibm opened this issue May 28, 2019 · 0 comments
Assignees
Labels
bug Something isn't working sev2
Milestone

Comments

@awjh-ibm
Copy link

When the metadata for a parameter specifies the type as 'array' functional tests are not generated.

Expected Behavior

It should generated a functional test as it does for types of string, boolean and number.

Actual Behavior

Functional test not generated

Possible Fix

Add an extra else if to handle arrays types, will need to recurse as sub type could also be an array as well as any other type or $ref.

Steps to Reproduce

  1. Create a function in chaincode with the @Param annotation specifying an array. For example `@Param('my_param', 'Array')
@cazfletch cazfletch added bug Something isn't working sev2 labels May 28, 2019
@cazfletch cazfletch added this to the Sprint 8 milestone May 28, 2019
@Jakeeyturner Jakeeyturner self-assigned this May 31, 2019
Jakeeyturner added a commit to Jakeeyturner/blockchain-vscode-extension that referenced this issue May 31, 2019
Signed-off-by: Jake Turner <jaketurner25@live.com>
Jakeeyturner added a commit to Jakeeyturner/blockchain-vscode-extension that referenced this issue May 31, 2019
Signed-off-by: Jake Turner <jaketurner25@live.com>
Jakeeyturner added a commit to Jakeeyturner/blockchain-vscode-extension that referenced this issue Jun 3, 2019
Signed-off-by: Jake Turner <jaketurner25@live.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working sev2
Projects
None yet
Development

No branches or pull requests

3 participants