You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by vl...@apache.org on 2019/08/03 19:46:55 UTC

[jmeter] branch master updated (7da4374 -> 80ac903)

This is an automated email from the ASF dual-hosted git repository.

vladimirsitnikov pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git.


    from 7da4374  JMeterTestCase: log classpath only when jmeter.test.log.classpath=true property is present
     new fff1e5d  Increase timeouts for DNSCacheManagerSpec: 100 -> 5000
     new 80ac903  Add SpotBugs results to Sonarqube report

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 build.gradle.kts                                           | 14 ++++++++++++++
 .../protocol/http/control/DNSCacheManagerSpec.groovy       |  8 ++++----
 2 files changed, 18 insertions(+), 4 deletions(-)


[jmeter] 02/02: Add SpotBugs results to Sonarqube report

Posted by vl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git

commit 80ac903f5eba39b99149c51ca1fd5d88dff17d90
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Sat Aug 3 22:46:35 2019 +0300

    Add SpotBugs results to Sonarqube report
---
 build.gradle.kts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/build.gradle.kts b/build.gradle.kts
index 1d82fcd..7b26638 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -181,6 +181,20 @@ sonarqube {
     }
 }
 
+if (enableSpotBugs) {
+    // By default sonarqube does not depend on spotbugs
+    val sonarqubeTask = tasks.sonarqube
+
+    allprojects {
+        sonarqubeTask {
+            dependsOn(tasks.withType<SpotBugsTask>().matching {
+                // We don't send spotbugs for test classes
+                !it.name.endsWith("Test")
+            })
+        }
+    }
+}
+
 allprojects {
     group = "org.apache.jmeter"
     // JMeter ClassFinder parses "class.path" and tries to find jar names there,


[jmeter] 01/02: Increase timeouts for DNSCacheManagerSpec: 100 -> 5000

Posted by vl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git

commit fff1e5dada60d76d853a77eb951bc5cb9647b557
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Sat Aug 3 22:11:05 2019 +0300

    Increase timeouts for DNSCacheManagerSpec: 100 -> 5000
    
    100ms it not enough for slow connections
---
 .../jmeter/protocol/http/control/DNSCacheManagerSpec.groovy       | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/protocol/http/src/test/groovy/org/apache/jmeter/protocol/http/control/DNSCacheManagerSpec.groovy b/src/protocol/http/src/test/groovy/org/apache/jmeter/protocol/http/control/DNSCacheManagerSpec.groovy
index 49b7930..8f0f8cb 100644
--- a/src/protocol/http/src/test/groovy/org/apache/jmeter/protocol/http/control/DNSCacheManagerSpec.groovy
+++ b/src/protocol/http/src/test/groovy/org/apache/jmeter/protocol/http/control/DNSCacheManagerSpec.groovy
@@ -99,7 +99,7 @@ class DNSCacheManagerSpec extends JMeterSpec {
         given:
             sut.addServer(VALID_DNS_SERVER)
             sut.setCustomResolver(true)
-            sut.setTimeoutMs(100)
+            sut.setTimeoutMs(5000)
         when:
             sut.resolve("jmeter.apache.org")
         then:
@@ -112,7 +112,7 @@ class DNSCacheManagerSpec extends JMeterSpec {
         given:
             sut.addServer(VALID_DNS_SERVER)
             sut.setCustomResolver(true)
-            sut.setTimeoutMs(100)
+            sut.setTimeoutMs(5000)
         when:
             sut.cache.put("jmeter.apache.org", new InetAddress[0])
         then:
@@ -128,7 +128,7 @@ class DNSCacheManagerSpec extends JMeterSpec {
     def "set custom resolver but without an address should use system resolver"() {
         given:
             sut.setCustomResolver(true)
-            sut.setTimeoutMs(100)
+            sut.setTimeoutMs(5000)
         when:
             // This will use Default System DNS resolver
             sut.resolve("jmeter.apache.org")
@@ -142,7 +142,7 @@ class DNSCacheManagerSpec extends JMeterSpec {
             sut.setCustomResolver(true)
             sut.addServer(INVALID_DNS_SERVER)
             DNSCacheManager clone = (DNSCacheManager) sut.clone()
-            clone.setTimeoutMs(100)
+            clone.setTimeoutMs(5000)
         when:
             clone.resolve("jmeter.apache.org")
         then: