Skip to content

Commit

Permalink
prepare release 0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrthomas committed Jun 10, 2019
1 parent a90f35a commit b50202b
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 23 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,13 @@ So you need two `<dependencies>`:
<dependency>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-apache</artifactId>
<version>0.9.2</version>
<version>0.9.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-junit4</artifactId>
<version>0.9.2</version>
<version>0.9.3</version>
<scope>test</scope>
</dependency>
```
Expand All @@ -297,8 +297,8 @@ If you want to use [JUnit 5](#junit-5), use `karate-junit5` instead of `karate-j
Alternatively for [Gradle](https://gradle.org) you need these two entries:

```yml
testCompile 'com.intuit.karate:karate-junit4:0.9.2'
testCompile 'com.intuit.karate:karate-apache:0.9.2'
testCompile 'com.intuit.karate:karate-junit4:0.9.3'
testCompile 'com.intuit.karate:karate-apache:0.9.3'
```

### Quickstart
Expand All @@ -312,7 +312,7 @@ You can replace the values of `com.mycompany` and `myproject` as per your needs.
mvn archetype:generate \
-DarchetypeGroupId=com.intuit.karate \
-DarchetypeArtifactId=karate-archetype \
-DarchetypeVersion=0.9.2 \
-DarchetypeVersion=0.9.3 \
-DgroupId=com.mycompany \
-DartifactId=myproject
```
Expand Down Expand Up @@ -1999,12 +1999,12 @@ Example:

```
# trust all server certificates, in the feature file
* configure ssl = {trustAll: true});
* configure ssl = { trustAll: true };
```

```
# trust all server certificates, global configuration in 'karate-config.js'
karate.configure('ssl', {trustAll: true});
karate.configure('ssl', { trustAll: true });
```

# Payload Assertions
Expand Down Expand Up @@ -2078,9 +2078,13 @@ In case you were wondering, variables (and even expressions) are supported on th
* match foo == bar
```

If you are wondering about the finer details of the `match` syntax, the left-hand-side has to be either a variable name, or a 'named' JsonPath or XPath expression. And the right-hand-side can be any valid [Karate expression](#karate-expressions).
If you are wondering about the finer details of the `match` syntax, the left-hand-side has to be either a
* variable name - e.g. `foo`
* a 'named' JsonPath or XPath expression - e.g. `foo.bar`
* any valid function or method call - e.g. `foo.bar()` or `foo.bar('hello').baz`
* or anything wrapped in parantheses which will be evaluated - e.g. `(foo + bar)` or `(42)`

> Refer to the section on [JsonPath short-cuts](#jsonpath-short-cuts) for a deeper understanding of 'named' JsonPath expressions in Karate.
And the right-hand-side can be any valid [Karate expression](#karate-expressions). Refer to the section on [JsonPath short-cuts](#jsonpath-short-cuts) for a deeper understanding of 'named' JsonPath expressions in Karate.

### `match !=` (not equals)
The 'not equals' operator `!=` works as you would expect:
Expand Down
2 changes: 1 addition & 1 deletion karate-apache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-parent</artifactId>
<version>1.0.0</version>
<version>0.9.3</version>
</parent>
<artifactId>karate-apache</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion karate-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-parent</artifactId>
<version>1.0.0</version>
<version>0.9.3</version>
</parent>
<artifactId>karate-archetype</artifactId>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<maven.compiler.version>3.6.0</maven.compiler.version>
<karate.version>0.9.2</karate.version>
<karate.version>0.9.3</karate.version>
</properties>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion karate-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-parent</artifactId>
<version>1.0.0</version>
<version>0.9.3</version>
</parent>
<artifactId>karate-core</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion karate-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-parent</artifactId>
<version>1.0.0</version>
<version>0.9.3</version>
</parent>

<artifactId>karate-demo</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion karate-gatling/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
ext {
karateVersion = '1.0.0'
karateVersion = '0.9.3'
}
}

Expand Down
2 changes: 1 addition & 1 deletion karate-gatling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-parent</artifactId>
<version>1.0.0</version>
<version>0.9.3</version>
</parent>
<artifactId>karate-gatling</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion karate-jersey/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-parent</artifactId>
<version>1.0.0</version>
<version>0.9.3</version>
</parent>
<artifactId>karate-jersey</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion karate-junit4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-parent</artifactId>
<version>1.0.0</version>
<version>0.9.3</version>
</parent>
<artifactId>karate-junit4</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion karate-junit5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-parent</artifactId>
<version>1.0.0</version>
<version>0.9.3</version>
</parent>
<artifactId>karate-junit5</artifactId>
<packaging>jar</packaging>
Expand Down
10 changes: 10 additions & 0 deletions karate-mock-servlet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ Everything is typically tied together in [bootstrap configuration](https://githu

Use the test configuration for this `karate-mock-servlet` project as a reference: [`karate-config.js`](src/test/java/karate-config.js)

## Limitations
Most teams would not run into these, but if you do, please [consider contributing](https://github.com/intuit/karate/projects/3#card-22529274) !

* Servlet filters that may be "default" in "real" spring / boot apps etc will be missing, for e.g. encoding and error handling. Currently we lack a way to add custom filters to the "fake" servlet.
* File Upload is not supported.
* Other similar edge-cases (such as redirects) are not supported.

Teams typically use the mock-servlet for simple JSON / XML request-response use cases. If you find some file-upload or negative-test scenarios failing because of the above limitations, you can choose to [`tag`](https://github.com/intuit/karate#tags) those tests to run only in your end-to-end integration test environment.





2 changes: 1 addition & 1 deletion karate-mock-servlet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-parent</artifactId>
<version>1.0.0</version>
<version>0.9.3</version>
</parent>

<artifactId>karate-mock-servlet</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion karate-netty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-parent</artifactId>
<version>1.0.0</version>
<version>0.9.3</version>
</parent>
<artifactId>karate-netty</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion karate-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-parent</artifactId>
<version>1.0.0</version>
<version>0.9.3</version>
</parent>
<artifactId>karate-ui</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.intuit.karate</groupId>
<artifactId>karate-parent</artifactId>
<version>1.0.0</version>
<version>0.9.3</version>
<packaging>pom</packaging>

<name>${project.artifactId}</name>
Expand Down

0 comments on commit b50202b

Please sign in to comment.