Skip to content

Commit

Permalink
Update maven test to give correct output
Browse files Browse the repository at this point in the history
  • Loading branch information
amazimbe committed Sep 10, 2024
1 parent a8befbe commit a160154
Showing 1 changed file with 3 additions and 209 deletions.
212 changes: 3 additions & 209 deletions tests/smoke-maven-group-multidir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,215 +196,9 @@ output:
- type: create_pull_request
expect:
data:
base-commit-sha: 56600671ab2495ed67614624740292fb5d54e4f4
dependencies:
- name: org.springframework.boot:spring-boot-starter-parent
previous-requirements:
- file: pom.xml
groups: []
metadata:
packaging_type: pom
requirement: 1.5.10.RELEASE
source: null
previous-version: 1.5.10.RELEASE
requirements:
- file: pom.xml
groups: []
metadata:
packaging_type: pom
requirement: 1.5.12.RELEASE
source:
type: maven_repo
url: https://repo.maven.apache.org/maven2
version: 1.5.12.RELEASE
directory: /maven/multi-dir/foo
- name: org.springframework.boot:spring-boot-starter-parent
previous-requirements:
- file: pom.xml
groups: []
metadata:
packaging_type: pom
requirement: 1.5.9.RELEASE
source: null
previous-version: 1.5.9.RELEASE
requirements:
- file: pom.xml
groups: []
metadata:
packaging_type: pom
requirement: 1.5.12.RELEASE
source:
type: maven_repo
url: https://repo.maven.apache.org/maven2
version: 1.5.12.RELEASE
directory: /maven/multi-dir/bar
updated-dependency-files:
- content: |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.dependabot</groupId>
<artifactId>pom-with-parent</artifactId>
<version>0.0.1-RELEASE</version>
<name>Dependabot POM that inherits from parent POM</name>
<packaging>jar</packaging>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.12.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<!-- Web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- Persistence -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-java8</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- Ops -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>
content_encoding: utf-8
deleted: false
directory: /maven/multi-dir/foo
name: pom.xml
operation: update
support_file: false
type: file
- content: |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.dependabot</groupId>
<artifactId>pom-with-parent</artifactId>
<version>0.0.1-RELEASE</version>
<name>Dependabot POM that inherits from parent POM</name>
<packaging>jar</packaging>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.12.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<!-- Web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- Persistence -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-java8</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- Ops -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>
content_encoding: utf-8
deleted: false
directory: /maven/multi-dir/bar
name: pom.xml
operation: update
support_file: false
type: file
pr-title: Bump the maven group across 2 directories with 1 update
pr-body: |
Bumps the maven group with 1 update in the /maven/multi-dir/foo directory: org.springframework.boot:spring-boot-starter-parent.
Bumps the maven group with 1 update in the /maven/multi-dir/bar directory: org.springframework.boot:spring-boot-starter-parent.
Updates `org.springframework.boot:spring-boot-starter-parent` from 1.5.10.RELEASE to 1.5.12.RELEASE
Updates `org.springframework.boot:spring-boot-starter-parent` from 1.5.9.RELEASE to 1.5.12.RELEASE
commit-message: |-
Bump the maven group across 2 directories with 1 update
Bumps the maven group with 1 update in the /maven/multi-dir/foo directory: org.springframework.boot:spring-boot-starter-parent.
Bumps the maven group with 1 update in the /maven/multi-dir/bar directory: org.springframework.boot:spring-boot-starter-parent.
Updates `org.springframework.boot:spring-boot-starter-parent` from 1.5.10.RELEASE to 1.5.12.RELEASE
Updates `org.springframework.boot:spring-boot-starter-parent` from 1.5.9.RELEASE to 1.5.12.RELEASE
dependency-group:
name: maven
base-commit-sha: ""
dependencies: []
updated-dependency-files: []
- type: mark_as_processed
expect:
data:
Expand Down

0 comments on commit a160154

Please sign in to comment.