weldr: Adjust test to use image type's Size(0) method
This will use the default image size which will be changed when images is pulled in with a default of 1GiB in test_distro instead of 0.
This commit is contained in:
parent
5821098c29
commit
e96ed30d4b
1 changed files with 7 additions and 0 deletions
|
|
@ -922,6 +922,7 @@ func TestCompose(t *testing.T) {
|
|||
ImageBuild: store.ImageBuild{
|
||||
QueueStatus: common.IBWaiting,
|
||||
ImageType: imgType,
|
||||
Size: imgType.Size(0),
|
||||
Manifest: mf,
|
||||
Targets: []*target.Target{
|
||||
{
|
||||
|
|
@ -949,6 +950,7 @@ func TestCompose(t *testing.T) {
|
|||
ImageBuild: store.ImageBuild{
|
||||
QueueStatus: common.IBWaiting,
|
||||
ImageType: imgType,
|
||||
Size: imgType.Size(0),
|
||||
Manifest: mf,
|
||||
Targets: []*target.Target{
|
||||
{
|
||||
|
|
@ -993,6 +995,7 @@ func TestCompose(t *testing.T) {
|
|||
ImageBuild: store.ImageBuild{
|
||||
QueueStatus: common.IBWaiting,
|
||||
ImageType: ostreeImgType,
|
||||
Size: ostreeImgType.Size(0),
|
||||
Manifest: omf,
|
||||
Targets: []*target.Target{
|
||||
{
|
||||
|
|
@ -1029,6 +1032,7 @@ func TestCompose(t *testing.T) {
|
|||
ImageBuild: store.ImageBuild{
|
||||
QueueStatus: common.IBWaiting,
|
||||
ImageType: ostreeImgType,
|
||||
Size: ostreeImgType.Size(0),
|
||||
Manifest: omfo,
|
||||
Targets: []*target.Target{
|
||||
{
|
||||
|
|
@ -1070,6 +1074,7 @@ func TestCompose(t *testing.T) {
|
|||
ImageBuild: store.ImageBuild{
|
||||
QueueStatus: common.IBWaiting,
|
||||
ImageType: imgType2,
|
||||
Size: imgType2.Size(0),
|
||||
Manifest: mf2,
|
||||
Targets: []*target.Target{
|
||||
{
|
||||
|
|
@ -2059,6 +2064,7 @@ func TestComposePOST_ImageTypeDenylist(t *testing.T) {
|
|||
ImageBuild: store.ImageBuild{
|
||||
QueueStatus: common.IBWaiting,
|
||||
ImageType: imgType,
|
||||
Size: imgType.Size(0),
|
||||
Manifest: mf,
|
||||
Targets: []*target.Target{
|
||||
{
|
||||
|
|
@ -2087,6 +2093,7 @@ func TestComposePOST_ImageTypeDenylist(t *testing.T) {
|
|||
ImageBuild: store.ImageBuild{
|
||||
QueueStatus: common.IBWaiting,
|
||||
ImageType: imgType2,
|
||||
Size: imgType2.Size(0),
|
||||
Manifest: mf,
|
||||
Targets: []*target.Target{
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue