Blame internal/upload/koji/README.md
|
Packit |
63bb0d |
## How to run the Koji test
|
|
Packit |
63bb0d |
|
|
Packit |
63bb0d |
Firstly, you need to start the koji container:
|
|
Packit |
63bb0d |
|
|
Packit |
63bb0d |
```
|
|
Packit |
63bb0d |
sudo ./internal/upload/koji/run-koji-container.sh
|
|
Packit |
63bb0d |
```
|
|
Packit |
63bb0d |
|
|
Packit |
63bb0d |
This command starts a kojihub instance available at
|
|
Packit |
63bb0d |
http://localhost:8080/kojihub . You can test that it started successfully
|
|
Packit |
63bb0d |
by running:
|
|
Packit |
63bb0d |
```
|
|
Packit |
63bb0d |
koji --server=http://localhost:8080/kojihub --user=osbuild --password=osbuildpass --authtype=password hello
|
|
Packit |
63bb0d |
```
|
|
Packit |
63bb0d |
|
|
Packit |
63bb0d |
Now, you can run the koji test using:
|
|
Packit |
63bb0d |
```
|
|
Packit |
63bb0d |
go test -v -tags koji_test ./internal/upload/koji
|
|
Packit |
63bb0d |
```
|
|
Packit |
63bb0d |
|
|
Packit |
63bb0d |
The test is run on each PR in the Github CI. See `.github/workflows/tests.yml`
|
|
Packit |
63bb0d |
for more details.
|