diff --git a/ui-v2/app/components/consul-instance-checks/index.hbs b/ui-v2/app/components/consul-instance-checks/index.hbs new file mode 100644 index 000000000..937b2942d --- /dev/null +++ b/ui-v2/app/components/consul-instance-checks/index.hbs @@ -0,0 +1,32 @@ +{{#if (gt items.length 0)}} + {{#if (eq healthCheck.check 'empty') }} +
diff --git a/ui-v2/tests/acceptance/components/catalog-filter.feature b/ui-v2/tests/acceptance/components/catalog-filter.feature
index 552816415..68b9e02c5 100644
--- a/ui-v2/tests/acceptance/components/catalog-filter.feature
+++ b/ui-v2/tests/acceptance/components/catalog-filter.feature
@@ -90,8 +90,8 @@ Feature: components / catalog-filter
node: node-0
---
# And I see 3 healthcheck model with the name "Disk Util"
- When I click services on the tabs
- And I see servicesIsSelected on the tabs
+ When I click serviceInstances on the tabs
+ And I see serviceInstancesIsSelected on the tabs
Then I fill in with yaml
---
@@ -101,12 +101,6 @@ Feature: components / catalog-filter
And I see 1 [Model] model with the port "65535"
Then I fill in with yaml
---
- s: service-0-with-id
- ---
- And I see 1 [Model] model
- And I see 1 [Model] model with the id "service-0-with-id"
- Then I fill in with yaml
- ---
s: hard drive
---
And I see 1 [Model] model with the name "[Model]-1"
diff --git a/ui-v2/tests/acceptance/dc/nodes/services/list.feature b/ui-v2/tests/acceptance/dc/nodes/services/list.feature
index 1d99fd9f9..e7c6010df 100644
--- a/ui-v2/tests/acceptance/dc/nodes/services/list.feature
+++ b/ui-v2/tests/acceptance/dc/nodes/services/list.feature
@@ -30,24 +30,18 @@ Feature: dc / nodes / services / list: Node > Services Listing
Tags: []
Meta:
external-source: kubernetes
- - ID: 'service-4'
- Port: 3
- Service: 'service-4'
- Tags: []
- Meta: ~
---
When I visit the node page for yaml
---
dc: dc1
node: node-0
---
- When I click services on the tabs
- And I see servicesIsSelected on the tabs
+ When I click serviceInstances on the tabs
+ And I see serviceInstancesIsSelected on the tabs
And I see externalSource on the services like yaml
---
- consul
- nomad
- terraform
- kubernetes
- - ~
---
diff --git a/ui-v2/tests/acceptance/dc/nodes/show.feature b/ui-v2/tests/acceptance/dc/nodes/show.feature
index d40300141..00e0b896d 100644
--- a/ui-v2/tests/acceptance/dc/nodes/show.feature
+++ b/ui-v2/tests/acceptance/dc/nodes/show.feature
@@ -11,8 +11,8 @@ Feature: dc / nodes / show: Show node
---
And I see healthChecksIsSelected on the tabs
- When I click services on the tabs
- And I see servicesIsSelected on the tabs
+ When I click serviceInstances on the tabs
+ And I see serviceInstancesIsSelected on the tabs
When I click roundTripTime on the tabs
And I see roundTripTimeIsSelected on the tabs
@@ -34,14 +34,14 @@ Feature: dc / nodes / show: Show node
---
And I see healthChecksIsSelected on the tabs
- When I click services on the tabs
- And I see servicesIsSelected on the tabs
+ When I click serviceInstances on the tabs
+ And I see serviceInstancesIsSelected on the tabs
And I don't see roundTripTime on the tabs
When I click lockSessions on the tabs
And I see lockSessionsIsSelected on the tabs
- Scenario: Given 1 node with no checks all the tabs are visible but the Services tab is selected
+ Scenario: Given 1 node with no checks all the tabs are visible but the serviceInstances tab is selected
Given 1 node models from yaml
---
ID: node-0
@@ -53,10 +53,10 @@ Feature: dc / nodes / show: Show node
node: node-0
---
And I see healthChecks on the tabs
- And I see services on the tabs
+ And I see serviceInstances on the tabs
And I don't see roundTripTime on the tabs
And I see lockSessions on the tabs
- And I see servicesIsSelected on the tabs
+ And I see serviceInstancesIsSelected on the tabs
Scenario: A node warns when deregistered whilst blocking
Given 1 node model from yaml
---
diff --git a/ui-v2/tests/integration/components/consul-instance-checks-test.js b/ui-v2/tests/integration/components/consul-instance-checks-test.js
new file mode 100644
index 000000000..efd334c0f
--- /dev/null
+++ b/ui-v2/tests/integration/components/consul-instance-checks-test.js
@@ -0,0 +1,25 @@
+import { module, test } from 'qunit';
+import { setupRenderingTest } from 'ember-qunit';
+import { render } from '@ember/test-helpers';
+import { hbs } from 'ember-cli-htmlbars';
+
+module('Integration | Component | consul-instance-checks', function(hooks) {
+ setupRenderingTest(hooks);
+
+ test('it renders', async function(assert) {
+ // Set any properties with this.set('myProperty', 'value');
+ // Handle any actions with this.set('myAction', function(val) { ... });
+
+ await render(hbs`