Filter by:
File Violation Severity
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "mysafe01" appears 24 times in this file; the first occurrence is on line 198
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "shared/mysafe01" appears 72 times in this file; the first occurrence is on line 121
Warning
tvaultapi/src/test/java/com/...vice/AWSAuthServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "arn:aws:iam::877677878:instance-profile/exampleinstanceprofile" appears 8 times in this file; the first occurrence is on line 111
Warning
tvaultapi/src/test/java/com/...vice/AWSAuthServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "ami-fce3c696" appears 8 times in this file; the first occurrence is on line 109
Warning
tvaultapi/src/test/java/com/...vice/AWSAuthServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "ec2" appears 8 times in this file; the first occurrence is on line 109
Warning
tvaultapi/src/test/java/com/...vice/AWSAuthServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "1234567890123" appears 8 times in this file; the first occurrence is on line 110
Warning
tvaultapi/src/test/java/com/...vice/AWSAuthServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "subnet-1122aabb" appears 8 times in this file; the first occurrence is on line 110
Warning
tvaultapi/src/test/java/com/...vice/AWSAuthServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "us-east-2" appears 8 times in this file; the first occurrence is on line 110
Warning
tvaultapi/src/test/java/com/...vice/AWSAuthServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "vpc-2f09a348" appears 8 times in this file; the first occurrence is on line 110
Warning
tvaultapi/src/test/java/com/...vice/AWSAuthServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "arn:aws:iam::8987887:role/test-role" appears 8 times in this file; the first occurrence is on line 111
Warning
tvaultapi/src/test/java/com/...vice/AWSAuthServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "5PDrOhsy4ig8L3EpsJZSLAMg" appears 15 times in this file; the first occurrence is on line 93
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "\",\"data\":{\"default\":\"default\"}}" appears 4 times in this file; the first occurrence is on line 152
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "\"}" appears 5 times in this file; the first occurrence is on line 127
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "{\"path\":\"" appears 8 times in this file; the first occurrence is on line 127
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "My first safe" appears 10 times in this file; the first occurrence is on line 198
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "youremail@yourcompany.com" appears 13 times in this file; the first occurrence is on line 198
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "safe1" appears 5 times in this file; the first occurrence is on line 259
Warning
254
    }
255
 
256
    @Test
257
    public void test_createSafe_failure_description_too_short() {
258
        String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
259
        SafeBasicDetails safeBasicDetails = new SafeBasicDetails("safe1", "youremail@yourcompany.com", null, "My safe");
260
        Safe safe = new Safe("shared/safe1",safeBasicDetails);
261
 
262
        ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.BAD_REQUEST).body("{\"errors\":[\"Invalid Description: Please enter minimum 10 characters\"]}");
263
        when(ControllerUtil.areSDBInputsValid(safe)).thenReturn(true);
264
 
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "My first safeMy first safeMy first safeMy first safeMy first safeMy first safeMy first safeMy first safeMy first safeMy first safeMy first safe" appears 16 times in this file; the first occurrence is on line 274
Warning
tvaultapi/src/test/java/com/...i/utils/PolicyUtilsTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "{\"data\":{\"policies\":\"s_shared_mysafe01,s_shared_mysafe02\"}}" appears 6 times in this file; the first occurrence is on line 107
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java AvoidDuplicateLiterals   (kritika/PMD Java)
The String literal "5PDrOhsy4ig8L3EpsJZSLAMg" appears 55 times in this file; the first occurrence is on line 109
Warning