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
105
        Response response = new Response();
106
        response.setHttpstatus(HttpStatus.OK);
107
        Response responseNoContent = getMockResponse(HttpStatus.NO_CONTENT, true, "");
108
        String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
109
        AWSLoginRole awsLoginRole = new AWSLoginRole("ec2", "mytestawsrole", "ami-fce3c696",
110
                "1234567890123", "us-east-2", "vpc-2f09a348", "subnet-1122aabb",
111
                "arn:aws:iam::8987887:role/test-role", "arn:aws:iam::877677878:instance-profile/exampleinstanceprofile",
112
                "\"[prod, dev\"]");
113
 
114
        String jsonStr = "{\"auth_type\": \"ec2\", \"role\": \"mytestawsrole\", \"bound_ami_id\": \"ami-fce3c696\", " +
115
                "\"bound_account_id\": 1234567890123, \"bound_region\": \"us-east-2\",\"bound_vpc_id\": " +
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