I've used marvin without the testdata construct fine. never the ui. I'll
lookup the code once back at desk. Next afternoon
Thanks Prassana (formerly known as Prussia, almost called Praag by the
spellchecker )

mobile biligual spell checker used
Op 8 okt. 2013 16:01 schreef "Prasanna Santhanam" <t...@apache.org>:

> On Tue, Oct 08, 2013 at 03:27:10PM +0200, Daan Hoogland wrote:
> > H,
> >
> > I am building an integration test with marvin and the following data:
> >
> >             "network_offering": {
> >                 "name": 'Test Network offering',
> >                 "displaytext": 'Test Network offering',
> >                 "guestiptype": 'Isolated',
> >                 "supportedservices": 'Connectivity',
> >                 "traffictype": 'GUEST',
> >                 "availability": 'Optional',
> >                 "specifyvlan": False,
> >                 "specifyipranges": False,
> >                 "serviceproviderlist": {
> >                     "Connectivity": "NiciraNVP"
> >                 },
> >                 "conservemode": False,
> >                 "tags": [ "nicira-based" ]
> >             },
>
> This looks fine.
>
> >             "network": {
> >                 "name": "Test Network",
> >                 "displaytext": "Test Network",
> >                 "tags": "nicira-based"
> >             },
> >  in the code I put:
> >         self.network_offering = NetworkOffering.create(
> >             self.apiclient,
> >             self.testdata["network_offering"]
> >         )
> >         # Enable Network offering
> >         self.network_offering.update(self.apiclient, state='Enabled')
> >         self.testdata["network"]["zoneid"] = self.zone.id
> >         self.testdata["network"]["networkoffering"] =
> > self.network_offering.id
> >         self.network = Network.create(
> >             self.apiclient,
> >             self.testdata["network"]
> >         )
> > The network doesn't get created:
> >  431, errorText:More than one physical networks exist in zone id=1 and no
> > tags are specified in order to make a choice
> >
> > When inspecting indeed the tags are not set on the offering and neither
> is
> > conservemode.
>
> Is that a resource-tag for the network offering? What is the API
> request that is going to the management server from marvin? How does
> it compare against what you sent through via the UI?
>
> >
> > Am I hunting a bug ar did I misconfigure my test?
>
> I'm not sure. But it could just be that marvin created network
> offering is not the same as the network offering created via the UI.
>
> >
> > Daan
>
> --
> Prasanna.,
>
> ------------------------
> Powered by BigRock.com
>
>

Reply via email to