You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Piotr Nowojski (Jira)" <ji...@apache.org> on 2020/03/19 08:28:00 UTC

[jira] [Created] (FLINK-16676) test_pipeline_from_invalid_json failed on Azure

Piotr Nowojski created FLINK-16676:
--------------------------------------

             Summary: test_pipeline_from_invalid_json failed on Azure
                 Key: FLINK-16676
                 URL: https://issues.apache.org/jira/browse/FLINK-16676
             Project: Flink
          Issue Type: Bug
          Components: API / Python
    Affects Versions: 1.10.0
            Reporter: Piotr Nowojski


https://dev.azure.com/rmetzger/Flink/_build/results?buildId=6376&view=logs&j=9cada3cb-c1d3-5621-16da-0f718fb86602&t=165fcdc0-86f6-5c68-d844-b25f91686149


{code:java}
=================================== FAILURES ===================================
____________ ValidationPipelineTest.test_pipeline_from_invalid_json ____________

self = <pyflink.ml.tests.test_pipeline.ValidationPipelineTest testMethod=test_pipeline_from_invalid_json>

    def test_pipeline_from_invalid_json(self):
        invalid_json = '[a:aa]'
    
        # load json
        p = Pipeline()
        with self.assertRaises(RuntimeError) as context:
            p.load_json(invalid_json)
        exception_str = str(context.exception)
    
        # only assert key error message as the whole message is very long.
        self.assertTrue(
            'Cannot load the JSON as either a Java Pipeline or a Python Pipeline.'
            in exception_str)
        self.assertTrue(

{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)