Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ Fixture repositories used for testing

Accessible at: https://content-services.github.io/fixtures/

## Local Testing

To serve all fixtures locally, run a Python HTTP server from the `fixtures/` directory:

```bash
cd fixtures && python3 -m http.server 8989
```

Fixtures are then accessible at `http://localhost:8989/`, for example:
- `http://localhost:8989/yum/comps-modules/v1/`
- `http://localhost:8989/maven/maven-releases/com/example/fixture/raccoon/1.0.0.rhlw-00001/com.example.fixture.raccoon.1.0.0.rhlw-00001.pom`

## Contributing

Avoid modifying existing fixtures unless you are sure it is necessary or safe to do so
78 changes: 78 additions & 0 deletions fixtures/maven/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Maven

Contains Maven repository fixtures, split into two repos:

- **[maven-upstream](maven-upstream/)** — upstream (non-release) versions
- **[maven-releases](maven-releases/)** — versions with release qualifiers (e.g. `rhlw-00001`)

## Structure

Fixtures follow the standard Maven repository layout:
`{groupId_path}/{artifactId}/{version}/{groupId}.{artifactId}.{version}.{ext}`

Release qualifiers are embedded in the version string (e.g. `1.0.0.rhlw-00001`),
matching the pattern `[a-zA-Z]+-\d+`.

## maven-releases

### com.example.fixture / raccoon

| Version | Release |
|---------|---------|
| 1.0.0.rhlw-00001 | rhlw-00001 |
| 1.0.0.rhlw-00002 | rhlw-00002 |
| 2.0.0.rhlw-00001 | rhlw-00001 |
| 2.0.0.rhlw-00002 | rhlw-00002 |

### blissed / blissed

| Version | Release |
|---------|---------|
| 1.0-beta-3.rhlw-00001 | rhlw-00001 |
| 1.0-beta-3.rhlw-00002 | rhlw-00002 |

### org.yaml / snakeyaml

| Version | Release |
|---------|---------|
| 1.33.rhlw-00001 | rhlw-00001 |

## maven-upstream

### com.example.fixture / raccoon

| Version | Release |
|---------|---------|
| 1.0.0 | — |
| 1.1.0 | — |
| 2.0.0 | — |
| 3.0.0 | — |

### blissed / blissed

| Version | Release |
|---------|---------|
| 1.0-beta-3 | — |

### org.yaml / snakeyaml

| Version | Release |
|---------|---------|
| 1.33 | — |

## How to add a new fixture

1. Create the version directory: `{repo}/{groupId_path}/{artifactId}/{version}/`
- Use `maven-releases/` for versions with a release qualifier
- Use `maven-upstream/` for upstream versions without a release qualifier
2. Add a `.pom` file: minimal Maven POM with groupId, artifactId, and version
3. Add a `.jar` file: a valid ZIP archive containing `META-INF/MANIFEST.MF`
4. Update this README

### Creating a minimal JAR

```bash
mkdir -p META-INF
printf 'Manifest-Version: 1.0\n' > META-INF/MANIFEST.MF
zip -q output.jar META-INF/MANIFEST.MF
```
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>blissed</groupId>
<artifactId>blissed</artifactId>
<version>1.0-beta-3.rhlw-00001</version>
</project>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>blissed</groupId>
<artifactId>blissed</artifactId>
<version>1.0-beta-3.rhlw-00002</version>
</project>
13 changes: 13 additions & 0 deletions fixtures/maven/maven-releases/blissed/blissed/maven-metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>blissed</groupId>
<artifactId>blissed</artifactId>
<versioning>
<release>1.0-beta-3.rhlw-00002</release>
<versions>
<version>1.0-beta-3.rhlw-00001</version>
<version>1.0-beta-3.rhlw-00002</version>
</versions>
<lastUpdated>20260717000000</lastUpdated>
</versioning>
</metadata>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
918e2177faac1bf5910b5047fade7854
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
96f718fa776fe3130d03cfd21c1271e64fb5f6c1
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.fixture</groupId>
<artifactId>raccoon</artifactId>
<version>1.0.0.rhlw-00001</version>
</project>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.fixture</groupId>
<artifactId>raccoon</artifactId>
<version>1.0.0.rhlw-00002</version>
</project>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.fixture</groupId>
<artifactId>raccoon</artifactId>
<version>2.0.0.rhlw-00001</version>
</project>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.fixture</groupId>
<artifactId>raccoon</artifactId>
<version>2.0.0.rhlw-00002</version>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>com.example.fixture</groupId>
<artifactId>raccoon</artifactId>
<versioning>
<release>2.0.0.rhlw-00002</release>
<versions>
<version>1.0.0.rhlw-00001</version>
<version>1.0.0.rhlw-00002</version>
<version>2.0.0.rhlw-00001</version>
<version>2.0.0.rhlw-00002</version>
</versions>
<lastUpdated>20260717000000</lastUpdated>
</versioning>
</metadata>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
52edf380d807541be48c617357fb29a5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f6eaa27ee9b5f7853dc7e16ae0bcfdd9c67f5eda
Binary file not shown.
Loading