You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ts...@apache.org on 2013/10/22 12:09:03 UTC

git commit: updated refs/heads/master to 3f656b0

Updated Branches:
  refs/heads/master 7eb05fa22 -> 3f656b043


The code module represents enum for constant comparison

This module provides facilitation to use uniform codes across various test
features. Users can import this  module and use these codes to maintain
readability and one point of change.

Signed-off-by: Santhosh Edukulla <Sa...@citrix.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3f656b04
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3f656b04
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3f656b04

Branch: refs/heads/master
Commit: 3f656b04348a8db17528617b62fcf5687c25dfeb
Parents: 7eb05fa
Author: Santhosh Edukulla <Sa...@citrix.com>
Authored: Tue Oct 22 20:46:04 2013 +0530
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Tue Oct 22 15:38:48 2013 +0530

----------------------------------------------------------------------
 tools/marvin/marvin/codes.py | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3f656b04/tools/marvin/marvin/codes.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/codes.py b/tools/marvin/marvin/codes.py
new file mode 100644
index 0000000..6099d88
--- /dev/null
+++ b/tools/marvin/marvin/codes.py
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+"""
+@Desc     : This module defines all codes, constants maintained globally \
+            and used across marvin and its test features.The main purpose \
+            is to maintain readability, maintain one common place for \
+            all codes used or reused across test features. It enhances \
+            maintainability and readability. Users just import statement \
+            to receive all the codes mentioned here. EX: Here, we define \
+            a code viz., ENABLED  with value "Enabled",then using \
+            this code in a sample feature say test_a.py as below. \
+
+            from marvinCodes import *
+            if obj.getvalue() == ENABLED
+
+@DateAdded: 20th October 2013
+"""
+
+ENABLED = "Enabled"
+NETWORK_OFFERING = "network_offering"
+ROOT = "ROOT"