Skip to content

Test failure: invalid_datasource_name #1763

@khansaad

Description

@khansaad

Describe the bug
invalid_datasource_name test added as part of create_experiment API tests in the LM mode is failing due to incorrect input being passed to the API.

How to reproduce it
Run the create_experiment LM negative test:

pytest test_create_experiment.py::test_create_exp_invalid_tests --html=/tmp/create-exp.html --cluster_type openshift

Notice the invalid_datasource_name failure with the assertion failure:

>       assert data['message'] == expected_error_msg
E       AssertionError: assert 'Can not spec...er experiment' == 'Given dataso... is not valid'
E         
E         - Given datasource name - invalid-ds either does not exist or is not valid
E         + Can not specify namespace data for container experiment

Expected behavior
Test should pass after fixing the input passed to the create experiment API in the test function def test_create_exp_invalid_tests()
Relevant logs
Attach any relevant logs to help debug the issue

invalid-ds-name-test-failure.pdf

Environment:

  • Kubernetes Cluster : Openshift
  • Version
  • OS

Additional context
Add any other context about the problem here, any links or screenshots

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions