Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2737

Testing on Project level fails if project was cloned via git/clone REST API removed and cloned again

XMLWordPrintable

    • User Experience
    • Hide

      1. Download and unzip it to path
      2. Make sure that there is repository by

       git status 

      3. Prepare business central runnng with certain credentionals and run it
      4. Create space BPMS and call shell script to clone a project

      curl -X POST     \
                    -u '_credentionals_' \
                    -H "content-type: application/json" \
                    "http://127.0.0.1:8080/business-central/rest/spaces/bpms/git/clone" \
                    -d '{
        "name": "Traffic",
        "gitURL": "file://_path_"
      }'
      

      5. Remove space bpms
      6. Repeat step 4
      5. Go to Business central and open the project Traffic of bpms so to view the list of asserts
      6. Press "Test"

      Expected tests are executed
      Actual []

      Show
      1. Download and unzip it to path 2. Make sure that there is repository by git status 3. Prepare business central runnng with certain credentionals and run it 4. Create space BPMS and call shell script to clone a project curl -X POST \ -u '_credentionals_' \ -H "content-type: application/json" \ "http: //127.0.0.1:8080/business-central/ rest /spaces/bpms/git/clone" \ -d '{ "name" : "Traffic" , "gitURL" : "file: //_path_" }' 5. Remove space bpms 6. Repeat step 4 5. Go to Business central and open the project Traffic of bpms so to view the list of asserts 6. Press "Test" Expected tests are executed Actual []
    • 2020 Week 37-39 (from Sep 7)

      If user clones project by REST API call like [1] and go for the cloned project then if he/she try to test it first then the System Error appear [2].

      [1]

      curl -X POST     \
                    -u 'testadmin:admin1234;' \
                    -H "content-type: application/json" \
                    "http://127.0.0.1:8080/business-central/rest/spaces/bpms/git/clone" \
                    -d '{
        "name": "Traffic",
        "gitURL": "file:///home/adupliak/Documents/ngit/Traffic4222312160964203593/"
      }'
      

      [2]

      See https://issues.redhat.com/secure/attachment/12467269/inexing.webm

              r_anand Rishiraj Anand (Inactive)
              adupliak Anna Dupliak
              Anna Dupliak Anna Dupliak
              Anna Dupliak Anna Dupliak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: