tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [05/31] tez git commit: TEZ-3227. Tez UI: Replace UI1 with UI2 (sree)
Date Tue, 26 Apr 2016 10:18:36 GMT
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/dags-pagination-ui-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/dags-pagination-ui-test.js b/tez-ui2/src/main/webapp/tests/integration/components/dags-pagination-ui-test.js
deleted file mode 100644
index e38a7be..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/dags-pagination-ui-test.js
+++ /dev/null
@@ -1,130 +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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-import wait from 'ember-test-helpers/wait';
-
-moduleForComponent('dags-pagination-ui', 'Integration | Component | dags pagination ui', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-  this.set("rowCountOptions", {
-    rowCountOptions: [1, 2]
-  });
-
-  this.render(hbs`{{dags-pagination-ui rowCountOptions=rowCountOptions}}`);
-
-  assert.equal(this.$('select').length, 1);
-
-  assert.equal(this.$('.page-list').length, 1);
-  assert.equal(this.$('li').length, 1);
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#dags-pagination-ui rowCountOptions=rowCountOptions}}
-      template block text
-    {{/dags-pagination-ui}}
-  `);
-
-  assert.equal(this.$('select').length, 1);
-});
-
-test('Page list test', function(assert) {
-  this.set("tableDefinition", {
-    pageNum: 5,
-    rowCount: 5,
-
-    loadingMore: false,
-    moreAvailable: true,
-
-    rowCountOptions: []
-  });
-  this.set("processor", {
-    totalPages: 10,
-    processedRows: {
-      length: 10
-    }
-  });
-
-  this.render(hbs`{{dags-pagination-ui tableDefinition=tableDefinition dataProcessor=processor}}`);
-
-  return wait().then(() => {
-    assert.equal(this.$('li').length, 4);
-    assert.equal(this.$('li').eq(0).text().trim(), "First");
-    assert.equal(this.$('li').eq(1).text().trim(), "4");
-    assert.equal(this.$('li').eq(2).text().trim(), "5");
-    assert.equal(this.$('li').eq(3).text().trim(), "6");
-  });
-});
-
-test('Page list - moreAvailable false test', function(assert) {
-  this.set("tableDefinition", {
-    pageNum: 5,
-    rowCount: 5,
-
-    loadingMore: false,
-    moreAvailable: false,
-
-    rowCountOptions: []
-  });
-  this.set("processor", {
-    totalPages: 5,
-    processedRows: {
-      length: 10
-    }
-  });
-
-  this.render(hbs`{{dags-pagination-ui tableDefinition=tableDefinition dataProcessor=processor}}`);
-
-  return wait().then(() => {
-    assert.equal(this.$('li').length, 4);
-    assert.equal(this.$('li').eq(1).text().trim(), "3");
-    assert.equal(this.$('li').eq(2).text().trim(), "4");
-    assert.equal(this.$('li').eq(3).text().trim(), "5");
-  });
-});
-
-test('Page list - moreAvailable true test', function(assert) {
-  this.set("tableDefinition", {
-    pageNum: 5,
-    rowCount: 5,
-
-    loadingMore: false,
-    moreAvailable: true,
-
-    rowCountOptions: []
-  });
-  this.set("processor", {
-    totalPages: 5,
-    processedRows: {
-      length: 10
-    }
-  });
-
-  this.render(hbs`{{dags-pagination-ui tableDefinition=tableDefinition dataProcessor=processor}}`);
-
-  return wait().then(() => {
-    assert.equal(this.$('li').length, 4);
-    assert.equal(this.$('li').eq(1).text().trim(), "4");
-    assert.equal(this.$('li').eq(2).text().trim(), "5");
-    assert.equal(this.$('li').eq(3).text().trim(), "6");
-  });
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/date-formatter-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/date-formatter-test.js b/tez-ui2/src/main/webapp/tests/integration/components/date-formatter-test.js
deleted file mode 100644
index dad41f9..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/date-formatter-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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-moduleForComponent('date-formatter', 'Integration | Component | em table date-formatter cell', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-
-  this.render(hbs`{{date-formatter}}`);
-
-  assert.equal(this.$().text().trim(), 'Not Available!');
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#date-formatter}}
-      template block text
-    {{/date-formatter}}
-  `);
-
-  assert.equal(this.$().text().trim(), 'Not Available!');
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-blocking-event-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-blocking-event-test.js b/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-blocking-event-test.js
deleted file mode 100644
index 1659ddc..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-blocking-event-test.js
+++ /dev/null
@@ -1,117 +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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-import wait from 'ember-test-helpers/wait';
-
-import Process from 'tez-ui/utils/process';
-import Processor from 'tez-ui/utils/processor';
-
-moduleForComponent('em-swimlane-blocking-event', 'Integration | Component | em swimlane blocking event', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-  this.set("process", Process.create());
-  this.set("processor", Processor.create());
-
-  this.render(hbs`{{em-swimlane-blocking-event processor=processor process=process}}`);
-
-  assert.equal(this.$().text().trim(), '');
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#em-swimlane-blocking-event processor=processor process=process}}
-      template block text
-    {{/em-swimlane-blocking-event}}
-  `);
-
-  assert.equal(this.$().text().trim(), '');
-});
-
-test('Blocking test', function(assert) {
-  var blockingEventName = "blockingEvent",
-      processIndex = 5,
-      blockingIndex = 7,
-      processColor = "#123456";
-
-  this.set("process", Process.create({
-    blockingEventName: blockingEventName,
-    index: processIndex,
-    getColor: function () {
-      return processColor;
-    },
-    events: [{
-      name: blockingEventName,
-      time: 2
-    }]
-  }));
-  this.set("blocking", Process.create({
-    index: blockingIndex,
-    endEvent: {
-      time: 5
-    }
-  }));
-  this.set("processor", Processor.create({
-    startTime: 0,
-    endTime: 10
-  }));
-
-  this.render(hbs`{{em-swimlane-blocking-event processor=processor process=process blocking=blocking}}`);
-
-  return wait().then(() => {
-    assert.equal(this.$(".em-swimlane-blocking-event").attr("style").trim(), 'left: 20%;');
-    assert.equal(this.$(".event-line").css("height"), ((blockingIndex - processIndex) * 30) + "px");
-  });
-});
-
-test('Blocking test with blocking.endEvent.time < blockTime', function(assert) {
-  var blockingEventName = "blockingEvent",
-      processIndex = 5,
-      blockingIndex = 7,
-      processColor = "#123456";
-
-  this.set("process", Process.create({
-    blockingEventName: blockingEventName,
-    index: processIndex,
-    getColor: function () {
-      return processColor;
-    },
-    events: [{
-      name: blockingEventName,
-      time: 5
-    }]
-  }));
-  this.set("blocking", Process.create({
-    index: blockingIndex,
-    endEvent: {
-      time: 2
-    }
-  }));
-  this.set("processor", Processor.create({
-    startTime: 0,
-    endTime: 10
-  }));
-
-  this.render(hbs`{{em-swimlane-blocking-event processor=processor process=process blocking=blocking}}`);
-
-  return wait().then(() => {
-    assert.equal(this.$(".em-swimlane-blocking-event").attr("style"), undefined);
-  });
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-consolidated-process-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-consolidated-process-test.js b/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-consolidated-process-test.js
deleted file mode 100644
index 5fe79a5..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-consolidated-process-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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-import wait from 'ember-test-helpers/wait';
-
-import Process from 'tez-ui/utils/process';
-import Processor from 'tez-ui/utils/processor';
-
-moduleForComponent('em-swimlane-consolidated-process', 'Integration | Component | em swimlane consolidated process', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-  this.render(hbs`{{em-swimlane-consolidated-process}}`);
-
-  assert.equal(this.$().text().trim(), '');
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#em-swimlane-consolidated-process}}
-      template block text
-    {{/em-swimlane-consolidated-process}}
-  `);
-
-  assert.equal(this.$().text().trim(), '');
-});
-
-test('Basic creation test', function(assert) {
-  this.set("process", Process.create({
-    consolidateStartTime: 3,
-    consolidateEndTime: 6
-  }));
-  this.set("processor", Processor.create({
-    startTime: 0,
-    endTime: 10
-  }));
-
-  this.render(hbs`{{em-swimlane-consolidated-process process=process processor=processor}}`);
-
-  return wait().then(() => {
-    assert.equal(this.$(".em-swimlane-consolidated-process").attr("style").trim(),
-        "left: 30%; right: 40%; z-index: 30;");
-  });
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-event-bar-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-event-bar-test.js b/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-event-bar-test.js
deleted file mode 100644
index 0e0eb1c..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-event-bar-test.js
+++ /dev/null
@@ -1,45 +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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-import Process from 'tez-ui/utils/process';
-import Processor from 'tez-ui/utils/processor';
-
-moduleForComponent('em-swimlane-event-bar', 'Integration | Component | em swimlane event bar', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-  this.set("process", Process.create());
-  this.set("processor", Processor.create());
-
-  this.render(hbs`{{em-swimlane-event-bar processor=processor process=process}}`);
-
-  assert.equal(this.$().text().trim(), '');
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#em-swimlane-event-bar process=process processor=processor}}
-      template block text
-    {{/em-swimlane-event-bar}}
-  `);
-
-  assert.equal(this.$().text().trim(), '');
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-event-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-event-test.js b/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-event-test.js
deleted file mode 100644
index cee0b3d..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-event-test.js
+++ /dev/null
@@ -1,66 +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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-import Process from 'tez-ui/utils/process';
-import Processor from 'tez-ui/utils/processor';
-
-import wait from 'ember-test-helpers/wait';
-
-moduleForComponent('em-swimlane-event', 'Integration | Component | em swimlane event', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-  this.set("process", Process.create({}));
-  this.set("processor", Processor.create());
-
-  this.render(hbs`{{em-swimlane-event processor=processor process=process}}`);
-
-  assert.ok(this.$(".event-bar"));
-  assert.ok(this.$(".event-window"));
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#em-swimlane-event process=process processor=processor}}
-      template block text
-    {{/em-swimlane-event}}
-  `);
-
-  assert.ok(this.$(".event-bar"));
-  assert.ok(this.$(".event-window"));
-});
-
-test('Event position test', function(assert) {
-  this.set("process", Process.create());
-  this.set("event", {
-    time: 6
-  });
-  this.set("processor", Processor.create({
-    startTime: 0,
-    endTime: 10
-  }));
-
-  this.render(hbs`{{em-swimlane-event processor=processor process=process event=event}}`);
-
-  return wait().then(() => {
-    assert.equal(this.$(".em-swimlane-event").attr("style").trim(), "left: 60%;", "em-swimlane-event");
-  });
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-process-line-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-process-line-test.js b/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-process-line-test.js
deleted file mode 100644
index 5e933db..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-process-line-test.js
+++ /dev/null
@@ -1,68 +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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-import wait from 'ember-test-helpers/wait';
-
-import Process from 'tez-ui/utils/process';
-import Processor from 'tez-ui/utils/processor';
-
-moduleForComponent('em-swimlane-process-line', 'Integration | Component | em swimlane process line', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-  this.set("process", Process.create());
-  this.set("processor", Processor.create());
-
-  this.render(hbs`{{em-swimlane-process-line process=process processor=processor}}`);
-
-  assert.equal(this.$().text().trim(), '');
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#em-swimlane-process-line process=process processor=processor}}
-      template block text
-    {{/em-swimlane-process-line}}
-  `);
-
-  assert.equal(this.$().text().trim(), '');
-});
-
-test('start-end event test', function(assert) {
-  this.set("process", Process.create({
-    startEvent: {
-      time: 5
-    },
-    endEvent: {
-      time: 7
-    }
-  }));
-  this.set("processor", Processor.create({
-    startTime: 0,
-    endTime: 10
-  }));
-
-  this.render(hbs`{{em-swimlane-process-line processor=processor process=process}}`);
-
-  return wait().then(() => {
-    assert.equal(this.$(".process-line").eq(0).attr("style").trim(), "left: 50%; right: 30%;", "process-line");
-  });
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-process-name-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-process-name-test.js b/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-process-name-test.js
deleted file mode 100644
index 8117529..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-process-name-test.js
+++ /dev/null
@@ -1,45 +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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-moduleForComponent('em-swimlane-process-name', 'Integration | Component | em swimlane process name', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-  var testName = "TestName";
-
-  this.set("process", {
-    name: testName
-  });
-
-  this.render(hbs`{{em-swimlane-process-name process=process}}`);
-
-  assert.equal(this.$().text().trim(), testName);
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#em-swimlane-process-name process=process}}
-      template block text
-    {{/em-swimlane-process-name}}
-  `);
-
-  assert.equal(this.$().text().trim(), testName);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-process-visual-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-process-visual-test.js b/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-process-visual-test.js
deleted file mode 100644
index 20bdba9..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-process-visual-test.js
+++ /dev/null
@@ -1,77 +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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-import wait from 'ember-test-helpers/wait';
-
-import Process from 'tez-ui/utils/process';
-import Processor from 'tez-ui/utils/processor';
-
-moduleForComponent('em-swimlane-process-visual', 'Integration | Component | em swimlane process visual', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-  this.set("process", Process.create());
-  this.set("processor", Processor.create());
-
-  this.render(hbs`{{em-swimlane-process-visual process=process processor=processor}}`);
-
-  assert.ok(this.$(".base-line"));
-  assert.ok(this.$(".event-window"));
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#em-swimlane-process-visual processor=processor process=process}}
-      template block text
-    {{/em-swimlane-process-visual}}
-  `);
-
-  assert.ok(this.$(".base-line"));
-  assert.ok(this.$(".event-window"));
-});
-
-test('Events test', function(assert) {
-  this.set("process", Process.create({
-    events: [{
-      name: "event1",
-      time: 5
-    }, {
-      name: "event2",
-      time: 7
-    }]
-  }));
-  this.set("processor", Processor.create({
-    startTime: 0,
-    endTime: 10
-  }));
-
-  this.render(hbs`{{em-swimlane-process-visual processor=processor process=process startTime=0 timeWindow=10}}`);
-
-  return wait().then(() => {
-    var events = this.$(".em-swimlane-event");
-
-    assert.equal(events.length, 2);
-    assert.equal(events.eq(0).attr("style").trim(), "left: 50%;", "em-swimlane-event 1 left");
-    assert.equal(events.eq(1).attr("style").trim(), "left: 70%;", "em-swimlane-event 2 left");
-
-    assert.equal(this.$(".process-line").eq(0).attr("style").trim(), "left: 50%; right: 30%;", "process-line");
-  });
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-ruler-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-ruler-test.js b/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-ruler-test.js
deleted file mode 100644
index b1d0439..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-ruler-test.js
+++ /dev/null
@@ -1,70 +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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-import wait from 'ember-test-helpers/wait';
-
-import Processor from 'tez-ui/utils/processor';
-
-moduleForComponent('em-swimlane-ruler', 'Integration | Component | em swimlane ruler', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-
-  this.render(hbs`{{em-swimlane-ruler}}`);
-  assert.equal(this.$().text().trim(), 'Milliseconds');
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#em-swimlane-ruler}}
-      template block text
-    {{/em-swimlane-ruler}}
-  `);
-  assert.equal(this.$().text().trim(), 'Milliseconds');
-});
-
-test('Mark test', function(assert) {
-  this.set("processor", Processor.create({
-    startTime: 0,
-    endTime: 1000 * 20,
-  }));
-
-  this.render(hbs`{{em-swimlane-ruler processor=processor zoom=100}}`);
-
-  return wait().then(() => {
-    assert.equal(this.$(".unit-text").text().trim(), 'Seconds');
-    assert.equal(this.$(".ruler-mark").length, 11);
-  });
-});
-
-test('Mark zoom test', function(assert) {
-  this.set("processor", Processor.create({
-    startTime: 0,
-    endTime: 1000 * 20,
-  }));
-
-  this.render(hbs`{{em-swimlane-ruler processor=processor zoom=500}}`);
-
-  return wait().then(() => {
-    assert.equal(this.$(".unit-text").text().trim(), 'Milliseconds');
-    assert.equal(this.$(".ruler-mark").length, 55);
-  });
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-test.js b/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-test.js
deleted file mode 100644
index e0ab7c7..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-test.js
+++ /dev/null
@@ -1,93 +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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-import Process from 'tez-ui/utils/process';
-
-moduleForComponent('em-swimlane', 'Integration | Component | em swimlane', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-  var testName1 = "TestName1",
-      testName2 = "TestName2";
-
-  this.set("processes", [Process.create({
-    name: testName1
-  }), Process.create({
-    name: testName2
-  })]);
-
-  this.render(hbs`{{em-swimlane processes=processes}}`);
-
-  assert.equal(this.$().text().trim().indexOf(testName1), 0);
-  assert.notEqual(this.$().text().trim().indexOf(testName2), -1);
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#em-swimlane processes=processes}}
-      template block text
-    {{/em-swimlane}}
-  `);
-
-  assert.equal(this.$().text().trim().indexOf(testName1), 0);
-  assert.notEqual(this.$().text().trim().indexOf(testName2), -1);
-});
-
-test('Normalization (Blocker based sorting) test - On a graph', function(assert) {
-  var p1 = Process.create({
-    name: "P1"
-  }),
-  p2 = Process.create({
-    name: "P2"
-  }),
-  p3 = Process.create({
-    name: "P3",
-    blockers: [p1, p2]
-  }),
-  p4 = Process.create({
-    name: "P4",
-    blockers: [p1]
-  }),
-  p5 = Process.create({
-    name: "P5",
-    blockers: [p3, p4]
-  });
-
-  this.set("processes", [p5, p4, p3, p2, p1]);
-
-  this.render(hbs`{{em-swimlane processes=processes}}`);
-
-  let names = this.$(".em-swimlane-process-name");
-
-  assert.equal(names.length, 5);
-  assert.equal(names.eq(0).text().trim(), p1.name);
-  assert.equal(names.eq(1).text().trim(), p4.name);
-  assert.equal(names.eq(2).text().trim(), p2.name);
-  assert.equal(names.eq(3).text().trim(), p3.name);
-  assert.equal(names.eq(4).text().trim(), p5.name);
-});
-
-test('Zoom test', function(assert) {
-  this.set("processes", [Process.create()]);
-
-  this.render(hbs`{{em-swimlane processes=processes zoom=500}}`);
-  assert.equal(this.$(".zoom-panel").attr("style").trim(), "width: 500%;");
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-vertex-name-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-vertex-name-test.js b/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-vertex-name-test.js
deleted file mode 100644
index f085be3..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/em-swimlane-vertex-name-test.js
+++ /dev/null
@@ -1,80 +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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-import wait from 'ember-test-helpers/wait';
-
-import Process from 'tez-ui/utils/process';
-
-moduleForComponent('em-swimlane-vertex-name', 'Integration | Component | em swimlane vertex name', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-
-  this.render(hbs`{{em-swimlane-vertex-name}}`);
-  assert.equal(this.$().text().trim(), 'Not Available!');
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#em-swimlane-vertex-name}}
-      template block text
-    {{/em-swimlane-vertex-name}}
-  `);
-  assert.equal(this.$().text().trim(), 'Not Available!');
-});
-
-test('Name test', function(assert) {
-  this.set("process", Process.create({
-    name: "TestName"
-  }));
-
-  this.render(hbs`{{em-swimlane-vertex-name process=process}}`);
-  return wait().then(() => {
-    assert.equal(this.$(".name-text").text().trim(), 'TestName');
-  });
-});
-
-test('Progress test', function(assert) {
-  this.set("process", Process.create({
-    vertex: {
-      finalStatus: "RUNNING",
-      progress: 0.5
-    }
-  }));
-
-  this.render(hbs`{{em-swimlane-vertex-name process=process}}`);
-  return wait().then(() => {
-    assert.equal(this.$().text().trim().substr(0, 3), '50%');
-  });
-});
-
-test('finalStatus test', function(assert) {
-  this.set("process", Process.create({
-    vertex: {
-      finalStatus: "STAT"
-    }
-  }));
-
-  this.render(hbs`{{em-swimlane-vertex-name process=process}}`);
-  return wait().then(() => {
-    assert.equal(this.$().text().trim(), 'STAT');
-  });
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/em-table-status-cell-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/em-table-status-cell-test.js b/tez-ui2/src/main/webapp/tests/integration/components/em-table-status-cell-test.js
deleted file mode 100644
index fd4d612..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/em-table-status-cell-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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-moduleForComponent('em-table-status-cell', 'Integration | Component | em table status cell', {
-  integration: true
-});
-
-test('Basic render test', function(assert) {
-
-  this.render(hbs`{{em-table-status-cell}}`);
-  assert.equal(this.$().text().trim(), 'Not Available!');
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#em-table-status-cell}}
-      template block text
-    {{/em-table-status-cell}}
-  `);
-  assert.equal(this.$().text().trim(), 'Not Available!');
-});
-
-test('Basic test', function(assert) {
-  this.render(hbs`{{em-table-status-cell content="inited"}}`);
-  assert.equal(this.$().text().trim(), 'inited');
-  assert.equal(this.$("span")[0].className, 'status status-inited');
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/em-tooltip-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/em-tooltip-test.js b/tez-ui2/src/main/webapp/tests/integration/components/em-tooltip-test.js
deleted file mode 100644
index 73a957b..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/em-tooltip-test.js
+++ /dev/null
@@ -1,80 +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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-moduleForComponent('em-tooltip', 'Integration | Component | em tooltip', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-
-  this.render(hbs`{{em-tooltip}}`);
-
-  assert.equal(this.$().text().trim(), '');
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#em-tooltip}}
-      template block text
-    {{/em-tooltip}}
-  `);
-
-  assert.equal(this.$().text().trim(), '');
-});
-
-test('Title test', function(assert) {
-  this.set("title", "TestTitle");
-  this.render(hbs`{{em-tooltip title=title}}`);
-
-  assert.equal(this.$().text().trim(), 'TestTitle');
-});
-
-test('Description test', function(assert) {
-  this.set("desc", "TestDesc");
-  this.render(hbs`{{em-tooltip description=desc}}`);
-
-  assert.equal(this.$().text().trim(), 'TestDesc');
-});
-
-test('Properties test', function(assert) {
-  this.set("properties", [{
-    name: "p1", value: "v1"
-  }, {
-    name: "p2", value: "v2"
-  }]);
-  this.render(hbs`{{em-tooltip properties=properties}}`);
-
-  assert.equal(this.$("tr").length, 2);
-});
-
-test('Contents test', function(assert) {
-  this.set("contents", [{
-    title: "p1",
-    properties: [{}, {}]
-  }, {
-    title: "p2",
-    properties: [{}, {}, {}]
-  }]);
-
-  this.render(hbs`{{em-tooltip contents=contents}}`);
-
-  assert.equal(this.$(".bubble").length, 2);
-  assert.equal(this.$("tr").length, 2 + 3);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/error-bar-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/error-bar-test.js b/tez-ui2/src/main/webapp/tests/integration/components/error-bar-test.js
deleted file mode 100644
index 10c6c7d..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/error-bar-test.js
+++ /dev/null
@@ -1,43 +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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-moduleForComponent('error-bar', 'Integration | Component | error bar', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-
-  // Set any properties with this.set('myProperty', 'value');
-  // Handle any actions with this.on('myAction', function(val) { ... });" + EOL + EOL +
-
-  this.render(hbs`{{error-bar}}`);
-
-  assert.equal(this.$().text().trim(), '');
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#error-bar}}
-      template block text
-    {{/error-bar}}
-  `);
-
-  assert.equal(this.$().text().trim(), '');
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/stats-link-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/stats-link-test.js b/tez-ui2/src/main/webapp/tests/integration/components/stats-link-test.js
deleted file mode 100644
index ad2dc7b..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/stats-link-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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-moduleForComponent('stats-link', 'Integration | Component | stats link', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-
-  this.render(hbs`{{stats-link}}`);
-  assert.equal(this.$().text().trim(), 'Not Available!');
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#stats-link}}
-      template block text
-    {{/stats-link}}
-  `);
-  assert.equal(this.$().text().trim(), 'Not Available!');
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/tab-n-refresh-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/tab-n-refresh-test.js b/tez-ui2/src/main/webapp/tests/integration/components/tab-n-refresh-test.js
deleted file mode 100644
index e45b461..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/tab-n-refresh-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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-moduleForComponent('tab-n-refresh', 'Integration | Component | tab n refresh', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-  var testTabs = [{
-    text: "Tab 1",
-    routeName: "route_1",
-  },{
-    text: "Tab 2",
-    routeName: "route_2",
-  }];
-
-  this.set("tabs", testTabs);
-
-  this.render(hbs`{{tab-n-refresh tabs=tabs}}`);
-
-  assert.equal(this.$("button").text().trim(), 'Refresh');
-  assert.equal($(this.$("li")[0]).text().trim(), testTabs[0].text);
-  assert.equal($(this.$("li")[1]).text().trim(), testTabs[1].text);
-
-  this.render(hbs`
-    {{#tab-n-refresh tabs=tabs}}
-      template block text
-    {{/tab-n-refresh}}
-  `);
-
-  assert.equal(this.$("button").text().trim(), 'Refresh');
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/table-controls-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/table-controls-test.js b/tez-ui2/src/main/webapp/tests/integration/components/table-controls-test.js
deleted file mode 100644
index 79170ee..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/table-controls-test.js
+++ /dev/null
@@ -1,43 +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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-moduleForComponent('table-controls', 'Integration | Component | table controls', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-
-  // Set any properties with this.set('myProperty', 'value');
-  // Handle any actions with this.on('myAction', function(val) { ... });" + EOL + EOL +
-
-  this.render(hbs`{{table-controls}}`);
-
-  assert.equal(this.$().text().trim(), '');
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#table-controls}}
-      template block text
-    {{/table-controls}}
-  `);
-
-  assert.equal(this.$().text().trim(), '');
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/integration/components/zip-download-modal-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/integration/components/zip-download-modal-test.js b/tez-ui2/src/main/webapp/tests/integration/components/zip-download-modal-test.js
deleted file mode 100644
index cd9a61a..0000000
--- a/tez-ui2/src/main/webapp/tests/integration/components/zip-download-modal-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 { moduleForComponent, test } from 'ember-qunit';
-import hbs from 'htmlbars-inline-precompile';
-
-moduleForComponent('zip-download-modal', 'Integration | Component | zip download modal', {
-  integration: true
-});
-
-test('Basic creation test', function(assert) {
-  var testID = "dag_a",
-      expectedMessage = "Downloading data for dag: " + testID;
-
-  this.set("content", {
-    dag: {
-      entityID: testID
-    }
-  });
-
-  this.render(hbs`{{zip-download-modal content=content}}`);
-  assert.equal(this.$(".message").text().trim(), expectedMessage);
-
-  // Template block usage:" + EOL +
-  this.render(hbs`
-    {{#zip-download-modal content=content}}
-      template block text
-    {{/zip-download-modal}}
-  `);
-  assert.equal(this.$(".message").text().trim(), expectedMessage);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/test-helper.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/test-helper.js b/tez-ui2/src/main/webapp/tests/test-helper.js
deleted file mode 100644
index 96975ee..0000000
--- a/tez-ui2/src/main/webapp/tests/test-helper.js
+++ /dev/null
@@ -1,24 +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 resolver from './helpers/resolver';
-import {
-  setResolver
-} from 'ember-qunit';
-
-setResolver(resolver);

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/abstract-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/abstract-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/abstract-test.js
deleted file mode 100644
index 5ff39e7..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/abstract-test.js
+++ /dev/null
@@ -1,110 +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('adapter:abstract', 'Unit | Adapter | abstract', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-
-  assert.ok(adapter);
-  assert.equal(adapter.serverName, null);
-
-  assert.ok(adapter.host);
-  assert.ok(adapter.namespace);
-  assert.ok(adapter.pathTypeHash);
-
-  assert.ok(adapter.ajaxOptions);
-  assert.ok(adapter.pathForType);
-});
-
-test('host, namespace & pathTypeHash test', function(assert) {
-  let adapter = this.subject(),
-      testServerName = "sn",
-      testHosts = {
-        sn: "foo.bar",
-      },
-      testENV = {
-        app: {
-          namespaces: {
-            webService: {
-              sn: "ws"
-            }
-          },
-          paths: {
-            sn: "path"
-          }
-        }
-      };
-
-  adapter.hosts = testHosts;
-  adapter.env = testENV;
-  adapter.set("serverName", testServerName);
-
-  assert.equal(adapter.get("host"), testHosts.sn);
-  assert.equal(adapter.get("namespace"), testENV.app.namespaces.webService.sn);
-  assert.equal(adapter.get("pathTypeHash"), testENV.app.paths.sn);
-});
-
-test('ajaxOptions test', function(assert) {
-  let adapter = this.subject(),
-      testUrl = "foo.bar",
-      testMethod = "tm",
-      testOptions = {
-        a: 1
-      },
-      testServer = "ts",
-
-      result;
-
-  // Without options
-  adapter.serverName = testServer;
-  result = adapter.ajaxOptions(testUrl, testMethod);
-  assert.ok(result);
-  assert.ok(result.crossDomain);
-  assert.ok(result.xhrFields.withCredentials);
-  assert.equal(result.targetServer, testServer);
-
-  // Without options
-  adapter.serverName = testServer;
-  result = adapter.ajaxOptions(testUrl, testMethod, testOptions);
-  assert.ok(result);
-  assert.ok(result.crossDomain);
-  assert.ok(result.xhrFields.withCredentials);
-  assert.equal(result.targetServer, testServer);
-  assert.equal(result.a, testOptions.a);
-});
-
-test('pathForType test', function(assert) {
-  let adapter = this.subject(),
-      testHash = {
-        typ: "type"
-      };
-
-  assert.expect(2);
-
-  adapter.pathTypeHash = testHash;
-  assert.equal(adapter.pathForType("typ"), testHash.typ);
-  assert.throws(function () {
-    adapter.pathForType("noType");
-  });
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/ahs-app-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/ahs-app-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/ahs-app-test.js
deleted file mode 100644
index e1aac04..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/ahs-app-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 { moduleFor, test } from 'ember-qunit';
-
-moduleFor('adapter:ahs-app', 'Unit | Adapter | ahs app', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-
-  assert.ok(adapter);
-  assert.ok(adapter.namespace);
-  assert.ok(adapter.pathForType);
-
-  assert.equal(adapter.pathForType(), "apps");
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/am-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/am-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/am-test.js
deleted file mode 100644
index 676656b..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/am-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('adapter:am', 'Unit | Adapter | am', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-
-  assert.ok(adapter);
-  assert.equal(adapter.serverName, "am");
-
-  assert.ok(adapter.queryRecord);
-});
-
-test('queryRecord test', function(assert) {
-  let testStore = {},
-      testType = {},
-      testQuery = {},
-
-      adapter = this.subject({
-        query: function (store, type, query) {
-          assert.equal(store, testStore);
-          assert.equal(type, testType);
-          assert.equal(query, testQuery);
-        }
-      });
-
-  assert.expect(3);
-  adapter.queryRecord(testStore, testType, testQuery);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/app-rm-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/app-rm-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/app-rm-test.js
deleted file mode 100644
index 942b2db..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/app-rm-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('adapter:app-rm', 'Unit | Adapter | app rm', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-  assert.ok(adapter);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/app-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/app-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/app-test.js
deleted file mode 100644
index 08d2c44..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/app-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 { moduleFor, test } from 'ember-qunit';
-
-moduleFor('adapter:app', 'Unit | Adapter | app', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-
-  assert.ok(adapter);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/attempt-am-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/attempt-am-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/attempt-am-test.js
deleted file mode 100644
index 43c8e4a..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/attempt-am-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('adapter:attempt-am', 'Unit | Adapter | attempt am', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-  assert.ok(adapter);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/attempt-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/attempt-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/attempt-test.js
deleted file mode 100644
index 584c46e..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/attempt-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 { moduleFor, test } from 'ember-qunit';
-
-moduleFor('adapter:attempt', 'Unit | Adapter | attempt', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-
-  assert.ok(adapter);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/dag-am-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/dag-am-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/dag-am-test.js
deleted file mode 100644
index b0d3fa9..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/dag-am-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('adapter:dag-am', 'Unit | Adapter | dag am', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-  assert.ok(adapter);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/dag-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/dag-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/dag-test.js
deleted file mode 100644
index 33532b2..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/dag-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 { moduleFor, test } from 'ember-qunit';
-
-moduleFor('adapter:dag', 'Unit | Adapter | dag', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-
-  assert.ok(adapter);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/loader-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/loader-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/loader-test.js
deleted file mode 100644
index 7b4a2df..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/loader-test.js
+++ /dev/null
@@ -1,137 +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('adapter:loader', 'Unit | Adapter | loader', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation', function(assert) {
-  let adapter = this.subject();
-
-  assert.ok(adapter);
-  assert.ok(adapter._isLoader);
-  assert.ok(adapter.buildURL);
-  assert.ok(adapter._loaderAjax);
-  assert.ok(adapter.queryRecord);
-  assert.ok(adapter.query);
-});
-
-test('buildURL test', function(assert) {
-  let adapter = this.subject();
-
-  assert.equal(adapter.buildURL("dag"), "/dags");
-  assert.equal(adapter.buildURL("dag", "dag1"), "/dags/dag1");
-  assert.equal(adapter.buildURL("{x}dag", "dag1", null, null, null, {x: "x_x"}), "/x_xdags/dag1", "Test for substitution");
-});
-
-test('_loaderAjax test', function(assert) {
-  let adapter = this.subject(),
-      testURL = "/dags",
-      testQueryParams = { x:1 },
-      testRecord = {},
-      testNameSpace = "ns";
-
-  assert.expect(2 + 1 + 2);
-
-  adapter.ajax = function (url, method/*, options*/) {
-
-    assert.equal(url, testURL);
-    assert.equal(method, "GET");
-
-    return Ember.RSVP.resolve(testRecord);
-  };
-
-  adapter.sortQueryParams = function (queryParams) {
-    assert.ok(queryParams, "sortQueryParams was called with query params");
-  };
-
-  adapter._loaderAjax(testURL, testQueryParams, testNameSpace).then(function (data) {
-    assert.equal(data.nameSpace, testNameSpace, "Namespace returned");
-    assert.equal(data.data, testRecord, "Test record returned");
-  });
-});
-
-test('queryRecord test', function(assert) {
-  let adapter = this.subject(),
-      testURL = "/dags",
-      testModel = { modelName: "testModel" },
-      testStore = {},
-      testQuery = {
-        id: "test1",
-        params: {},
-        urlParams: {},
-        nameSpace: "ns"
-      };
-
-  assert.expect(4 + 3);
-
-  adapter.buildURL = function (modelName, id, snapshot, requestType, query, params) {
-    assert.equal(modelName, testModel.modelName);
-    assert.equal(id, testQuery.id);
-    assert.equal(query, testQuery.params);
-    assert.equal(params, testQuery.urlParams);
-
-    return testURL;
-  };
-
-  adapter._loaderAjax = function (url, queryParams, nameSpace) {
-    assert.equal(url, testURL);
-    assert.equal(queryParams, testQuery.params);
-    assert.equal(nameSpace, testQuery.nameSpace);
-  };
-
-  adapter.queryRecord(testStore, testModel, testQuery);
-});
-
-test('query test', function(assert) {
-  let adapter = this.subject(),
-      testURL = "/dags",
-      testModel = { modelName: "testModel" },
-      testStore = {},
-      testQuery = {
-        id: "test1",
-        params: {},
-        urlParams: {},
-        nameSpace: "ns"
-      };
-
-  assert.expect(5 + 3);
-
-  adapter.buildURL = function (modelName, id, snapshot, requestType, query, params) {
-    assert.equal(modelName, testModel.modelName);
-    assert.equal(id, null);
-    assert.equal(requestType, "query");
-    assert.equal(query, testQuery.params);
-    assert.equal(params, testQuery.urlParams);
-
-    return testURL;
-  };
-
-  adapter._loaderAjax = function (url, queryParams, nameSpace) {
-    assert.equal(url, testURL);
-    assert.equal(queryParams, testQuery.params);
-    assert.equal(nameSpace, testQuery.nameSpace);
-  };
-
-  adapter.query(testStore, testModel, testQuery);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/rm-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/rm-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/rm-test.js
deleted file mode 100644
index 0b0445e..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/rm-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 { moduleFor, test } from 'ember-qunit';
-
-moduleFor('adapter:rm', 'Unit | Adapter | rm', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-
-  assert.ok(adapter);
-  assert.equal(adapter.serverName, "rm");
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/task-am-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/task-am-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/task-am-test.js
deleted file mode 100644
index a3eb98b..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/task-am-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('adapter:task-am', 'Unit | Adapter | task am', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-  assert.ok(adapter);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/task-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/task-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/task-test.js
deleted file mode 100644
index ca39e56..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/task-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('adapter:task', 'Unit | Adapter | task', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-  assert.ok(adapter);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/timeline-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/timeline-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/timeline-test.js
deleted file mode 100644
index 7b0e978..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/timeline-test.js
+++ /dev/null
@@ -1,84 +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('adapter:timeline', 'Unit | Adapter | timeline', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-
-  assert.ok(adapter);
-  assert.ok(adapter.filters);
-  assert.ok(adapter.stringifyFilters);
-  assert.ok(adapter.normalizeQuery);
-  assert.ok(adapter.query);
-
-  assert.equal(adapter.serverName, "timeline");
-});
-
-test('stringifyFilters test', function(assert) {
-  let adapter = this.subject();
-
-  assert.equal(adapter.stringifyFilters({a: 1, b: 2}), "a:1,b:2");
-  assert.throws(function () {
-    adapter.stringifyFilters();
-  });
-});
-
-test('normalizeQuery test', function(assert) {
-  let adapter = this.subject(),
-      normalQuery;
-
-  adapter.set("filters", {
-    a: "A_ID",
-    b: "B_ID",
-  });
-
-  normalQuery = adapter.normalizeQuery({a: 1, b: 2, c: 3, d: 4});
-
-  assert.deepEqual(normalQuery.primaryFilter, "A_ID:1");
-  assert.deepEqual(normalQuery.secondaryFilter, "B_ID:2");
-  assert.deepEqual(normalQuery.c, 3);
-  assert.deepEqual(normalQuery.d, 4);
-});
-
-test('query test', function(assert) {
-  let adapter = this.subject(),
-      normalQuery = {},
-      testStore = {},
-      testType = "ts",
-      testQuery = {};
-
-  assert.expect(1 + 1);
-
-  adapter.normalizeQuery = function (params) {
-    assert.equal(params, testQuery);
-    return normalQuery;
-  };
-  adapter._loaderAjax = function (url, queryParams) {
-    assert.equal(queryParams, normalQuery);
-  };
-
-  adapter.query(testStore, testType, {
-    params: testQuery
-  });
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/vertex-am-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/vertex-am-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/vertex-am-test.js
deleted file mode 100644
index 6e29aef..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/vertex-am-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('adapter:vertex-am', 'Unit | Adapter | vertex am', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-  assert.ok(adapter);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/adapters/vertex-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/adapters/vertex-test.js b/tez-ui2/src/main/webapp/tests/unit/adapters/vertex-test.js
deleted file mode 100644
index 191f781..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/adapters/vertex-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 { moduleFor, test } from 'ember-qunit';
-
-moduleFor('adapter:vertex', 'Unit | Adapter | vertex', {
-  // Specify the other units that are required for this test.
-  // needs: ['serializer:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let adapter = this.subject();
-
-  assert.ok(adapter);
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/controllers/abstract-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/controllers/abstract-test.js b/tez-ui2/src/main/webapp/tests/unit/controllers/abstract-test.js
deleted file mode 100644
index 9603b50..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/controllers/abstract-test.js
+++ /dev/null
@@ -1,76 +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('controller:abstract', 'Unit | Controller | abstract', {
-  // Specify the other units that are required for this test.
-  // needs: ['route:abstract']
-});
-
-test('Basic creation test', function(assert) {
-  let controller = this.subject({
-    send: Ember.K,
-    initVisibleColumns: Ember.K
-  });
-
-  assert.ok(controller.name);
-  assert.ok(controller.crumbObserver);
-  assert.ok(controller.setBreadcrumbs);
-  assert.ok(controller.loaded);
-});
-
-test('init test', function(assert) {
-  assert.expect(1);
-
-  this.subject({
-    send: function (name) {
-      assert.equal(name, "setBreadcrumbs");
-    }
-  });
-});
-
-test('crumbObserver test', function(assert) {
-  assert.expect(1 + 1); // Init and fired
-
-  let controller = this.subject({
-    send: function (name) {
-      assert.equal(name, "setBreadcrumbs");
-    }
-  });
-
-  controller.set("breadcrumbs", []);
-});
-
-test('setBreadcrumbs test', function(assert) {
-  let testName = "Abc", // Because all controllers are pointing to the leaf rout
-      testBreadCrumbs = [];
-
-  assert.expect(3);
-  this.subject({
-    name: testName,
-    breadcrumbs: testBreadCrumbs,
-    send: function (name, crumbs) {
-      assert.equal(name, "setBreadcrumbs");
-      assert.ok(crumbs.hasOwnProperty(testName));
-      assert.equal(crumbs[testName], testBreadCrumbs);
-    }
-  });
-});

http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/tests/unit/controllers/app-test.js
----------------------------------------------------------------------
diff --git a/tez-ui2/src/main/webapp/tests/unit/controllers/app-test.js b/tez-ui2/src/main/webapp/tests/unit/controllers/app-test.js
deleted file mode 100644
index 2fc7276..0000000
--- a/tez-ui2/src/main/webapp/tests/unit/controllers/app-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 Ember from 'ember';
-
-import { moduleFor, test } from 'ember-qunit';
-
-moduleFor('controller:dag', 'Unit | Controller | dag', {
-  // Specify the other units that are required for this test.
-  // needs: ['controller:foo']
-});
-
-test('Basic creation test', function(assert) {
-  let controller = this.subject({
-    send: Ember.K,
-    initVisibleColumns: Ember.K
-  });
-
-  assert.ok(controller);
-  assert.ok(controller.breadcrumbs);
-  assert.ok(controller.tabs);
-});


Mime
View raw message