Skip to content

Commit

Permalink
Fix tests in cloudconfig/podcfg package;
Browse files Browse the repository at this point in the history
  • Loading branch information
ycliuhw committed Aug 23, 2021
1 parent ca1938b commit 974b886
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cloudconfig/podcfg/podcfg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ func (*podcfgSuite) TestOperatorImagesDefaultRepo(c *gc.C) {
path, err := podConfig.GetControllerImagePath()
c.Assert(err, jc.ErrorIsNil)
c.Assert(path, gc.Equals, "jujusolutions/jujud-operator:6.6.6.666")
c.Assert(podConfig.GetJujuDbOCIImagePath(), gc.Equals, "jujusolutions/juju-db:4.0")
path, err = podConfig.GetJujuDbOCIImagePath()
c.Assert(err, jc.ErrorIsNil)
c.Assert(path, gc.Equals, "jujusolutions/juju-db:4.0")
}

func (*podcfgSuite) TestOperatorImagesCustomRepo(c *gc.C) {
Expand All @@ -88,7 +90,9 @@ func (*podcfgSuite) TestOperatorImagesCustomRepo(c *gc.C) {
path, err := podConfig.GetControllerImagePath()
c.Assert(err, jc.ErrorIsNil)
c.Assert(path, gc.Equals, "path/to/my/repo/jujud-operator:6.6.6.666")
c.Assert(podConfig.GetJujuDbOCIImagePath(), gc.Equals, "path/to/my/repo/juju-db:4.0")
path, err = podConfig.GetJujuDbOCIImagePath()
c.Assert(err, jc.ErrorIsNil)
c.Assert(path, gc.Equals, "path/to/my/repo/juju-db:4.0")
}

func (*podcfgSuite) TestBootstrapConstraints(c *gc.C) {
Expand Down

0 comments on commit 974b886

Please sign in to comment.