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
116
    }
117
 
118
    @Test
119
    public void test_getFolders_successfully() {
120
 
121
        String path = "shared/mysafe01";
122
        String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
123
        String responseJson = "{  \"keys\": [    \"mysafe01\"  ]}";
124
        Response response = getMockResponse(HttpStatus.OK, true, responseJson);
125
        ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(responseJson);
126
 
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
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