Skip to content

Commit

Permalink
Check node archival
Browse files Browse the repository at this point in the history
  • Loading branch information
Ari Zellner committed Jan 15, 2018
1 parent e6eca12 commit 25ccae5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ def assert_specific_persistent_volume_claim
# "my-project-2" - "my-pod-2", label of "my-route-2", parameters of "my-template-2"

before(:each) do
# fake node that should get archived
@archived_node = FactoryGirl.create(:container_node, :name => "node", :ems_id => @ems.id)

VCR.use_cassette("#{described_class.name.underscore}_after_deletions",
:allow_unused_http_interactions => true,
:match_requests_on => [:path,]) do # , :record => :new_episodes) do
Expand All @@ -497,6 +500,7 @@ def assert_specific_persistent_volume_claim
end

it "archives objects" do
expect(@archived_node.reload.archived?).to eq(true)
expect(ContainerGroup.count).to eq(object_counts['ContainerGroup'])
expect(ContainerGroup.active.count).to eq(object_counts['ContainerGroup'] - 3)
expect(ContainerGroup.archived.count).to eq(3)
Expand Down

0 comments on commit 25ccae5

Please sign in to comment.