Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-2822 [Kantra] Add the validation for zip file or unsupported format indicating reason for failure
  3. MTA-3388

[QE] Verify for ( [Kantra] Add the validation for zip file or unsupported format indicating reason for failure )

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • MTA 7.1.0
    • None
    • QE-Task
    • None
    • Quality / Stability / Reliability
    • 2
    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      Ran an analysis using zip file ex: 

      $ ./kantra analyze --input=/home/user/sample.daytrader7-master.zip --output=~/output_dir --overwrite

      Output received:
       

      panic: runtime error: index out of range [0] with length 0   goroutine 1 [running]: github.com/konveyor-ecosystem/kantra/cmd.(*analyzeCommand).RunProviders(0xc00024e780, {0xec4f88, 0xc000035e50}, {0xc0003d3890, 0x10}, {0xc0003d38e0, 0x10}, {0xc0001e1a60, 0x0, 0x0}, ...) /workspace/cmd/analyze.go:799 +0x7b7 github.com/konveyor-ecosystem/kantra/cmd.NewAnalyzeCmd.func2(0xc00029e600, {0xc000296d80?, 0x4?, 0xd61a61?}) /workspace/cmd/analyze.go:171 +0x6e5 github.com/spf13/cobra.(*Command).execute(0xc00029e600, {0xc000296d20, 0x3, 0x3}) /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:983 +0xabc github.com/spf13/cobra.(*Command).ExecuteC(0x146d580) /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff github.com/spf13/cobra.(*Command).Execute(...) /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039 github.com/spf13/cobra.(*Command).ExecuteContext(...) /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1032 github.com/konveyor-ecosystem/kantra/cmd.Execute() /workspace/cmd/root.go:66 +0x10c main.main() /workspace/main.go:8 +0xf

       
      Expected: At the end of analysis reason for failure or error.log in the ouptput dir ad output directory remains empty

       

              rhn-support-kpunwatk Karishma Punwatkar
              istein@redhat.com Ilanit Stein
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: