Skip to content

Commit

Permalink
Change test POM files to use fake dependencies to avoid dependabot ch…
Browse files Browse the repository at this point in the history
…eck (#213)

Dependabot notified us that a bunch of test pom.xml files had
vulnerable dependencies and submitted PRs. Rather than deal with this
again in the future, change the dependencies in the test POMS to fake
ones. Note these are all related to ServiceNamesTest.

Misc: removed a System.out.println from ServiceNamesTest
  • Loading branch information
sleberknight authored Apr 2, 2021
1 parent 8fcda58 commit cde1ef5
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class FindServiceOrEmulatorNameFromRoot {
})
void shouldFindServiceOrEmulator(String path, String expectedName) {
var rootPath = Path.of(basePath, path).toString();
System.out.println(rootPath);
var name = ServiceNames.findServiceOrEmulatorNameFromRoot(rootPath);
assertThat(name).isEqualTo(expectedName);
}
Expand Down
18 changes: 9 additions & 9 deletions src/test/resources/MongoTestsTest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
<dependencies>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>29.0-jre</version>
<groupId>com.goggle.tangerine</groupId>
<artifactId>tangerine</artifactId>
<version>42.0.42</version>
</dependency>

<dependency>
<groupId>org.kiwiproject</groupId>
<artifactId>kiwi</artifactId>
<version>0.7.0</version>
<groupId>com.acme</groupId>
<artifactId>fizzle-splits</artifactId>
<version>6.7.8</version>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.30</version>
<groupId>com.acme</groupId>
<artifactId>awesome-logging-api</artifactId>
<version>1.42.0</version>
</dependency>

</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
<dependencies>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>29.0-jre</version>
<groupId>com.goggle.tangerine</groupId>
<artifactId>tangerine</artifactId>
<version>42.0.42</version>
</dependency>

<dependency>
<groupId>org.kiwiproject</groupId>
<artifactId>kiwi</artifactId>
<version>0.7.0</version>
<groupId>com.acme</groupId>
<artifactId>fizzle-splits</artifactId>
<version>6.7.8</version>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.30</version>
<groupId>com.acme</groupId>
<artifactId>awesome-logging-api</artifactId>
<version>1.42.0</version>
</dependency>

</dependencies>
Expand Down
18 changes: 9 additions & 9 deletions src/test/resources/ServiceNamesTest/no-parent-pom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@
<dependencies>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>29.0-jre</version>
<groupId>com.goggle.tangerine</groupId>
<artifactId>tangerine</artifactId>
<version>42.0.42</version>
</dependency>

<dependency>
<groupId>org.kiwiproject</groupId>
<artifactId>kiwi</artifactId>
<version>0.7.0</version>
<groupId>com.acme</groupId>
<artifactId>fizzle-splits</artifactId>
<version>6.7.8</version>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.30</version>
<groupId>com.acme</groupId>
<artifactId>awesome-logging-api</artifactId>
<version>1.42.0</version>
</dependency>

</dependencies>
Expand Down
18 changes: 9 additions & 9 deletions src/test/resources/ServiceNamesTest/top-level-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
<dependencies>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>29.0-jre</version>
<groupId>com.goggle.tangerine</groupId>
<artifactId>tangerine</artifactId>
<version>42.0.42</version>
</dependency>

<dependency>
<groupId>org.kiwiproject</groupId>
<artifactId>kiwi</artifactId>
<version>0.7.0</version>
<groupId>com.acme</groupId>
<artifactId>fizzle-splits</artifactId>
<version>6.7.8</version>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.30</version>
<groupId>com.acme</groupId>
<artifactId>awesome-logging-api</artifactId>
<version>1.42.0</version>
</dependency>

</dependencies>
Expand Down
18 changes: 9 additions & 9 deletions src/test/resources/ServiceNamesTest/top-level-emulator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
<dependencies>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>29.0-jre</version>
<groupId>com.goggle.tangerine</groupId>
<artifactId>tangerine</artifactId>
<version>42.0.42</version>
</dependency>

<dependency>
<groupId>org.kiwiproject</groupId>
<artifactId>kiwi</artifactId>
<version>0.7.0</version>
<groupId>com.acme</groupId>
<artifactId>fizzle-splits</artifactId>
<version>6.7.8</version>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.30</version>
<groupId>com.acme</groupId>
<artifactId>awesome-logging-api</artifactId>
<version>1.42.0</version>
</dependency>

</dependencies>
Expand Down
18 changes: 9 additions & 9 deletions src/test/resources/ServiceNamesTest/top-level-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
<dependencies>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>29.0-jre</version>
<groupId>com.goggle.tangerine</groupId>
<artifactId>tangerine</artifactId>
<version>42.0.42</version>
</dependency>

<dependency>
<groupId>org.kiwiproject</groupId>
<artifactId>kiwi</artifactId>
<version>0.7.0</version>
<groupId>com.acme</groupId>
<artifactId>fizzle-splits</artifactId>
<version>6.7.8</version>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.30</version>
<groupId>com.acme</groupId>
<artifactId>awesome-logging-api</artifactId>
<version>1.42.0</version>
</dependency>

</dependencies>
Expand Down

0 comments on commit cde1ef5

Please sign in to comment.