aboutsummaryrefslogtreecommitdiffstats
path: root/Testcases/cfgm_common/rest.py
diff options
context:
space:
mode:
authorStuart Mackie <wsmackie@juniper.net>2017-03-23 06:26:16 -0700
committerStuart Mackie <wsmackie@juniper.net>2017-03-23 06:26:16 -0700
commitc29a525331b45ead15ec376d03f76836d622c943 (patch)
tree6713f16cb30c739a66a0cb56fb4e2efed732eff1 /Testcases/cfgm_common/rest.py
parent88df88a19674ccc0017836941b8ee32eaadf19fb (diff)
Removed test case files without correct license language. Will replace in future.
Change-Id: I16435a250257cf97a67a8ba31303c89d74204ac2 Signed-off-by: Stuart Mackie <wsmackie@juniper.net>
Diffstat (limited to 'Testcases/cfgm_common/rest.py')
-rw-r--r--Testcases/cfgm_common/rest.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/Testcases/cfgm_common/rest.py b/Testcases/cfgm_common/rest.py
deleted file mode 100644
index 7287f8d..0000000
--- a/Testcases/cfgm_common/rest.py
+++ /dev/null
@@ -1,41 +0,0 @@
-#
-# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
-#
-OP_POST = 1
-OP_GET = 2
-OP_PUT = 3
-OP_DELETE = 4
-
-
-def hdr_client_tenant():
- return 'X-Tenant-Name'
-# end hdr_tenant_client
-
-# TODO transform from client value
-
-
-def hdr_server_tenant():
- return 'HTTP_X_TENANT_NAME'
-# end hdr_tenant_server
-
-
-class LinkObject(object):
-
- def __init__(self, rel, base_url, uri, name):
- self.rel = rel
- self.base_url = base_url
- self.uri = uri
- self.name = name
- # end __init__
-
- def to_dict(self, with_url=None):
- if not with_url:
- url = self.base_url
- else:
- url = with_url
- return {'rel': self.rel,
- 'href': url + self.uri,
- 'name': self.name}
- # end to_dict
-
-# end class LinkObject