Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2552C109A6 for ; Tue, 19 Nov 2013 19:25:23 +0000 (UTC) Received: (qmail 99330 invoked by uid 500); 19 Nov 2013 19:25:23 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 99306 invoked by uid 500); 19 Nov 2013 19:25:23 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 99296 invoked by uid 99); 19 Nov 2013 19:25:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Nov 2013 19:25:22 +0000 Date: Tue, 19 Nov 2013 19:25:22 +0000 (UTC) From: "Eugene Chekanskiy (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-3817) Unittests for Group resource an all it's attributes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Eugene Chekanskiy created AMBARI-3817: ----------------------------------------- Summary: Unittests for Group resource an all it's attributes Key: AMBARI-3817 URL: https://issues.apache.org/jira/browse/AMBARI-3817 Project: Ambari Issue Type: Bug Components: agent Affects Versions: 1.5.0 Reporter: Eugene Chekanskiy Assignee: Eugene Chekanskiy Fix For: 1.5.0 Attachments: AMBARI-3817.patch Test resource Group of resource management . Test all actions and all the attributes. Here we should mock to test both scenarios where group already exists, and when it's not. Note here we should not call directly provider methods like action_create, but make resource management library do that for us, by calling env.run(). In other case test won't cover resources definitions, and other import logic -- This message was sent by Atlassian JIRA (v6.1#6144)