Skip to content

Commit

Permalink
Fix SMB tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Jul 4, 2024
1 parent fcc1f59 commit 1268997
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import org.apache.camel.EndpointInject;
import org.apache.camel.component.mock.MockEndpoint;

Expand All @@ -32,11 +31,8 @@ public class SmbResource {

@GET
@Path("/validate")
@Produces("text/plain")
public void validateSmbResults() throws Exception {

mock.expectedMessageCount(100);

mock.assertIsSatisfied();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class SmbRoute extends RouteBuilder {

@Override
public void configure() throws Exception {
from("smb:{{smb.host}}:{{smb.port}}/{{smb.share}}?username={{smb.username}}&password={{smb.password}}&recursive=true")
from("smb:{{smb.host}}:{{smb.port}}/{{smb.share}}?username={{smb.username}}&password={{smb.password}}&path=/&repeatCount=1")
.to("mock:result");
}
}

0 comments on commit 1268997

Please sign in to comment.