Remove domain from floating-ip-dns-create-or-update-req body

`domain` is passed in the url req id, so it is unuseful in the
request body, remove it and v3 api-samples.

Change-Id: If8bdfb7fc928daaf01c9612c97c6b391d3139505
This commit is contained in:
Eli Qiao 2014-10-17 10:53:18 +08:00
parent 8b0e091577
commit 5fbae427ea
3 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,5 @@
{
"domain_entry": {
"domain": "domain1.example.org",
"scope": "public",
"project": "project1"
}

View File

@ -1,6 +1,5 @@
{
"domain_entry": {
"domain": "%(domain)s",
"scope": "%(scope)s",
"project": "%(project)s"
}

View File

@ -26,11 +26,11 @@ class FloatingIpDNSTest(api_sample_base.ApiSampleTestBaseV3):
ip = '192.168.1.1'
def _create_or_update(self):
subs = {'domain': self.domain,
'project': self.project,
subs = {'project': self.project,
'scope': self.scope}
response = self._do_put('os-floating-ip-dns/%s' % self.domain,
'floating-ip-dns-create-or-update-req', subs)
subs.update({'domain': self.domain})
self._verify_response('floating-ip-dns-create-or-update-resp', subs,
response, 200)