Skip to content

Commit

Permalink
Drop pending from graph refresh, except not testing tag mapping
Browse files Browse the repository at this point in the history
There are still missing parts that are untested.
  • Loading branch information
cben committed Jul 4, 2017
1 parent 8bb78b4 commit 5acbc0d
Showing 1 changed file with 24 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
)
end

let(:check_tag_mapping) { true }

def full_refresh_test
3.times do # Run three times to verify that second & third runs with existing data do not change anything
VCR.use_cassette(described_class.name.underscore) do # , :record => :new_episodes) do
Expand Down Expand Up @@ -59,17 +61,20 @@ def full_refresh_test
full_refresh_test
end

it "will perform a full refresh with inventory_objects on k8s" do
stub_settings_merge(
:ems_refresh => {
:kubernetes => {
:inventory_object_refresh => true
describe "graph refresh" do
let(:check_tag_mapping) { false } # TODO: pending implementation

it "will perform a full refresh with inventory_objects on k8s" do
stub_settings_merge(
:ems_refresh => {
:kubernetes => {
:inventory_object_refresh => true
}
}
}
)
)

pending("full implementation of graph refresh")
full_refresh_test
full_refresh_test
end
end

def assert_table_counts
Expand Down Expand Up @@ -169,9 +174,11 @@ def assert_specific_container_group
expect(@containergroup.labels).to contain_exactly(
label_with_name_value("name", "heapster")
)
expect(@containergroup.tags).to contain_exactly(
tag_in_category_with_description(@name_category, "heapster")
)
if check_tag_mapping
expect(@containergroup.tags).to contain_exactly(
tag_in_category_with_description(@name_category, "heapster")
)
end

# Check the relation to container node
expect(@containergroup.container_node).not_to be_nil
Expand Down Expand Up @@ -306,9 +313,11 @@ def assert_specific_container_replicator
expect(@replicator.labels).to contain_exactly(
label_with_name_value("name", "influxGrafana")
)
expect(@replicator.tags).to contain_exactly(
tag_in_category_with_description(@name_category, "influxGrafana")
)
if check_tag_mapping
expect(@replicator.tags).to contain_exactly(
tag_in_category_with_description(@name_category, "influxGrafana")
)
end
expect(@replicator.selector_parts.count).to eq(1)

@group = ContainerGroup.where(:name => "monitoring-influx-grafana-controller-22icy").first
Expand Down

0 comments on commit 5acbc0d

Please sign in to comment.