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

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


      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

      Volume volume = createVolume();
      volume.setName(name);
      volume.update();
      volume.delete(); // We don't need it any more. events already exist

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

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

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

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

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

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

      EventOptions options = EventOptions.builder().dateFrom(new Date()).virtualAppName(name)
            .component(ComponentType.VIRTUAL_APPLIANCE).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.