Steps to run this test:
- Set up a Pulp server to test against. The simplest setup is the Pulp in One Container.
- Edit the pulp.toml file to set the
server_address
and credentials. Therepository
andbasepath
can be set to any value. - Edit the
testpulp
script to set thepulp_server
andrepo_basepath
to match the toml file. - Run the
testpulp
script.
The script runs the following actions:
- Push the two blueprints to osbuild-composer.
- Start the build of the first commit.
- Create a local ostree repo in a temporary directory.
- Configure the remote for the ostree repo to the expected address based on the pulp configuration.
- Wait for the build to finish.
- Wait for pulp to finish importing the commit to the repository (using
curl .../refs/heads/...
). - Run
ostree remote summary test
to print the remote summary for verification. - Start the build of the second commit, pointing to the repository as a parent.
- Wait for the build to finish.
At this point, the import of the child commit to the existing ostree repo should begin. The test does not wait for this task to finish.
NOTE: Currently the child import fails due to pulp/pulp_ostree#279