[compute] Add template tests to cookbook

Bug #1182563 reported by John Dewey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack + Chef
Fix Released
Wishlist
Federico Gimenez

Bug Description

We need chefspec tests to assert the contents of the templates. Ideally we only need to test conditional logic is handled properly in the templates.⋅

Currently they are marked as pending tests.

Jay Pipes (jaypipes)
Changed in openstack-chef:
status: New → Confirmed
importance: Undecided → Medium
John Dewey (retr0h)
Changed in openstack-chef:
importance: Medium → Wishlist
importance: Wishlist → Medium
Jay Pipes (jaypipes)
tags: added: compute
John Dewey (retr0h)
tags: added: chefspec
John Dewey (retr0h)
Changed in openstack-chef:
importance: Medium → Wishlist
summary: - Add template tests to openstack-compute cookbook
+ [compute] Add template tests to cookbook
no longer affects: openstack-chef/havana
Changed in openstack-chef:
milestone: stable-havana → none
Changed in openstack-chef:
assignee: nobody → Federico Gimenez Nieto (fgimenez)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cookbook-openstack-compute (master)

Fix proposed to branch: master
Review: https://review.openstack.org/82294

Changed in openstack-chef:
status: In Progress → Fix Committed
Changed in openstack-chef:
status: Fix Committed → In Progress
Changed in openstack-chef:
assignee: Federico Gimenez Nieto (fgimenez) → Justin Shepherd (jshepher)
Changed in openstack-chef:
assignee: Justin Shepherd (jshepher) → Federico Gimenez Nieto (fgimenez)
milestone: none → havana-rc1
Revision history for this message
Federico Gimenez (fgimenez) wrote :

I've proposed a patch for this bug and in the review [1] it has been suggested that it was incomplete because it only addressed the compute cookbook.

Looking at the bug's title, description, tags and history it seems clear to me that it refers indeed to the compute cookbook, is that right?

If other cookbooks need also tests for the templates perhaps other bugs should be filed against them, what do you think?

[1] https://review.openstack.org/82294

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cookbook-openstack-compute (master)

Reviewed: https://review.openstack.org/82294
Committed: https://git.openstack.org/cgit/stackforge/cookbook-openstack-compute/commit/?id=998eb1bb04f6c5573ce3e357914e3c3ad098a22d
Submitter: Jenkins
Branch: master

commit 998eb1bb04f6c5573ce3e357914e3c3ad098a22d
Author: Federico Gimenez Nieto <email address hidden>
Date: Sat Mar 22 13:28:35 2014 +0100

    Adds specs for template contents

    Both conditional and plain content are tested. All template-related
    pending tests have been addressed, one in spec/compute_spec.rb that
    was tied to a cookbook_file resource has been just removed.

    Change-Id: Ib2d8871794920a10ad8e111fc89ab03ab057d3dc
    Partial-Bug: #1182563

Revision history for this message
Justin Shepherd (jshepher) wrote :

Marking as 'fix commited', the review was requested to be marked as Partial-Bug because there are a bunch of these types of fixes across the cookbooks. However, this bug is against the compute cookbook and that has been addressed with this proposed patch.

Changed in openstack-chef:
status: In Progress → Fix Committed
Revision history for this message
Federico Gimenez (fgimenez) wrote :

Great Justin, thanks a lot! I'll try to go on with the rest of the template tests. Do you think it's better to create a bug for each cookbook or just one for all of them?

Changed in openstack-chef:
milestone: havana-rc1 → havana-stable
Changed in openstack-chef:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.