/*
 * Copyright (c) 2019  InterDigital Communications, Inc
 *
 * Licensed 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.
 *
 * AdvantEDGE Metrics Service REST API
 * Metrics Service provides metrics about the active scenario <p>**Micro-service**<br>[meep-metrics-engine](https://github.com/InterDigitalInc/AdvantEDGE/tree/master/go-apps/meep-metrics-engine) <p>**Type & Usage**<br>Platform Service used by control/monitoring software and possibly by edge applications that require metrics <p>**Details**<br>API details available at _your-AdvantEDGE-ip-address:30000/api_ <p>**Default Port**<br>`30005`
 *
 * OpenAPI spec version: 1.0.0
 * Contact: AdvantEDGE@InterDigital.com
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 *
 * Swagger Codegen version: 2.4.9
 *
 * Do not edit the class manually.
 *
 */

(function(root, factory) {
  if (typeof define === 'function' && define.amd) {
    // AMD.
    define(['expect.js', '../../src/index'], factory);
  } else if (typeof module === 'object' && module.exports) {
    // CommonJS-like environments that support module.exports, like Node.
    factory(require('expect.js'), require('../../src/index'));
  } else {
    // Browser globals (root is window)
    factory(root.expect, root.AdvantEdgeMetricsServiceRestApi);
  }
}(this, function(expect, AdvantEdgeMetricsServiceRestApi) {
  'use strict';

  var instance;

  beforeEach(function() {
    instance = new AdvantEdgeMetricsServiceRestApi.MetricsApi();
  });

  describe('(package)', function() {
    describe('MetricsApi', function() {
      describe('metricsGet', function() {
        it('should call metricsGet successfully', function(done) {
          // TODO: uncomment, update parameter values for metricsGet call and complete the assertions
          /*
          var opts = {};
          opts.dest = "dest_example";
          opts.dataType = "dataType_example";
          opts.src = "src_example";
          opts.starTime = "starTime_example";
          opts.stopTime = "stopTime_example";

          instance.metricsGet(opts, function(error, data, response) {
            if (error) {
              done(error);
              return;
            }
            // TODO: update response assertions
            expect(data).to.be.a(AdvantEdgeMetricsServiceRestApi.LogResponseList);
            {
              let dataCtr = data.logResponse;
              expect(dataCtr).to.be.an(Array);
              expect(dataCtr).to.not.be.empty();
              for (let p in dataCtr) {
                let data = dataCtr[p];
                expect(data).to.be.a(AdvantEdgeMetricsServiceRestApi.LogResponse);
                expect(data.dest).to.be.a('string');
                expect(data.dest).to.be("node1");
                expect(data.dataType).to.be.a('string');
                expect(data.dataType).to.be("node1");
                expect(data.src).to.be.a('string');
                expect(data.src).to.be("node1");
                expect(data.timestamp).to.be.a('string');
                expect(data.timestamp).to.be("2019-07-09T13:47:03.279Z");
                expect(data.data).to.be.a(AdvantEdgeMetricsServiceRestApi.LogResponseData);
                      expect(data.data.rx).to.be.a('number');
                  expect(data.data.rx).to.be(128);
                  expect(data.data.rxBytes).to.be.a('number');
                  expect(data.data.rxBytes).to.be(6892);
                  expect(data.data.throughput).to.be.a('number');
                  expect(data.data.throughput).to.be(17.01234);
                  expect(data.data.packetLoss).to.be.a('string');
                  expect(data.data.packetLoss).to.be("50.000");
                  expect(data.data.latency).to.be.a('number');
                  expect(data.data.latency).to.be(63);
                  expect(data.data.newPoa).to.be.a('string');
                  expect(data.data.newPoa).to.be("poa1");
                  expect(data.data.oldPoa).to.be.a('string');
                  expect(data.data.oldPoa).to.be("poa1");
              }
            }

            done();
          });
          */
          // TODO: uncomment and complete method invocation above, then delete this line and the next:
          done();
        });
      });
    });
  });

}));
