Package org.jclouds.abiquo.domain.event.options

Examples of org.jclouds.abiquo.domain.event.options.EventOptions


   public void testListEventsFilteredByDatacenter() {
      String name = randomName();
      env.datacenter.setName(name);
      env.datacenter.update();

      EventOptions options = EventOptions.builder().dateFrom(new Date()).datacenterName(name).build();
      assertEvents(options);
   }
View Full Code Here


   public void testListEventsFilteredByRack() {
      String name = randomName();
      env.rack.setName(name);
      env.rack.update();

      EventOptions options = EventOptions.builder().dateFrom(new Date()).rackName(name).build();
      assertEvents(options);
   }
View Full Code Here

   public void testListEventsFilteredByPM() {
      String name = randomName();
      env.machine.setName(name);
      env.machine.update();

      EventOptions options = EventOptions.builder().dateFrom(new Date()).physicalMachineName(name).build();
      assertEvents(options);
   }
View Full Code Here

   public void testListEventsFilteredByStorageDevice() {
      String name = randomName();
      env.storageDevice.setName(name);
      env.storageDevice.update();

      EventOptions options = EventOptions.builder().dateFrom(new Date()).storageSystemName(name).build();
      assertEvents(options);
   }
View Full Code Here

      try {
         env.storagePool.setTier(tier);
         env.storagePool.update();

         EventOptions options = EventOptions.builder().dateFrom(new Date()).storagePoolName(env.storagePool.getName())
               .build();
         assertEvents(options);
      } finally {
         // Restore the original tier
         env.storagePool.setTier(env.tier);
View Full Code Here

      // Enterprise current =
      // env.enterpriseAdminContext.getAdministrationService().getCurrentEnterprise();
      // current.setName("Enterprise updated");
      // current.update();

      EventOptions options = EventOptions.builder().dateFrom(new Date()).enterpriseName(name).build();
      assertEvents(options);

      env.enterprise.setName(entName);
      env.enterprise.update();
   }
View Full Code Here

   public void testListEventsFilteredByUser() {
      User current = env.plainUserContext.getAdministrationService().getCurrentUser();
      current.setEmail("test@test.com");
      current.update();

      EventOptions options = EventOptions.builder().dateFrom(new Date()).userName(current.getName()).build();
      assertEvents(options);
   }
View Full Code Here

   public void testListEventsFilteredByVDC() {
      String name = randomName();
      env.virtualDatacenter.setName(name);
      env.virtualDatacenter.update();

      EventOptions options = EventOptions.builder().dateFrom(new Date()).virtualDatacenterName(name).build();
      assertEvents(options);
   }
View Full Code Here

   public void testListEventsFilteredByVapp() {
      String name = randomName();
      env.virtualAppliance.setName(name);
      env.virtualAppliance.update();

      EventOptions options = EventOptions.builder().dateFrom(new Date()).virtualAppName(name).build();
      assertEvents(options);
   }
View Full Code Here

   public void testListEventsFilteredByVM() {
      VirtualMachine vm = createVirtualMachine();
      vm.delete();

      EventOptions options = EventOptions.builder().dateFrom(new Date()).actionPerformed(EventType.VM_DELETE).build();
      assertEvents(options);
   }
View Full Code Here

TOP

Related Classes of org.jclouds.abiquo.domain.event.options.EventOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.