Skip to content

Commit 6aaaa48

Browse files
Merge pull request #247 from shubham1172/shubham1172/state-store-query-api
Upgrade Dapr runtime and update e2e tests to meet state store query API expectations
2 parents 6a9d715 + 9ad395d commit 6aaaa48

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/test-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
runs-on: ubuntu-latest
3636
env:
3737
GOVER: 1.17
38-
DAPR_CLI_VER: 1.6.0
39-
DAPR_RUNTIME_VER: 1.6.0
38+
DAPR_CLI_VER: 1.7.0
39+
DAPR_RUNTIME_VER: 1.7.0
4040
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh
4141
DAPR_CLI_REF: '9472e6d977817243d6da28af3e3ca744414c54e6' # TODO, remove once DAPR CLI is upgraded to v1.7
4242
DAPR_REF: ''

test/e2e/main.http.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,23 +340,23 @@ describe('http/main', () => {
340340
filter: {
341341
OR: [
342342
{
343-
EQ: { "value.person.org": "Dev Ops" }
343+
EQ: { "person.org": "Dev Ops" }
344344
},
345345
{
346346
"AND": [
347347
{
348-
"EQ": { "value.person.org": "Finance" }
348+
"EQ": { "person.org": "Finance" }
349349
},
350350
{
351-
"IN": { "value.state": ["CA", "WA"] }
351+
"IN": { "state": ["CA", "WA"] }
352352
}
353353
]
354354
}
355355
]
356356
},
357357
sort: [
358358
{
359-
key: "value.state",
359+
key: "state",
360360
order: "DESC"
361361
}
362362
],
@@ -365,6 +365,7 @@ describe('http/main', () => {
365365
}
366366
});
367367

368+
expect(res.results).toBeDefined();
368369
expect(res.results.length).toEqual(4);
369370
expect(res.results.map(i => i.key).indexOf("key-1")).toBeGreaterThan(-1);
370371
expect(res.results.map(i => i.key).indexOf("key-4")).toBeGreaterThan(-1);

0 commit comments

Comments
 (0)