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

ASF GitHub Bot logged work on BEAM-12769:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Oct/21 00:52
            Start Date: 17/Oct/21 00:52
    Worklog Time Spent: 10m 
      Work Description: ihji commented on a change in pull request #15690:
URL: https://github.com/apache/beam/pull/15690#discussion_r730016165



##########
File path: sdks/python/apache_beam/io/external/generate_sequence_test.py
##########
@@ -47,13 +50,54 @@ def test_generate_sequence(self):
             p
             | GenerateSequence(start=1, stop=10, expansion_service=address))
 
-        assert_that(res, equal_to([i for i in range(1, 10)]))
+        assert_that(res, equal_to(list(range(1, 10))))
     except RuntimeError as e:
       if re.search(GenerateSequence.URN, str(e)):
         print("looks like URN not implemented in expansion service, skipping.")
       else:
         raise e
 
+  # Using "!= 'Python'" instead of "== 'Java'" below to make sure that the test
+  # is not silently ignored if configs change the EXPANSION_SERVICE_TYPE 
"Java".
+  @unittest.skipUnless(
+      os.environ.get('EXPANSION_SERVICE_TYPE') != 'Python',
+      'Java Class Lookup based expansion is not supported by the Python '
+      'expansion service')
+  def test_generate_sequence_java_class_lookup_payload_builder(self):

Review comment:
       Oh, okay. The class is annotated instead. Thanks for the clarification.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 665995)
    Time Spent: 40h 10m  (was: 40h)

> Adds support for expanding a Java cross-language transform using the class 
> name and builder methods
> ---------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-12769
>                 URL: https://issues.apache.org/jira/browse/BEAM-12769
>             Project: Beam
>          Issue Type: Improvement
>          Components: cross-language, sdk-java-core
>            Reporter: Chamikara Madhusanka Jayalath
>            Assignee: Chamikara Madhusanka Jayalath
>            Priority: P1
>             Fix For: 2.34.0
>
>          Time Spent: 40h 10m
>  Remaining Estimate: 0h
>
> Please see here for the design: 
> https://docs.google.com/document/d/1ECXSWicE31K-vSxdb4qL6UcmovOAWvE-ZHFT3NTM654/edit?usp=sharing



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

Reply via email to