// Path: dashboard/src/test/java/eu/seaclouds/platform/dashboard/utils/TestFixtures.java
// public interface TestFixtures {
//     String APPLICATION_ID = "DUkgr9Vb";
//     // Deployer fixtures
//     String TOSCA_DAM_PATH = "fixtures/tosca-dam.yml";
//     String APPLICATION_PATH = "fixtures/application.json";
//     String TASK_SUMMARY_DEPLOY_PATH = "fixtures/task-summary-deploy.json";
//     String TASK_SUMMARY_DELETE_PATH = "fixtures/task-summary-delete.json";
//     String ENTITIES_PATH = "fixtures/entities.json";
//     String SENSORS_SUMMARIES_PATH = "fixtures/sensors.json";
// 
// 
//     // SLA fixtures
//     String AGREEMENT_PATH_JSON = "fixtures/agreement.json";
//     String AGREEMENT_STATUS_PATH_JSON = "fixtures/agreement-status.json";
//     String VIOLATIONS_JSON_PATH = "fixtures/violations.json";
//     String PENALTIES_JSON_PATH = "fixtures/penalties.json";
// 
//     // Monitor fixtures
//     String MONITORING_RULES_PATH = "fixtures/monitoring-rules.xml";
// 
//     // Planner fixtures
//     String ADPS_PATH = "fixtures/adps.json";
//     String ADP_PATH = "fixtures/adp.yml";
//     String AAM_PATH = "fixtures/aam.yml";
//     String DESIGNER_TOPOLOGY = "fixtures/designer-topology.json";
//     String APPLICATION_TREE = "fixtures/application-tree.json";
// }


import java.util.List;
import java.util.UUID;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNotNull;
import com.squareup.okhttp.mockwebserver.MockResponse;
import eu.atos.sla.parser.data.GuaranteeTermsStatus;
import eu.atos.sla.parser.data.Penalty;
import eu.atos.sla.parser.data.wsag.Agreement;
import eu.atos.sla.parser.data.wsag.GuaranteeTerm;
import eu.seaclouds.platform.dashboard.util.ObjectMapperHelpers;
import eu.seaclouds.platform.dashboard.utils.TestFixtures;
import eu.seaclouds.platform.dashboard.utils.TestUtils;
import org.testng.annotations.Test;
import javax.ws.rs.core.MediaType;
/*
 *  Copyright 2014 SeaClouds
 *  Contact: SeaClouds
 *
 *      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.
 */

package eu.seaclouds.platform.dashboard.proxy;







public class SlaProxyTest extends AbstractProxyTest<SlaProxy> {
    private final String RANDOM_STRING = UUID.randomUUID().toString();


    @Override
    public SlaProxy getProxy() {
        return getSupport().getConfiguration().getSlaProxy();
    }

    @Test
    public void testAddAgreement() throws Exception {
// Path: dashboard/src/test/java/eu/seaclouds/platform/dashboard/utils/TestFixtures.java
// public interface TestFixtures {
//     String APPLICATION_ID = "DUkgr9Vb";
//     // Deployer fixtures
//     String TOSCA_DAM_PATH = "fixtures/tosca-dam.yml";
//     String APPLICATION_PATH = "fixtures/application.json";
//     String TASK_SUMMARY_DEPLOY_PATH = "fixtures/task-summary-deploy.json";
//     String TASK_SUMMARY_DELETE_PATH = "fixtures/task-summary-delete.json";
//     String ENTITIES_PATH = "fixtures/entities.json";
//     String SENSORS_SUMMARIES_PATH = "fixtures/sensors.json";
// 
// 
//     // SLA fixtures
//     String AGREEMENT_PATH_JSON = "fixtures/agreement.json";
//     String AGREEMENT_STATUS_PATH_JSON = "fixtures/agreement-status.json";
//     String VIOLATIONS_JSON_PATH = "fixtures/violations.json";
//     String PENALTIES_JSON_PATH = "fixtures/penalties.json";
// 
//     // Monitor fixtures
//     String MONITORING_RULES_PATH = "fixtures/monitoring-rules.xml";
// 
//     // Planner fixtures
//     String ADPS_PATH = "fixtures/adps.json";
//     String ADP_PATH = "fixtures/adp.yml";
//     String AAM_PATH = "fixtures/aam.yml";
//     String DESIGNER_TOPOLOGY = "fixtures/designer-topology.json";
//     String APPLICATION_TREE = "fixtures/application-tree.json";
// }


// Path: dashboard/src/test/java/eu/seaclouds/platform/dashboard/proxy/SlaProxyTest.java
import java.util.List;
import java.util.UUID;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNotNull;
import com.squareup.okhttp.mockwebserver.MockResponse;
import eu.atos.sla.parser.data.GuaranteeTermsStatus;
import eu.atos.sla.parser.data.Penalty;
import eu.atos.sla.parser.data.wsag.Agreement;
import eu.atos.sla.parser.data.wsag.GuaranteeTerm;
import eu.seaclouds.platform.dashboard.util.ObjectMapperHelpers;
import eu.seaclouds.platform.dashboard.utils.TestFixtures;
import eu.seaclouds.platform.dashboard.utils.TestUtils;
import org.testng.annotations.Test;
import javax.ws.rs.core.MediaType;

/*
 *  Copyright 2014 SeaClouds
 *  Contact: SeaClouds
 *
 *      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.
 */

package eu.seaclouds.platform.dashboard.proxy;







public class SlaProxyTest extends AbstractProxyTest<SlaProxy> {
    private final String RANDOM_STRING = UUID.randomUUID().toString();


    @Override
    public SlaProxy getProxy() {
        return getSupport().getConfiguration().getSlaProxy();
    }

    @Test
    public void testAddAgreement() throws Exception {
        String json = TestUtils.getStringFromPath(TestFixtures.AGREEMENT_PATH_JSON);