You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/03/17 07:34:00 UTC

[jira] [Work logged] (SUBMARINE-432) [SDK] test_verify_rest_response is flaky in python 3.5

     [ https://issues.apache.org/jira/browse/SUBMARINE-432?focusedWorklogId=404494&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-404494 ]

ASF GitHub Bot logged work on SUBMARINE-432:
--------------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Mar/20 07:33
            Start Date: 17/Mar/20 07:33
    Worklog Time Spent: 10m 
      Work Description: pingsutw commented on pull request #230: SUBMARINE-432. [SDK] test_verify_rest_response is flaky in python 3.5
URL: https://github.com/apache/submarine/pull/230
 
 
   ### What is this PR for?
   Fix test failure in python3.5 
   if we use python3.5 `str({'a': 200, 'b': 2, 'c': 3})` will output different order like {'b': 2, 'c': 3, 'a': 200}
   change to str(**json object**) will fix it.
   ```
   with pytest.raises(RestException, match=str(mock_json_body)):
   verify_rest_response(mock_response, '/api/v1/jobs')
   E AssertionError: Pattern '{'b': 2, 'c': 3, 'a': 200}' not found in 'None: Response: {'c': 3, 'a': 200, 'b': 2}'
   ```
   
   ### What type of PR is it?
   [Bug Fix]
   
   ### Todos
   * [ ] - Task
   
   ### What is the Jira issue?
   https://issues.apache.org/jira/browse/SUBMARINE-432
   
   ### How should this be tested?
   https://travis-ci.org/github/pingsutw/hadoop-submarine/builds/663060104
   https://github.com/pingsutw/hadoop-submarine/runs/511082403
   
   ### Screenshots (if appropriate)
   
   ### Questions:
   * Does the licenses files need update? No
   * Is there breaking changes for older versions? No
   * Does this needs documentation? No
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 404494)
    Remaining Estimate: 0h
            Time Spent: 10m

> [SDK] test_verify_rest_response is flaky in python 3.5
> ------------------------------------------------------
>
>                 Key: SUBMARINE-432
>                 URL: https://issues.apache.org/jira/browse/SUBMARINE-432
>             Project: Apache Submarine
>          Issue Type: Bug
>          Components: SDK
>    Affects Versions: 0.4.0
>            Reporter: Kevin Su
>            Assignee: Kevin Su
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.4.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Error message:
> {code:java}
> with pytest.raises(RestException, match=str(mock_json_body)):
> > verify_rest_response(mock_response, '/api/v1/jobs')
> E AssertionError: Pattern '{'b': 2, 'c': 3, 'a': 200}' not found in 'None: Response: {'c': 3, 'a': 200, 'b': 2}'{code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org