package be.iminds.ilabt.jfed.lowlevel.authority;

import be.iminds.ilabt.jfed.JFedWebApiClientModule;
import be.iminds.ilabt.jfed.experimenter_gui.util.ConnectivityDetector;
import be.iminds.ilabt.jfed.fedmon.webapi.service.json.Server;
import be.iminds.ilabt.jfed.fedmon.webapi.service.json.Testbed;
import be.iminds.ilabt.jfed.lowlevel.TestbedInfoSource;
import be.iminds.ilabt.jfed.preferences.CorePreferenceKey;
import be.iminds.ilabt.jfed.preferences.JFedCorePreferences;
import be.iminds.ilabt.jfed.preferences.JFedPreferences;
import be.iminds.ilabt.jfed.util.GeniUrn;
import be.iminds.ilabt.jfed.util.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;

import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Arrays;
import java.util.List;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;

public class BasicTestbedInfoSourceTest2 {
    private static final Logger LOG = LoggerFactory.getLogger(BasicTestbedInfoSourceTest2.class);

    private JFedPreferences jFedPreferences;
    private TestbedInfoSource testbedInfoSource;
    private AuthorityFinder authorityFinder;
    private be.iminds.ilabt.jfed.log.Logger logger;

//    @BeforeClass
//    public void setup() throws IOException {
//    }

    @Test
    public void reproduceBug() throws IOException {
        //this work with a custom string/resource that has wall2 and wall1 as now new femon service
       // (because that seems to fail, so we want this test to fail as well before fixing the bug)
       File tempTestbedsEmbeddedFile = File.createTempFile("embeddedTestbeds", ".json");
       IOUtils.stringToFile(tempTestbedsEmbeddedFile, "[\n"+VWALL2_JSON+"\n]");
       tempTestbedsEmbeddedFile.deleteOnExit();

       String testbedsSource = tempTestbedsEmbeddedFile.toURI().toASCIIString();
       System.out.println("testbedsSource=\""+testbedsSource+"\"");

       jFedPreferences = new JFedCorePreferences(); //note: corePreferences does NOT autosave
       jFedPreferences.setString(CorePreferenceKey.PREF_TESTBEDS_JSON_SOURCE, /*"BUILTIN"*/testbedsSource);
       jFedPreferences.setString(CorePreferenceKey.PREF_GUICONFIG_SOURCE, "BUILTIN");
       //URL webApiUrl = new URL(JFedWebApiClientModule.DEFAULT_URL_STRING);


       testbedInfoSource = new JFedTestbedInfoSource(jFedPreferences,
               new ConnectivityDetector(null), null, logger).get();
       authorityFinder = new AuthorityFinder(testbedInfoSource, jFedPreferences);
       logger = new be.iminds.ilabt.jfed.log.Logger();

       //check if load ok
       assertThat(testbedInfoSource.getTestbeds(), hasSize(1));
       assertThat(testbedInfoSource.getServers(), hasSize(1));

       for (Testbed testbed : testbedInfoSource.getTestbeds()) {
           LOG.debug("Known testbed: "+testbed.getId()+"   "+testbed.getDefaultComponentManagerUrn());
       }

        for (Testbed testbed : testbedInfoSource.getTestbeds()) {
            LOG.debug("Known testbed: "+testbed.getId()+"   "+testbed.getDefaultComponentManagerUrn());
        }
    }




    private String VWALL2_JSON = "{\n" +
            "        \"id\": \"vwall2\",\n" +
            "        \"longName\": \"Virtual Wall 2\",\n" +
            "        \"interfaceUrl\": \"http://www.wall2.ilabt.iminds.be\",\n" +
            "        \"pingHost\": \"www.wall2.ilabt.iminds.be\",\n" +
            "        \"infoUrl\": \"http://doc.ilabt.iminds.be/ilabt-documentation/virtualwallfacility.html\",\n" +
            "        \"helpUrl\": \"http://doc.ilabt.iminds.be/ilabt-documentation/\",\n" +
            "        \"defaultComponentManagerUrn\": \"urn:publicid:IDN+wall2.ilabt.iminds.be+authority+cm\",\n" +
            "        \"otrsName\": \"Virtual Wall\",\n" +
            "        \"description\": \"Virtual Wall\",\n" +
            "        \"geniId\": \"im-vw2\",\n" +
            "        \"geniHref\": \"https://extckdatastore.gpolab.bbn.com/info/aggregate/im-vw2\",\n" +
            "        \"color\": \"violet\",\n" +
            "        \"allowLinks\": true,\n" +
            "        \"categories\": [\n" +
            "            {\n" +
            "                \"id\": 225,\n" +
            "                \"name\": \"international_federation\",\n" +
            "                \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/testbedcategory/225\",\n" +
            "                \"@type\": \"TestbedCategory\"\n" +
            "            },\n" +
            "            {\n" +
            "                \"id\": 232,\n" +
            "                \"name\": \"fed4fire_hellogeni\",\n" +
            "                \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/testbedcategory/232\",\n" +
            "                \"@type\": \"TestbedCategory\"\n" +
            "            },\n" +
            "            {\n" +
            "                \"id\": 236,\n" +
            "                \"name\": \"fed4fire\",\n" +
            "                \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/testbedcategory/236\",\n" +
            "                \"@type\": \"TestbedCategory\"\n" +
            "            },\n" +
            "            {\n" +
            "                \"id\": 255,\n" +
            "                \"name\": \"felix\",\n" +
            "                \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/testbedcategory/255\",\n" +
            "                \"@type\": \"TestbedCategory\"\n" +
            "            },\n" +
            "            {\n" +
            "                \"id\": 277,\n" +
            "                \"name\": \"emulab\",\n" +
            "                \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/testbedcategory/277\",\n" +
            "                \"@type\": \"TestbedCategory\"\n" +
            "            },\n" +
            "            {\n" +
            "                \"id\": 344,\n" +
            "                \"name\": \"iMinds\",\n" +
            "                \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/testbedcategory/344\",\n" +
            "                \"@type\": \"TestbedCategory\"\n" +
            "            }\n" +
            "        ],\n" +
            "        \"organisation\": {\n" +
            "            \"id\": \"iminds\",\n" +
            "            \"name\": \"imec (iMinds)\",\n" +
            "            \"logoUrl\": \"http://www.iminds.be/~/media/iminds/images/general/logo_iminds.ashx\",\n" +
            "            \"siteUrl\": \"http://ilabt.iminds.be\",\n" +
            "            \"location\": {\n" +
            "                \"countryCode\": \"BE\",\n" +
            "                \"longitude\": 51.0128695,\n" +
            "                \"latitude\": 3.7079431,\n" +
            "                \"address\": \"Ghent University - iMinds, iGent Tower, Technologiepark-Zwijnaarde 15, B-9052 Ghent, Belgium\",\n" +
            "                \"@type\": \"Location\"\n" +
            "            },\n" +
            "            \"testbeds\": [\n" +
            "                \"http://flsmonitor-api.atlantis.ugent.be:9000/testbed/vwall2\",\n" +
            "                \"http://flsmonitor-api.atlantis.ugent.be:9000/testbed/federationmonitor\",\n" +
            "                \"http://flsmonitor-api.atlantis.ugent.be:9000/testbed/wilab2\",\n" +
            "                \"http://flsmonitor-api.atlantis.ugent.be:9000/testbed/iminds-docker\",\n" +
            "                \"http://flsmonitor-api.atlantis.ugent.be:9000/testbed/iminds-docker-test\",\n" +
            "                \"http://flsmonitor-api.atlantis.ugent.be:9000/testbed/wilab1\",\n" +
            "                \"http://flsmonitor-api.atlantis.ugent.be:9000/testbed/vwall1\",\n" +
            "                \"http://flsmonitor-api.atlantis.ugent.be:9000/testbed/vwall2-openflow\",\n" +
            "                \"http://flsmonitor-api.atlantis.ugent.be:9000/testbed/imindsScs\",\n" +
            "                \"http://flsmonitor-api.atlantis.ugent.be:9000/testbed/vnodegk19\",\n" +
            "                \"http://flsmonitor-api.atlantis.ugent.be:9000/testbed/cbasiminds\",\n" +
            "                \"http://flsmonitor-api.atlantis.ugent.be:9000/testbed/imindsportabletestbe\"\n" +
            "            ],\n" +
            "            \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/organisation/iminds\",\n" +
            "            \"@type\": \"Organisation\"\n" +
            "        },\n" +
            "        \"servers\": [\n" +
            "            {\n" +
            "                \"id\": 320,\n" +
            "                \"name\": \"iMinds Virtual Wall 2\",\n" +
            "                \"certificateChain\": \"-----BEGIN CERTIFICATE-----\\nMIIHkTCCBnmgAwIBAgIQB15XLapjHvn0FoP93+m1EjANBgkqhkiG9w0BAQsFADBz\\nMQswCQYDVQQGEwJOTDEWMBQGA1UECBMNTm9vcmQtSG9sbGFuZDESMBAGA1UEBxMJ\\nQW1zdGVyZGFtMQ8wDQYDVQQKEwZURVJFTkExJzAlBgNVBAMTHlRFUkVOQSBTU0wg\\nSGlnaCBBc3N1cmFuY2U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\nA4IBAQBTMixhLSaZqzErFPQdX4p563CmDMMrNRiY+xWoQBNEG0nd84XISVmB93kw\\ntliarIx3ZcWT7gTbImaPURAINuMVww0KqYFgt6TX++J4Z3kmOGAF/vfh6yPi7C3S\\n7l51cHMzVvOWsvrX1nZ8zmNO/aVI7W2vs9NW+zMmCajh464QvebA3CFzMsh7mDVu\\n82pTG3pcupa6YwjllocQs3Z1K4PqOYx/pT9+lprMte7IEiKCaRF7a31mcmcqX9jT\\nFsvitHjUNwu4qGq/85CW67N1wiyYiaxwfg53TVqne2GdJ5aGsn1qvxUJHIT1g/Yz\\nJIKF0+bv0AGVPOSJMTMhfke8Fvgs\\n-----END CERTIFICATE-----\\n        \\n\",\n" +
            "                \"serverType\": \"emulab\",\n" +
            "                \"urnTld\": \"wall2.ilabt.iminds.be\",\n" +
            "                \"baseUrl\": \"https://www.wall2.ilabt.iminds.be:12369\",\n" +
            "                \"location\": {\n" +
            "                    \"countryCode\": \"BE\",\n" +
            "                    \"longitude\": 3.7353337,\n" +
            "                    \"latitude\": 51.036339,\n" +
            "                    \"@type\": \"Location\"\n" +
            "                },\n" +
            "                \"scs\": [\n" +
            "                    \"http://flsmonitor-api.atlantis.ugent.be:9000/service/722\"\n" +
            "                ],\n" +
            "                \"defaultScs\": \"http://flsmonitor-api.atlantis.ugent.be:9000/service/722\",\n" +
            "                \"userAuth\": [\n" +
            "                    \"http://flsmonitor-api.atlantis.ugent.be:9000/service/602\",\n" +
            "                    \"http://flsmonitor-api.atlantis.ugent.be:9000/service/601\"\n" +
            "                ],\n" +
            "                \"defaultUserAuth\": \"http://flsmonitor-api.atlantis.ugent.be:9000/service/602\",\n" +
            "                \"flags\": [\n" +
            "                    \"featureExecuteAndInstallService\",\n" +
            "                    \"featureFedMaRequestMemberSshKey\",\n" +
            "                    \"featureFedMaRequestProjectMembers\",\n" +
            "                    \"featureIPv4AddressPool\",\n" +
            "                    \"featureListDiskImages\",\n" +
            "                    \"featurePoaExtDiskImageOps\",\n" +
            "                    \"featurePoaNodeRestart\",\n" +
            "                    \"featurePoaOpenConsole\",\n" +
            "                    \"featurePoaReloadOs\",\n" +
            "                    \"featurePoaShareLan\",\n" +
            "                    \"featurePoaUpdateSshKeys\",\n" +
            "                    \"featureStitching\",\n" +
            "                    \"featureStitchingAdvertisementRspecUptodae\",\n" +
            "                    \"featureStitchingAny\",\n" +
            "                    \"workaroundRemoveAbacCredental\"\n" +
            "                ],\n" +
            "                \"testbed\": \"http://flsmonitor-api.atlantis.ugent.be:9000/testbed/vwall2\",\n" +
            "                \"services\": [\n" +
            "                    {\n" +
            "                        \"id\": 601,\n" +
            "                        \"api\": \"ProtoGeni.SA\",\n" +
            "                        \"apiVersion\": \"1\",\n" +
            "                        \"url\": \"https://www.wall2.ilabt.iminds.be:12369/protogeni/xmlrpc/sa\",\n" +
            "                        \"urn\": \"urn:publicid:IDN+wall2.ilabt.iminds.be+authority+sa\",\n" +
            "                        \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/service/601\",\n" +
            "                        \"@type\": \"Service\"\n" +
            "                    },\n" +
            "                    {\n" +
            "                        \"id\": 600,\n" +
            "                        \"api\": \"Geni.SA\",\n" +
            "                        \"apiVersion\": \"2\",\n" +
            "                        \"url\": \"https://www.wall2.ilabt.iminds.be:12369/protogeni/xmlrpc/geni-sa/2\",\n" +
            "                        \"urn\": \"urn:publicid:IDN+wall2.ilabt.iminds.be+authority+sa\",\n" +
            "                        \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/service/600\",\n" +
            "                        \"@type\": \"Service\"\n" +
            "                    },\n" +
            "                    {\n" +
            "                        \"id\": 602,\n" +
            "                        \"api\": \"Geni.MA\",\n" +
            "                        \"apiVersion\": \"2\",\n" +
            "                        \"url\": \"https://www.wall2.ilabt.iminds.be:12369/protogeni/xmlrpc/geni-ma/2\",\n" +
            "                        \"urn\": \"urn:publicid:IDN+wall2.ilabt.iminds.be+authority+ma\",\n" +
            "                        \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/service/602\",\n" +
            "                        \"@type\": \"Service\"\n" +
            "                    },\n" +
            "                    {\n" +
            "                        \"id\": 603,\n" +
            "                        \"api\": \"Geni.MA\",\n" +
            "                        \"apiVersion\": \"1\",\n" +
            "                        \"url\": \"https://www.wall2.ilabt.iminds.be:12369/protogeni/xmlrpc/geni-ma\",\n" +
            "                        \"urn\": \"urn:publicid:IDN+wall2.ilabt.iminds.be+authority+ma\",\n" +
            "                        \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/service/603\",\n" +
            "                        \"@type\": \"Service\"\n" +
            "                    },\n" +
            "                    {\n" +
            "                        \"id\": 604,\n" +
            "                        \"api\": \"Geni.AM\",\n" +
            "                        \"apiVersion\": \"2\",\n" +
            "                        \"url\": \"https://www.wall2.ilabt.iminds.be:12369/protogeni/xmlrpc/am/2.0\",\n" +
            "                        \"urn\": \"urn:publicid:IDN+wall2.ilabt.iminds.be+authority+cm\",\n" +
            "                        \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/service/604\",\n" +
            "                        \"@type\": \"Service\"\n" +
            "                    },\n" +
            "                    {\n" +
            "                        \"id\": 605,\n" +
            "                        \"api\": \"Geni.AM\",\n" +
            "                        \"apiVersion\": \"1\",\n" +
            "                        \"url\": \"https://www.wall2.ilabt.iminds.be:12369/protogeni/xmlrpc/am\",\n" +
            "                        \"urn\": \"urn:publicid:IDN+wall2.ilabt.iminds.be+authority+cm\",\n" +
            "                        \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/service/605\",\n" +
            "                        \"@type\": \"Service\"\n" +
            "                    },\n" +
            "                    {\n" +
            "                        \"id\": 606,\n" +
            "                        \"api\": \"Geni.AM\",\n" +
            "                        \"apiVersion\": \"3\",\n" +
            "                        \"url\": \"https://www.wall2.ilabt.iminds.be:12369/protogeni/xmlrpc/am/3.0\",\n" +
            "                        \"urn\": \"urn:publicid:IDN+wall2.ilabt.iminds.be+authority+cm\",\n" +
            "                        \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/service/606\",\n" +
            "                        \"@type\": \"Service\"\n" +
            "                    },\n" +
            "                    {\n" +
            "                        \"id\": 607,\n" +
            "                        \"api\": \"Geni.SA\",\n" +
            "                        \"apiVersion\": \"1\",\n" +
            "                        \"url\": \"https://www.wall2.ilabt.iminds.be:12369/protogeni/xmlrpc/geni-sa\",\n" +
            "                        \"urn\": \"urn:publicid:IDN+wall2.ilabt.iminds.be+authority+sa\",\n" +
            "                        \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/service/607\",\n" +
            "                        \"@type\": \"Service\"\n" +
            "                    }\n" +
            "                ],\n" +
            "                \"defaultAMService\": \"http://flsmonitor-api.atlantis.ugent.be:9000/service/606\",\n" +
            "                \"defaultComponentManagerUrn\": \"urn:publicid:IDN+wall2.ilabt.iminds.be+authority+cm\",\n" +
            "                \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/server/320\",\n" +
            "                \"@type\": \"Server\"\n" +
            "            }\n" +
            "        ],\n" +
            "        \"defaultServer\": \"http://flsmonitor-api.atlantis.ugent.be:9000/server/320\",\n" +
            "        \"proxies\": [\n" +
            "            {\n" +
            "                \"id\": 2,\n" +
            "                \"name\": \"jFed proxy\",\n" +
            "                \"type\": \"SSH\",\n" +
            "                \"hostname\": \"bastion.test.iminds.be\",\n" +
            "                \"portRange\": \"22,80,443\",\n" +
            "                \"hostKey\": \"bastion.test.iminds.be ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWxjv7A1BF66nFkWB+fCzCGHVsPEyxVEoe4arT+wcjZSSEtEZYYy+veOb+H28+A+aur1RBAleLfTTa9w5qiPmD/ILeKt5LHsA8cxr2dtgxadGgNxIqyWKJw+3L59qUj7YNLDHmlPEBxroBWWQMqSWKeiGd0JXvUFTRj7RaPenaGD3XzSW1Z+fuYGK2zqKKPAwdTp6woPyn98bPggwV0TcwU6ch1ceJOwS74l3cdcEglXBQ6hNp9e6kMMYtfaxVpFrQtnr+lOLldZdkbCNtx5TR6X1MGLsQUIjLiShM4mKE06et3vO9kqjbcvjE0FI3IIE8ps3AZqzJAjHscsRQ14fB\",\n" +
            "                \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/proxy/2\",\n" +
            "                \"@type\": \"Proxy\"\n" +
            "            }\n" +
            "        ],\n" +
            "        \"@id\": \"http://flsmonitor-api.atlantis.ugent.be:9000/testbed/vwall2\",\n" +
            "        \"results\": \"http://flsmonitor-api.atlantis.ugent.be:9000/result?last=1&testbed=vwall2\",\n" +
            "        \"testInstances\": \"http://flsmonitor-api.atlantis.ugent.be:9000/testinstance?testbed=vwall2\",\n" +
            "        \"@type\": \"Testbed\"\n" +
            "    }";

}
