Skip to content
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

Flow io.cloudslang.base.comparisons.equals does not accept an empty parameter #1033

Open
pe-pan opened this issue Feb 8, 2018 · 1 comment

Comments

@pe-pan
Copy link
Contributor

pe-pan commented Feb 8, 2018

I'm trying to execute this flow:

namespace: io.cloudslang.demo
flow:
  name: test
  workflow:
    - is_empty:
        do:
          io.cloudslang.base.comparisons.equals:
            - first: 'a'
            - second: ''
        navigate:
            - 'TRUE': SUCCESS
            - 'FALSE': FAILURE
  results:
      - FAILURE
      - SUCCESS

It fails on

SEVERE: Command failed java.lang.RuntimeException: Failed compilation for file test.sl ,Exception is : java.lang.IllegalArgumentException: Cannot compile flow 'io.cloudslang.demo.test'. Step 'is_empty' does not declare all the mandatory inputs of its reference. The following inputs of 'io.cloudslang.base.comparisons.equals' are not private, required and with no default value: second.

How does one compare the argument with an empty string?

@pe-pan
Copy link
Contributor Author

pe-pan commented Feb 8, 2018

The workaround is to use io.cloudslang.base.strings.string_equals instead. Still I believe it's a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant