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

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


      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

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

      EventOptions options = EventOptions.builder().dateFrom(new Date()).virtualAppName(name)
            .description("Virtual appliance '" + name + "' has been modified.").build();
      assertEvents(options);
   }
View Full Code Here

                  .statusCode(200)
                  .payload(
                        payloadFromResourceWithContentType("/payloads/events-page.xml", normalize(EventsDto.MEDIA_TYPE))) //
                  .build());

      EventOptions options = EventOptions.builder().limit(1).has("text").build();
      PaginatedCollection<EventDto, EventsDto> result = api.listEvents(options);

      assertEquals(result.size(), 2);
      assertEquals(result.getTotalSize().intValue(), 4);
      assertEquals(result.get(0).getId().intValue(), 109);
View Full Code Here

   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

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.