NissimShiman commented on PR #6685:
URL: https://github.com/apache/nifi/pull/6685#issuecomment-1359998180

   @joewitt I think that could be done.  i.e. a unit test for this in 
SnippetUtilsTest ( 
https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/test/java/org/apache/nifi/web/util/SnippetUtilsTest.java
 )
   
   although as @markobean noted, this kind of gets into the more overarching 
question of testing in general for copying nifi components and if we want to 
address that.  
   
   (i.e. I am a little concerned this could lead to scope creep. I happened to 
come across this when testing/voting for apache nifi 1.18.0 RC4, so I wanted to 
close the loop with this, but this discussion is revealing that testing copying 
in general is an area that needs to be developed that I am hoping not to be led 
into at the moment :))
   
   So to answer the question, yes, a unit test can be done for this, but we 
need to be OK with the general lack of copying related unit/integration tests 
that may now be more readily noticeable by having this one added.


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

Reply via email to