Skip to content

Commit

Permalink
fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
humandad committed Jun 19, 2024
1 parent 035f6fa commit b8e697d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 16 deletions.
2 changes: 2 additions & 0 deletions libs/apps/uesio/tests/bundle/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ dependencies:
version: v0.0.1
uesio/io:
version: v0.0.1
uesio/aikit:
version: v0.0.1
3 changes: 1 addition & 2 deletions libs/apps/uesio/tests/hurl_specs/allmetadata.hurl
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ HTTP 200
[Asserts]
jsonpath "$.wires[0].data" count == 5
jsonpath "$.wires[0].data[0]['uesio/studio.name']" == "openaikey"
jsonpath "$.wires[0].data[0]['uesio/studio.namespace']" == "uesio/core"
jsonpath "$.wires[0].data[0]['uesio/studio.namespace']" == "uesio/aikit"
jsonpath "$.wires[0].data[1]['uesio/studio.name']" == "sendgridkey"
jsonpath "$.wires[0].data[1]['uesio/studio.namespace']" == "uesio/core"
jsonpath "$.wires[0].data[2]['uesio/core.uniquekey']" == "uesio/tests.test_oauth_client_id"
Expand Down Expand Up @@ -335,7 +335,6 @@ HTTP 200
[Asserts]
jsonpath "$.wires[0].data" count == 5
jsonpath "$.wires[0].data[*]['uesio/core.uniquekey']" includes "uesio/core.sendgrid"
jsonpath "$.wires[0].data[*]['uesio/core.uniquekey']" includes "uesio/core.openai"
jsonpath "$.wires[0].data[*]['uesio/core.uniquekey']" includes "uesio/tests.secret_access_allowed"
jsonpath "$.wires[0].data[*]['uesio/core.uniquekey']" includes "uesio/tests.secret_access_forbidden"
jsonpath "$.wires[0].data[*]['uesio/core.uniquekey']" includes "uesio/tests.test_api_key_credentials"
Expand Down
2 changes: 1 addition & 1 deletion libs/apps/uesio/tests/hurl_specs/integration_actions.hurl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ POST https://{{host}}:{{port}}/site/auth/uesio/core/mock/login
}

# Request metadata for a core integration action with input parameters defined
GET https://{{host}}:{{port}}/workspace/uesio/tests/dev/integrationactions/describe/uesio/core/bedrock?action=uesio/core.invokemodel
GET https://{{host}}:{{port}}/workspace/uesio/tests/dev/integrationactions/describe/uesio/aikit/bedrock?action=uesio/aikit.invokemodel
HTTP 200
[Asserts]
jsonpath "$.inputs" count == 6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ GET https://{{host}}:{{port}}/siteadmin/uesio/tests/testsite/metadata/namespaces
Accept: application/json
HTTP 200
[Asserts]
jsonpath "$" count == 4
jsonpath "$" count == 5
jsonpath "$[0]" == "uesio/tests"
jsonpath "$[1]" == "uesio/builder"
jsonpath "$[2]" == "uesio/core"
jsonpath "$[3]" == "uesio/io"
jsonpath "$[1]" == "uesio/aikit"
jsonpath "$[2]" == "uesio/builder"
jsonpath "$[3]" == "uesio/core"
jsonpath "$[4]" == "uesio/io"

# Get a list of all collections available from a siteadmin context
GET https://{{host}}:{{port}}/siteadmin/uesio/tests/testsite/metadata/types/collections/list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ GET https://{{host}}:{{port}}/version/uesio/tests/v0.0.1/metadata/namespaces
Accept: application/json
HTTP 200
[Asserts]
jsonpath "$" count == 4
jsonpath "$" count == 5
jsonpath "$[0]" == "uesio/tests"
jsonpath "$[1]" == "uesio/builder"
jsonpath "$[2]" == "uesio/core"
jsonpath "$[3]" == "uesio/io"
jsonpath "$[1]" == "uesio/aikit"
jsonpath "$[2]" == "uesio/builder"
jsonpath "$[3]" == "uesio/core"
jsonpath "$[4]" == "uesio/io"

# Get a list of all collections available from a version context
GET https://{{host}}:{{port}}/version/uesio/tests/v0.0.1/metadata/types/collections/list
Expand Down Expand Up @@ -98,4 +99,4 @@ GET https://{{host}}:{{port}}/version/uesio/core/v0.0.1/metadata/types/secrets/l
Accept: application/json
HTTP 200
[Asserts]
jsonpath "$[*]" count == 8
jsonpath "$[*]" count == 7
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ GET https://{{host}}:{{port}}/workspace/uesio/tests/dev/metadata/namespaces
Accept: application/json
HTTP 200
[Asserts]
jsonpath "$" count == 4
jsonpath "$" count == 5
jsonpath "$[0]" == "uesio/tests"
jsonpath "$[1]" == "uesio/builder"
jsonpath "$[2]" == "uesio/core"
jsonpath "$[3]" == "uesio/io"
jsonpath "$[1]" == "uesio/aikit"
jsonpath "$[2]" == "uesio/builder"
jsonpath "$[3]" == "uesio/core"
jsonpath "$[4]" == "uesio/io"

# Get a list of all collections available from a workspace context
GET https://{{host}}:{{port}}/workspace/uesio/tests/dev/metadata/types/collections/list
Expand Down

0 comments on commit b8e697d

Please sign in to comment.