Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-712

Arquillian tries to undeploy deployment which fails during deploying

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 1.0.0.CR6
    • None
    • None

      How to reproduce:

      @Deployment(name = "dep_fail", managed = false)
      public static Archive<?> deploy_fail() {
         // return some deployment which can't be deployed = error produced
      }
      
      @ArquillianResource private Deployer deployer;
      
      @Test
      @RunAsClient
      public void testDeploy() throws Exception {
         boolean fail = false;
      
         try {
            deployer.deploy("dep_fail"); // Exception raised HERE
         } catch (Exception e) {
            fail = true;
         }
         if (!fail) {
            // Some tests
            try {
               deployer.undeploy("dep_false");
            } catch (Exception e) {
            }
         }
      }
      

      Although deploy() ends with logged exception when deployment of dep_fail fails - ARQ tries to undeploy this artifact from AS7 server when end of testDeploy() reached.

            Unassigned Unassigned
            pjanouse@redhat.com Pavel Janousek
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: