File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ def test_base_url_used_instead_of_host(cloud_config):
42
42
def test_invalid_host ():
43
43
with pytest .raises (ValueError ) as err :
44
44
Client (
45
- host = "marklogic.com" ,
45
+ host = "localhost" ,
46
+ port = 8031 ,
47
+ verify = False ,
46
48
cloud_api_key = "doesnt-matter-for-this-test" ,
47
49
base_path = DEFAULT_BASE_PATH ,
48
50
)
49
- assert str (err .value ).startswith (
50
- "Unable to generate token; status code: 403; cause: "
51
- )
51
+ assert "Unable to generate token; status code: 401; cause: " in str (err .value )
52
52
53
53
54
54
def test_invalid_api_key (cloud_config ):
Original file line number Diff line number Diff line change @@ -53,9 +53,9 @@ def test_update_dsl_wrong_path(admin_client):
53
53
54
54
update_query_remove = 'op.fromDocUris("' + DOC_URI + '").lockForUpdate().remove()'
55
55
response = admin_client .rows .query (update_query_remove , return_response = True )
56
- assert 400 == response .status_code
56
+ assert 500 == response .status_code
57
57
assert (
58
- "Optic Update need to be run as update transaction "
58
+ "Optic plans that perform updates must be sent via HTTP POST to the v1/rows/ update endpoint. "
59
59
in response .content .decode ("utf-8" )
60
60
)
61
61
You can’t perform that action at this time.
0 commit comments