github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/provider/oracle/networking_test.go (about) 1 // Copyright 2017 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package oracle_test 5 6 import ( 7 gitjujutesting "github.com/juju/testing" 8 gc "gopkg.in/check.v1" 9 10 "github.com/juju/juju/environs" 11 "github.com/juju/juju/provider/oracle" 12 oracletesting "github.com/juju/juju/provider/oracle/testing" 13 "github.com/juju/juju/testing" 14 ) 15 16 type networkingSuite struct { 17 gitjujutesting.IsolationSuite 18 } 19 20 var _ = gc.Suite(&networkingSuite{}) 21 22 func (n networkingSuite) TestDeleteMachineVnicSet(c *gc.C) { 23 environ, err := oracle.NewOracleEnviron( 24 &oracle.EnvironProvider{}, 25 environs.OpenParams{ 26 Config: testing.ModelConfig(c), 27 }, 28 oracletesting.DefaultEnvironAPI, 29 &advancingClock, 30 ) 31 32 c.Assert(err, gc.IsNil) 33 c.Assert(environ, gc.NotNil) 34 35 err = environ.DeleteMachineVnicSet("0") 36 c.Assert(err, gc.IsNil) 37 }