You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tez.apache.org by sr...@apache.org on 2016/04/26 12:18:34 UTC
[03/31] tez git commit: TEZ-3227. Tez UI: Replace UI1 with UI2 (sree)
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/mixins/auto-counter-column-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/mixins/auto-counter-column-test.js b/tez-ui2/src/main/webapp/tests/unit/mixins/auto-counter-column-test.js
deleted file mode 100644
index 88e2e09..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/mixins/auto-counter-column-test.js
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import Ember from 'ember';
-import AutoCounterColumnMixin from '../../../mixins/auto-counter-column';
-import { module, test } from 'qunit';
-
-module('Unit | Mixin | auto counter column');
-
-test('Basic creation test', function(assert) {
- let AutoCounterColumnObject = Ember.Object.extend(AutoCounterColumnMixin);
- let subject = AutoCounterColumnObject.create();
-
- assert.ok(subject);
- assert.ok(subject.columnSelectorMessage);
- assert.ok(subject.getCounterColumns);
-});
-
-test('getCounterColumns test', function(assert) {
- let TestParent = Ember.Object.extend({
- getCounterColumns: function () { return []; }
- });
-
- let AutoCounterColumnObject = TestParent.extend(AutoCounterColumnMixin);
- let subject = AutoCounterColumnObject.create({
- model: [{
- counterGroupsHash: {
- gp1: {
- c11: "v11",
- c12: "v12"
- }
- }
- }, {
- counterGroupsHash: {
- gp2: {
- c21: "v21",
- c22: "v22"
- },
- gp3: {
- c31: "v31",
- c32: "v32"
- }
- }
- }]
- });
-
- let columns = subject.getCounterColumns();
- assert.equal(columns.length, 6);
- assert.equal(columns[0].counterGroupName, "gp1");
- assert.equal(columns[0].counterName, "c11");
- assert.equal(columns[1].counterGroupName, "gp1");
- assert.equal(columns[1].counterName, "c12");
-
- assert.equal(columns[2].counterGroupName, "gp2");
- assert.equal(columns[2].counterName, "c21");
- assert.equal(columns[3].counterGroupName, "gp2");
- assert.equal(columns[3].counterName, "c22");
-
- assert.equal(columns[4].counterGroupName, "gp3");
- assert.equal(columns[4].counterName, "c31");
- assert.equal(columns[5].counterGroupName, "gp3");
- assert.equal(columns[5].counterName, "c32");
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/mixins/name-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/mixins/name-test.js b/tez-ui2/src/main/webapp/tests/unit/mixins/name-test.js
deleted file mode 100644
index aedd0cd..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/mixins/name-test.js
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import Ember from 'ember';
-import NameMixin from '../../../mixins/name';
-import { module, test } from 'qunit';
-
-module('Unit | Mixin | name');
-
-test('Basic creation', function(assert) {
- let NameObject = Ember.Object.extend(NameMixin);
- let subject = NameObject.create();
-
- assert.ok(subject);
- assert.ok(subject.name);
-});
-
-test('name test', function(assert) {
- let NameObject = Ember.Object.extend(NameMixin),
- testName = "ts";
-
- let subject = NameObject.create({
- toString: function () {
- return `<tez-ui@test:${testName}::ember427>`;
- }
- });
-
- assert.equal(subject.get("name"), testName);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/abstract-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/abstract-test.js b/tez-ui2/src/main/webapp/tests/unit/models/abstract-test.js
deleted file mode 100644
index bd6f141..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/abstract-test.js
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import Ember from 'ember';
-
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('abstract', 'Unit | Model | abstract', {
- // Specify the other units that are required for this test.
- // needs: []
-});
-
-test('Basic test for existence', function(assert) {
- let model = this.subject();
-
- assert.ok(model);
- assert.ok(model.mergedProperties);
- assert.ok(model.refreshLoadTime);
-
- assert.ok(model._notifyProperties);
- assert.ok(model.didLoad);
-
- assert.ok(model.entityID);
- assert.ok(model.index);
- assert.ok(model.status);
- assert.ok(model.isComplete);
-});
-
-test('_notifyProperties test - will fail if _notifyProperties implementation is changed in ember-data', function(assert) {
- let model = this.subject();
-
- Ember._beginPropertyChanges = Ember.beginPropertyChanges;
-
- assert.expect(1 + 1);
- // refreshLoadTime will be called by us & beginPropertyChanges by ember data
-
- Ember.beginPropertyChanges = function () {
- assert.ok(true);
- Ember._beginPropertyChanges();
- };
- model.refreshLoadTime = function () {
- assert.ok(true);
- };
-
- model._notifyProperties([]);
-
- Ember.beginPropertyChanges = Ember._beginPropertyChanges;
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/ahs-app-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/ahs-app-test.js b/tez-ui2/src/main/webapp/tests/unit/models/ahs-app-test.js
deleted file mode 100644
index 5fd9c60..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/ahs-app-test.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('ahs-app', 'Unit | Model | ahs app', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject();
-
- assert.ok(!!model);
- assert.ok(!!model.duration);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/am-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/am-test.js b/tez-ui2/src/main/webapp/tests/unit/models/am-test.js
deleted file mode 100644
index 75317bc..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/am-test.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('am', 'Unit | Model | am', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject();
-
- // let store = this.store();
- assert.ok(!!model);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/am-timeline-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/am-timeline-test.js b/tez-ui2/src/main/webapp/tests/unit/models/am-timeline-test.js
deleted file mode 100644
index 3ed9efb..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/am-timeline-test.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('am-timeline', 'Unit | Model | am timeline', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject();
- // let store = this.store();
-
- assert.ok(!!model);
- assert.ok(!!model.status);
- assert.ok(!!model.progress);
- assert.ok(!!model.counterGroupsHash);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/app-rm-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/app-rm-test.js b/tez-ui2/src/main/webapp/tests/unit/models/app-rm-test.js
deleted file mode 100644
index 8a4a630..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/app-rm-test.js
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('app-rm', 'Unit | Model | app rm', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject();
-
- assert.ok(!!model);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/app-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/app-test.js b/tez-ui2/src/main/webapp/tests/unit/models/app-test.js
deleted file mode 100644
index 06d7386..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/app-test.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('app', 'Unit | Model | app', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject();
-
- assert.ok(model);
- assert.ok(model.needs);
- assert.ok(model.appID);
-});
-
-test('appID test', function(assert) {
- let model = this.subject({
- entityID: "tez_1_2_3",
- });
-
- assert.equal(model.get("appID"), "1_2_3");
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/attempt-am-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/attempt-am-test.js b/tez-ui2/src/main/webapp/tests/unit/models/attempt-am-test.js
deleted file mode 100644
index 0e7f2d0..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/attempt-am-test.js
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('attempt-am', 'Unit | Model | attempt am', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject();
- // let store = this.store();
- assert.ok(!!model);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/attempt-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/attempt-test.js b/tez-ui2/src/main/webapp/tests/unit/models/attempt-test.js
deleted file mode 100644
index faa27ad..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/attempt-test.js
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('attempt', 'Unit | Model | attempt', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject();
-
- assert.ok(model);
-
- assert.ok(model.needs.dag);
- assert.ok(model.needs.am);
-
- assert.ok(model.taskID);
- assert.ok(model.taskIndex);
-
- assert.ok(model.vertexID);
- assert.ok(model.vertexIndex);
- assert.ok(model.vertexName);
-
- assert.ok(model.dagID);
- assert.ok(model.dag);
-
- assert.ok(model.containerID);
- assert.ok(model.nodeID);
-
- assert.ok(model.logURL);
-});
-
-test('index test', function(assert) {
- let model = this.subject({
- entityID: "1_2_3"
- });
-
- assert.equal(model.get("index"), "3");
-});
-
-test('taskIndex test', function(assert) {
- let model = this.subject({
- taskID: "1_2_3",
- });
-
- assert.equal(model.get("taskIndex"), "3");
-});
-
-test('vertexName test', function(assert) {
- let testVertexName = "Test Vertex",
- model = this.subject({
- vertexID: "1_2",
- dag: {
- vertexIdNameMap: {
- "1_2": testVertexName
- }
- }
- });
-
- assert.equal(model.get("vertexName"), testVertexName);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/dag-am-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/dag-am-test.js b/tez-ui2/src/main/webapp/tests/unit/models/dag-am-test.js
deleted file mode 100644
index 58ac45a..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/dag-am-test.js
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('dag-am', 'Unit | Model | dag am', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject();
- // let store = this.store();
- assert.ok(!!model);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/dag-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/dag-test.js b/tez-ui2/src/main/webapp/tests/unit/models/dag-test.js
deleted file mode 100644
index 513af7d..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/dag-test.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import Ember from 'ember';
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('dag', 'Unit | Model | dag', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject(),
- testQueue = "TQ";
-
- Ember.run(function () {
- model.set("app", {
- queue: testQueue
- });
-
- assert.ok(!!model);
- assert.ok(!!model.needs.am);
- assert.equal(model.get("queue"), testQueue);
- });
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/rm-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/rm-test.js b/tez-ui2/src/main/webapp/tests/unit/models/rm-test.js
deleted file mode 100644
index 39ea4b1..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/rm-test.js
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('rm', 'Unit | Model | rm', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject();
- // let store = this.store();
- assert.ok(!!model);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/task-am-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/task-am-test.js b/tez-ui2/src/main/webapp/tests/unit/models/task-am-test.js
deleted file mode 100644
index fac3a5a..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/task-am-test.js
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('task-am', 'Unit | Model | task am', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject();
- // let store = this.store();
- assert.ok(!!model);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/task-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/task-test.js b/tez-ui2/src/main/webapp/tests/unit/models/task-test.js
deleted file mode 100644
index 076b4eb..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/task-test.js
+++ /dev/null
@@ -1,61 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('task', 'Unit | Model | task', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject();
-
- assert.ok(model);
- assert.ok(model.needs.dag);
- assert.ok(model.needs.am);
-
- assert.ok(model.vertexID);
- assert.ok(model.vertexIndex);
- assert.ok(model.vertexName);
-
- assert.ok(model.dagID);
- assert.ok(model.dag);
-});
-
-test('index test', function(assert) {
- let model = this.subject({
- entityID: "1_2_3",
- });
-
- assert.equal(model.get("index"), "3");
-});
-
-test('vertexName test', function(assert) {
- let testVertexName = "Test Vertex",
- model = this.subject({
- vertexID: "1_2",
- dag: {
- vertexIdNameMap: {
- "1_2": testVertexName
- }
- }
- });
-
- assert.equal(model.get("vertexName"), testVertexName);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/timeline-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/timeline-test.js b/tez-ui2/src/main/webapp/tests/unit/models/timeline-test.js
deleted file mode 100644
index c47054e..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/timeline-test.js
+++ /dev/null
@@ -1,124 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import Ember from 'ember';
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('timeline', 'Unit | Model | timeline', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject();
-
- assert.ok(!!model);
-
- assert.ok(model.needs);
-
- assert.ok(model.entityID);
- assert.ok(model.appID);
- assert.ok(model.app);
-
- assert.ok(model.atsStatus);
- assert.ok(model.status);
- assert.ok(model.progress);
-
- assert.ok(model.startTime);
- assert.ok(model.endTime);
- assert.ok(model.duration);
-
- assert.ok(model._counterGroups);
- assert.ok(model.counterGroupsHash);
-});
-
-test('appID test', function(assert) {
- let model = this.subject();
-
- Ember.run(function () {
- model.set("entityID", "a_1_2_3");
- assert.equal(model.get("appID"), "application_1_2");
- });
-});
-
-test('status test', function(assert) {
- let model = this.subject();
-
- Ember.run(function () {
- model.set("atsStatus", "RUNNING");
- assert.equal(model.get("status"), "RUNNING");
-
- model.set("app", {
- status: "FAILED"
- });
- assert.equal(model.get("status"), "FAILED");
- });
-});
-
-test('progress test', function(assert) {
- let model = this.subject();
-
- Ember.run(function () {
- model.set("status", "RUNNING");
- assert.equal(model.get("progress"), null);
-
- model.set("status", "SUCCEEDED");
- assert.equal(model.get("progress"), 1);
- });
-});
-
-test('duration test', function(assert) {
- let model = this.subject();
-
- Ember.run(function () {
- model.set("startTime", 100);
- model.set("endTime", 200);
- assert.equal(model.get("duration"), 100);
- });
-});
-
-test('counterGroupsHash test', function(assert) {
- let model = this.subject(),
- testCounterGroup = [{
- counterGroupName: "group_1",
- counters: [{
- counterName: "counter_1_1",
- counterValue: "value_1_1"
- },{
- counterName: "counter_1_2",
- counterValue: "value_1_2"
- }]
- },{
- counterGroupName: "group_2",
- counters: [{
- counterName: "counter_2_1",
- counterValue: "value_2_1"
- },{
- counterName: "counter_2_2",
- counterValue: "value_2_2"
- }]
- }];
-
- Ember.run(function () {
- model.set("_counterGroups", testCounterGroup);
- assert.equal(model.get("counterGroupsHash.group_1.counter_1_1"), "value_1_1");
- assert.equal(model.get("counterGroupsHash.group_1.counter_1_2"), "value_1_2");
- assert.equal(model.get("counterGroupsHash.group_2.counter_2_1"), "value_2_1");
- assert.equal(model.get("counterGroupsHash.group_2.counter_2_2"), "value_2_2");
- });
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/vertex-am-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/vertex-am-test.js b/tez-ui2/src/main/webapp/tests/unit/models/vertex-am-test.js
deleted file mode 100644
index d0e3582..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/vertex-am-test.js
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('vertex-am', 'Unit | Model | vertex am', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject();
- // let store = this.store();
-
- assert.ok(!!model);
-
- assert.ok(model.initTime);
- assert.ok(model.startTime);
- assert.ok(model.endTime);
- assert.ok(model.firstTaskStartTime);
- assert.ok(model.lastTaskFinishTime);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/models/vertex-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/models/vertex-test.js b/tez-ui2/src/main/webapp/tests/unit/models/vertex-test.js
deleted file mode 100644
index e3195bd..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/models/vertex-test.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import Ember from 'ember';
-
-import { moduleForModel, test } from 'ember-qunit';
-
-moduleForModel('vertex', 'Unit | Model | vertex', {
- // Specify the other units that are required for this test.
- needs: []
-});
-
-test('Basic creation test', function(assert) {
- let model = this.subject();
-
- assert.ok(model);
-
- assert.ok(model.needs.dag);
- assert.ok(model.needs.am);
-
- assert.ok(model.runningTasks);
- assert.ok(model.pendingTasks);
-
- assert.ok(model.initTime);
- assert.ok(model.startTime);
- assert.ok(model.endTime);
- assert.ok(model.firstTaskStartTime);
- assert.ok(model.lastTaskFinishTime);
-
- assert.ok(model.finalStatus);
-});
-
-test('runningTasks test', function(assert) {
- let model = this.subject();
-
- Ember.run(function () {
- assert.equal(model.get("runningTasks"), null);
- model.set("status", "SUCCEEDED");
- assert.equal(model.get("runningTasks"), 0);
- });
-});
-
-test('pendingTasks test', function(assert) {
- let model = this.subject();
-
- Ember.run(function () {
- model.set("totalTasks", null);
- assert.equal(model.get("pendingTasks"), null);
- model.set("totalTasks", 2);
- model.set("_succeededTasks", 1);
- model.set("status", "SUCCEEDED");
- assert.equal(model.get("pendingTasks"), 1);
- });
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/abstract-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/abstract-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/abstract-test.js
deleted file mode 100644
index 9ed3452..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/abstract-test.js
+++ /dev/null
@@ -1,282 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import Ember from 'ember';
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:abstract', 'Unit | Route | abstract', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
-
- assert.ok(route.loaderQueryParams);
- assert.ok(route.model);
- assert.ok(route.queryFromParams);
-
- assert.ok(route.setDocTitle);
- assert.ok(route.setupController);
-
- assert.ok(route.checkAndCall);
-
- assert.ok(route.setLoading);
- assert.ok(route.loadData);
- assert.ok(route.beforeLoad);
- assert.ok(route.load);
- assert.ok(route.afterLoad);
- assert.ok(route.setValue);
-
- assert.ok(route.getLoadTime);
- assert.ok(route._setControllerModel);
- assert.ok(route.setLoader);
-
- assert.ok(route.actions.setBreadcrumbs);
- assert.ok(route.actions.bubbleBreadcrumbs);
-});
-
-test('queryFromParams test', function(assert) {
- let route = this.subject({
- loaderQueryParams: {
- id: "a_id",
- b: "b"
- }
- }),
- testParam = {
- a: 1,
- a_id: 2,
- b: 3,
- b_id: 4
- };
-
- assert.deepEqual(route.queryFromParams(testParam), {
- id: 2,
- b: 3
- });
-});
-
-test('checkAndCall test', function(assert) {
- let route = this.subject(),
- testValue = {},
- testQuery = {},
- testOptions = {};
-
- assert.expect(3 + 1);
-
- route.testFunction = function (value, query, options) {
- assert.equal(value, testValue, "Value check for id 1");
- assert.equal(query, testQuery, "Query check for id 1");
- assert.equal(options, testOptions, "Options check for id 1");
- };
- route.currentPromiseId = 1;
-
- route.checkAndCall(1, "testFunction", testQuery, testOptions, testValue);
- assert.throws(function () {
- route.checkAndCall(2, "testFunction", testQuery, testOptions, testValue);
- });
-});
-
-test('loadData test - Hook sequence check', function(assert) {
- let route = this.subject();
-
- // Bind poilyfill
- Function.prototype.bind = function (context, val1, val2, val3, val4) {
- var that = this;
- return function (val) {
- return that.call(context, val1, val2, val3, val4, val);
- };
- };
-
- assert.expect(4 + 1);
-
- route.setLoading = function () {
- return 1;
- };
- route.beforeLoad = function (value) {
- assert.equal(value, 1, "beforeLoad");
- return ++value;
- };
- route.load = function (value) {
- assert.equal(value, 2, "load");
- return ++value;
- };
- route.afterLoad = function (value) {
- assert.equal(value, 3, "afterLoad");
- return ++value;
- };
- route.setValue = function (value) {
- assert.equal(value, 4, "setValue");
- return ++value;
- };
-
- route.loadData().then(function (value) {
- assert.equal(value, 5, "Value returned by loadData");
- });
-
-});
-
-test('loadData test - ID change check with exception throw', function(assert) {
- let route = this.subject();
-
- // Bind poilyfill
- Function.prototype.bind = function (context, val1, val2, val3, val4) {
- var that = this;
- return function (val) {
- return that.call(context, val1, val2, val3, val4, val);
- };
- };
-
- assert.expect(2 + 1);
-
- route.setLoading = function () {
- return 1;
- };
- route.beforeLoad = function (value) {
- assert.equal(value, 1, "beforeLoad");
- return ++value;
- };
- route.load = function (value) {
- assert.equal(value, 2, "load");
-
- route.currentPromiseId = 0;
-
- return ++value;
- };
- route.afterLoad = function (value) {
- assert.equal(value, 3, "afterLoad");
- return ++value;
- };
- route.setValue = function (value) {
- assert.equal(value, 4, "setValue");
- return ++value;
- };
-
- route.loadData().then(function () {
- assert.notOk("Shouldn't be called");
- }).catch(function () {
- assert.ok(true, "Exception thrown");
- });
-});
-
-test('setLoading test', function(assert) {
- let route = this.subject();
-
- route.controller = Ember.Object.create();
-
- assert.equal(route.get("isLoading"), false);
- route.setLoading();
- assert.equal(route.get("isLoading"), true);
-});
-
-test('beforeLoad load afterLoad test', function(assert) {
- let route = this.subject(),
- testVal = {};
-
- assert.equal(route.beforeLoad(testVal), testVal);
- assert.equal(route.load(testVal), testVal);
- assert.equal(route.afterLoad(testVal), testVal);
-});
-
-test('setValue test', function(assert) {
- let route = this.subject(),
- testVal = {};
-
- route.controller = Ember.Object.create();
-
- route.setLoading();
- assert.equal(route.get("loadedValue"), null);
- assert.equal(route.get("isLoading"), true);
- assert.equal(route.setValue(testVal), testVal);
- assert.equal(route.get("loadedValue"), testVal);
- assert.equal(route.get("isLoading"), false);
-});
-
-test('getLoadTime test', function(assert) {
- let route = this.subject(),
- testTime = Date.now(),
- testRecord = {
- loadTime: testTime
- };
-
- assert.equal(route.getLoadTime(testRecord), testTime);
- assert.equal(route.getLoadTime([testRecord]), testTime);
-});
-
-test('_setControllerModel test', function(assert) {
- let route = this.subject(),
- testValue = {},
- testController = Ember.Object.create();
-
- route.set("loadedValue", testValue);
- route.set("controller", testController);
-
- assert.notOk(testController.model);
- route._setControllerModel();
- assert.equal(testController.model, testValue, "With controller");
-});
-
-test('setLoader test', function(assert) {
- let route = this.subject(),
- testNamespace = "tn",
- oldLoader = route.get("loader");
-
- route.setLoader(testNamespace);
-
- assert.notEqual(route.get("loader"), oldLoader);
- assert.equal(route.get("loader.nameSpace"), testNamespace);
- assert.equal(route.get("loader.store"), route.get("store"));
- assert.equal(route.get("loader.container"), route.get("container"));
-});
-
-test('actions.setBreadcrumbs test', function(assert) {
- let testName = "ts",
- route = this.subject({
- name: testName
- }),
- testCrumbs = {};
-
- // Because all controllers are pointing to the leaf rout
- testCrumbs[testName] = testCrumbs;
-
- route.send("setBreadcrumbs", testCrumbs);
- assert.equal(route.get("breadcrumbs"), testCrumbs);
-
- route.send("setBreadcrumbs", {});
- assert.equal(route.get("breadcrumbs"), testCrumbs);
-
- route.send("setBreadcrumbs", null);
- assert.equal(route.get("breadcrumbs"), testCrumbs);
-});
-
-test('actions.bubbleBreadcrumbs test', function(assert) {
- let testName = "ts",
- route = this.subject({
- name: testName
- }),
- existingCrumbs = [1, 2],
- testCrumbs = [1, 2];
-
- route.set("breadcrumbs", existingCrumbs);
-
- route.send("bubbleBreadcrumbs", testCrumbs);
- assert.equal(testCrumbs.length, 2 + 2);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/am-pollster-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/am-pollster-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/am-pollster-test.js
deleted file mode 100644
index c736491..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/am-pollster-test.js
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:am-pollster', 'Unit | Route | am pollster', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.onRecordPoll);
- assert.ok(route.onPollFailure);
- assert.ok(route.scheduleReload);
- assert.ok(route.reload);
- assert.ok(route.actions.countersToPollChanged);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/app-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/app-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/app-test.js
deleted file mode 100644
index 8e361ea..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/app-test.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:app', 'Unit | Route | app', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('it exists', function(assert) {
- let route = this.subject();
- assert.ok(route);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/app/configs-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/app/configs-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/app/configs-test.js
deleted file mode 100644
index c12189d..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/app/configs-test.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:app/configs', 'Unit | Route | app/configs', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.title);
- assert.ok(route.loaderNamespace);
- assert.ok(route.setupController);
- assert.ok(route.load);
-});
-
-test('setupController test', function(assert) {
- assert.expect(1);
-
- let route = this.subject({
- startCrumbBubble: function () {
- assert.ok(true);
- }
- });
-
- route.setupController({}, {});
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/app/dags-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/app/dags-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/app/dags-test.js
deleted file mode 100644
index 8c5f23d..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/app/dags-test.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:app/dags', 'Unit | Route | app/dags', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.title);
- assert.ok(route.loaderNamespace);
- assert.ok(route.setupController);
- assert.ok(route.load);
-});
-
-test('setupController test', function(assert) {
- assert.expect(1);
-
- let route = this.subject({
- startCrumbBubble: function () {
- assert.ok(true);
- }
- });
-
- route.setupController({}, {});
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/app/index-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/app/index-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/app/index-test.js
deleted file mode 100644
index 191cc18..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/app/index-test.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:app/index', 'Unit | Route | app/index', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.title);
- assert.ok(route.loaderNamespace);
- assert.ok(route.setupController);
- assert.ok(route.load);
-});
-
-test('setupController test', function(assert) {
- assert.expect(1);
-
- let route = this.subject({
- startCrumbBubble: function () {
- assert.ok(true);
- }
- });
-
- route.setupController({}, {});
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/application-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/application-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/application-test.js
deleted file mode 100644
index d6c455a..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/application-test.js
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:application', 'Unit | Route | application', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.pageReset);
- assert.ok(route.actions.didTransition);
- assert.ok(route.actions.bubbleBreadcrumbs);
-
- assert.ok(route.actions.error);
-
- assert.ok(route.actions.openModal);
- assert.ok(route.actions.closeModal);
- assert.ok(route.actions.destroyModal);
-
- assert.ok(route.actions.resetTooltip);
-});
-
-test('Test didTransition action', function(assert) {
- let route = this.subject();
-
- assert.expect(1);
-
- route.pageReset = function () {
- assert.ok(true);
- };
-
- route.send("didTransition");
-});
-
-test('Test bubbleBreadcrumbs action', function(assert) {
- let route = this.subject(),
- testController = {
- breadcrumbs: null
- },
- testBreadcrumbs = [{}];
-
- route.controller = testController;
-
- assert.notOk(route.get("controller.breadcrumbs"));
- route.send("bubbleBreadcrumbs", testBreadcrumbs);
- assert.equal(route.get("controller.breadcrumbs"), testBreadcrumbs);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/attempt-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/attempt-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/attempt-test.js
deleted file mode 100644
index a5eb447..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/attempt-test.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:attempt', 'Unit | Route | attempt', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.loaderQueryParams);
- assert.ok(route.model);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/attempt/counters-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/attempt/counters-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/attempt/counters-test.js
deleted file mode 100644
index 4d47431..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/attempt/counters-test.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:attempt/counters', 'Unit | Route | attempt/counters', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.title);
- assert.ok(route.loaderNamespace);
- assert.ok(route.setupController);
- assert.ok(route.load);
-});
-
-test('setupController test', function(assert) {
- assert.expect(1);
-
- let route = this.subject({
- startCrumbBubble: function () {
- assert.ok(true);
- }
- });
-
- route.setupController({}, {});
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/attempt/index-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/attempt/index-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/attempt/index-test.js
deleted file mode 100644
index 69877da..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/attempt/index-test.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:attempt/index', 'Unit | Route | attempt/index', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.title);
- assert.ok(route.loaderNamespace);
- assert.ok(route.setupController);
- assert.ok(route.load);
-});
-
-test('setupController test', function(assert) {
- assert.expect(1);
-
- let route = this.subject({
- startCrumbBubble: function () {
- assert.ok(true);
- }
- });
-
- route.setupController({}, {});
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/dag-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/dag-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/dag-test.js
deleted file mode 100644
index dc1c012..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/dag-test.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:dag', 'Unit | Route | dag', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('it exists', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.loaderQueryParams);
- assert.ok(route.model);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/dag/attempts-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/dag/attempts-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/dag/attempts-test.js
deleted file mode 100644
index 78dd520..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/dag/attempts-test.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:dag/attempts', 'Unit | Route | dag/attempts', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.title);
- assert.ok(route.loaderNamespace);
- assert.ok(route.setupController);
- assert.ok(route.load);
-});
-
-test('setupController test', function(assert) {
- assert.expect(1);
-
- let route = this.subject({
- startCrumbBubble: function () {
- assert.ok(true);
- }
- });
-
- route.setupController({}, {});
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/dag/counters-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/dag/counters-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/dag/counters-test.js
deleted file mode 100644
index d2cd66e..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/dag/counters-test.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:dag/counters', 'Unit | Route | dag/counters', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.title);
- assert.ok(route.loaderNamespace);
- assert.ok(route.setupController);
- assert.ok(route.load);
-});
-
-test('setupController test', function(assert) {
- assert.expect(1);
-
- let route = this.subject({
- startCrumbBubble: function () {
- assert.ok(true);
- }
- });
-
- route.setupController({}, {});
-});
-
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/dag/graphical-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/dag/graphical-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/dag/graphical-test.js
deleted file mode 100644
index ab838c5..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/dag/graphical-test.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:dag/graphical', 'Unit | Route | dag/graphical', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.title);
- assert.ok(route.loaderNamespace);
- assert.ok(route.setupController);
- assert.ok(route.load);
- assert.ok(route._loadedValueObserver);
- assert.ok(route.setViewHeight);
- assert.ok(route.actions.didTransition);
- assert.ok(route.actions.willTransition);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/dag/index-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/dag/index-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/dag/index-test.js
deleted file mode 100644
index 8c0cb5d..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/dag/index-test.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:dag/index', 'Unit | Route | dag/index', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.title);
- assert.ok(route.loaderNamespace);
- assert.ok(route.setupController);
- assert.ok(route.load);
-});
-
-test('setupController test', function(assert) {
- assert.expect(1);
-
- let route = this.subject({
- startCrumbBubble: function () {
- assert.ok(true);
- }
- });
-
- route.setupController({}, {});
-});
-
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/dag/index/index-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/dag/index/index-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/dag/index/index-test.js
deleted file mode 100644
index dc767ba..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/dag/index/index-test.js
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:dag/index/index', 'Unit | Route | dag/index/index', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.title);
- assert.ok(route.loaderNamespace);
- assert.ok(route.setupController);
- assert.ok(route.load);
-
- assert.ok(route._canPollObserver);
- assert.ok(route.actions.reload);
- assert.ok(route.actions.willTransition);
-});
-
-test('setupController test', function(assert) {
- assert.expect(1);
-
- let route = this.subject({
- startCrumbBubble: function () {
- assert.ok(true);
- }
- });
-
- route.setupController({}, {});
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/dag/swimlane-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/dag/swimlane-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/dag/swimlane-test.js
deleted file mode 100644
index 8d0197f..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/dag/swimlane-test.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:dag/swimlane', 'Unit | Route | dag/swimlane', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.title);
- assert.ok(route.loaderNamespace);
- assert.ok(route.setupController);
- assert.ok(route.load);
-});
-
-test('setupController test', function(assert) {
- assert.expect(1);
-
- let route = this.subject({
- startCrumbBubble: function () {
- assert.ok(true);
- }
- });
-
- route.setupController({}, {});
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/dag/tasks-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/dag/tasks-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/dag/tasks-test.js
deleted file mode 100644
index 0dc533d..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/dag/tasks-test.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:dag/tasks', 'Unit | Route | dag/tasks', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.title);
- assert.ok(route.loaderNamespace);
- assert.ok(route.setupController);
- assert.ok(route.load);
-});
-
-test('setupController test', function(assert) {
- assert.expect(1);
-
- let route = this.subject({
- startCrumbBubble: function () {
- assert.ok(true);
- }
- });
-
- route.setupController({}, {});
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/dag/vertices-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/dag/vertices-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/dag/vertices-test.js
deleted file mode 100644
index b8d2f2e..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/dag/vertices-test.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:dag/vertices', 'Unit | Route | dag/vertices', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.title);
- assert.ok(route.loaderNamespace);
- assert.ok(route.setupController);
- assert.ok(route.load);
-});
-
-test('setupController test', function(assert) {
- assert.expect(1);
-
- let route = this.subject({
- startCrumbBubble: function () {
- assert.ok(true);
- }
- });
-
- route.setupController({}, {});
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/dags-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/dags-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/dags-test.js
deleted file mode 100644
index dfa8223..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/dags-test.js
+++ /dev/null
@@ -1,132 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import Ember from 'ember';
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:dags', 'Unit | Route | dags', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.title);
-
- assert.ok(route.queryParams);
- assert.ok(route.loaderQueryParams);
- assert.ok(route.setupController);
- assert.ok(route.load);
-
- assert.ok(route.filterRecords);
-
- assert.ok(route.loadNewPage);
-
- assert.ok(route.actions.setLoadTime);
- assert.ok(route.actions.loadPage);
- assert.ok(route.actions.reload);
-
- assert.ok(route.actions.willTransition);
-});
-
-test('filterRecords test', function(assert) {
- let route = this.subject(),
- testRecords = [Ember.Object.create({
- name: "test"
- }), Ember.Object.create({
-
- }),Ember.Object.create({
- name: "notest"
- })],
- testQuery = {
- dagName: "test"
- };
-
- let filteredRecords = route.filterRecords(testRecords, testQuery);
-
- assert.equal(filteredRecords.length, 1);
- assert.equal(filteredRecords[0].name, "test");
-});
-
-test('load test', function(assert) {
- let route = this.subject({
- filterRecords: function () {
- return [];
- },
- controller: Ember.Object.create(),
- loaderNamespace: undefined,
- loader: {
- query: function (type, query, options) {
- assert.equal(type, "dag");
- assert.equal(query.limit, 6);
- assert.equal(options.reload, true);
- return {
- then: function (callback) {
- callback(Ember.Object.create({
- length: 6,
- popObject: function () {
- assert.ok(true);
- return Ember.Object.create();
- }
- }));
- }
- };
- }
- }
- }),
- query = {
- limit: 5
- };
-
- assert.expect(3 + 1);
-
- route.load(null, query);
-});
-
-test('loadNewPage test', function(assert) {
- let currentQuery = {
- val: {}
- },
- data = [],
- fromId = "id1",
- route = this.subject({
- controller: Ember.Object.create(),
- currentQuery: currentQuery,
- fromId: fromId,
- loadedValue: {
- pushObjects: function (objs) {
- assert.equal(data, objs);
- }
- },
- load: function (value, query) {
- assert.equal(query.val, currentQuery.val);
- assert.equal(query.fromId, fromId);
- return {
- then: function (callback) {
- callback(data);
- }
- };
- }
- });
-
- assert.expect(1 + 2);
-
- route.loadNewPage();
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/multi-am-pollster-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/multi-am-pollster-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/multi-am-pollster-test.js
deleted file mode 100644
index eb3670b..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/multi-am-pollster-test.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:multi-am-pollster', 'Unit | Route | multi am pollster', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
- assert.ok(route.canPoll);
- assert.ok(route.actions.setPollingRecords);
-});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/routes/pollster-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/routes/pollster-test.js b/tez-ui2/src/main/webapp/tests/unit/routes/pollster-test.js
deleted file mode 100644
index 79a5a99..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/routes/pollster-test.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('route:pollster', 'Unit | Route | pollster', {
- // Specify the other units that are required for this test.
- // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
- let route = this.subject();
-
- assert.ok(route);
-
- assert.ok(route.onRecordPoll);
- assert.ok(route.onPollSuccess);
- assert.ok(route.onPollFailure);
-
- assert.ok(route.pollData);
- assert.ok(route.canPoll);
- assert.ok(route._canPollInit);
- assert.ok(route._canPollObserver);
-});