Example #1
0
func (*Dependencies) TestPackageDependencies(c *gc.C) {
	// This test is to ensure we don't bring in dependencies without thinking.
	// Looking at the "environs/config", it is just for JujuHome.  This should
	// really be moved into "juju/osenv".
	c.Assert(testbase.FindJujuCoreImports(c, "github.com/wallyworld/core/cmd"),
		gc.DeepEquals,
		[]string{"juju/arch", "juju/osenv", "names", "thirdparty/pbkdf2", "utils", "version"})
}
Example #2
0
func (t *ToolsSuite) TestPackageDependencies(c *gc.C) {
	// This test is to ensure we don't bring in dependencies on state, environ
	// or any of the other bigger packages that'll drag in yet more dependencies.
	// Only imports that start with "github.com/wallyworld/core" are checked, and the
	// resulting slice has that prefix removed to keep the output short.
	c.Assert(testbase.FindJujuCoreImports(c, "github.com/wallyworld/core/agent/tools"),
		gc.DeepEquals,
		[]string{"juju/arch", "tools", "utils/set", "version"})
}
Example #3
0
func (*importSuite) TestDependencies(c *gc.C) {
	// This test is to ensure we don't bring in dependencies at all.
	c.Assert(testbase.FindJujuCoreImports(c, "github.com/wallyworld/core/juju/osenv"),
		gc.HasLen, 0)
}
Example #4
0
func (*Dependencies) TestPackageDependencies(c *gc.C) {
	// This test is to ensure we don't bring in dependencies without thinking.
	c.Assert(testbase.FindJujuCoreImports(c, "github.com/wallyworld/core/utils/exec"),
		gc.HasLen, 0)
}
Example #5
0
func (*Dependencies) TestPackageDependencies(c *gc.C) {
	// This test is to ensure we don't bring in dependencies without thinking.
	c.Assert(testbase.FindJujuCoreImports(c, "github.com/wallyworld/core/utils/fslock"),
		gc.DeepEquals, []string{"juju/osenv", "thirdparty/pbkdf2", "utils"})
}
Example #6
0
func (*DependencySuite) TestPackageDependencies(c *gc.C) {
	// This test is to ensure we don't bring in any juju-core dependencies.
	c.Assert(testbase.FindJujuCoreImports(c, "github.com/wallyworld/core/testing/testbase"),
		gc.HasLen, 0)
}