Skip to content

Commit

Permalink
add HttpLuaRule
Browse files Browse the repository at this point in the history
  • Loading branch information
vearne committed Jul 11, 2024
1 parent 86a4c42 commit ea46338
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions internal/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package resource
import (
"bufio"
"encoding/json"
"fmt"
"github.com/go-resty/resty/v2"
"github.com/vearne/autotest/internal/config"
"github.com/vearne/autotest/internal/model"
Expand Down Expand Up @@ -127,6 +128,8 @@ func ParseConfigFile(filePath string) error {
return err
}
c.VerifyRules = append(c.VerifyRules, &item)
default:
return fmt.Errorf("unknow http-VerifyRule:%v", r["name"])
}
}

Expand Down Expand Up @@ -202,6 +205,8 @@ func ParseConfigFile(filePath string) error {
return err
}
c.VerifyRules = append(c.VerifyRules, &item)
default:
return fmt.Errorf("unknow Grpc-VerifyRule:%v", r["name"])
}
}

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

const (
version = "v0.1.2"
version = "v0.1.3"
)

func main() {
Expand Down

0 comments on commit ea46338

Please sign in to comment.