Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hive
HAfAH
Commits
1267358d
Commit
1267358d
authored
May 19, 2022
by
Kristupas Bobraitis
Browse files
Updated '.gitlab-ci.yml' for new style call API tests
parent
92c46dfd
Pipeline
#45273
failed with stages
in 22 minutes and 48 seconds
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
1267358d
...
...
@@ -87,6 +87,7 @@ prepare_postgrest_hafah_image:
FF_NETWORK_PER_BUILD
:
1
PYTHONPATH
:
"
$CI_PROJECT_DIR/haf/hive/tests/test_tools/package"
HAFAH_IMAGE
:
"
"
TEST_NAMES
:
"
"
needs
:
-
job
:
prepare_haf_image
...
...
@@ -110,7 +111,7 @@ prepare_postgrest_hafah_image:
-
pip3 install -r $CI_PROJECT_DIR/haf/hive/tests/api_tests/comparsion_tests/requirements.txt
# run pattern tests
-
cd $CI_PROJECT_DIR/haf/hive/tests/api_tests/pattern_tests
-
./run_tests.sh $AH_ENDPOINT `git rev-parse --show-toplevel`
-
./run_tests.sh $AH_ENDPOINT `git rev-parse --show-toplevel`
$TEST_NAMES
artifacts
:
when
:
always
...
...
@@ -150,6 +151,18 @@ postgrest_patterns_tests:
variables
:
HAFAH_IMAGE
:
$HAFAH_IMAGE_NAME
new_style_postgrest_patterns_tests
:
extends
:
.patterns_tests
needs
:
-
!reference
[
.patterns_tests
,
needs
]
-
job
:
prepare_postgrest_hafah_image
artifacts
:
true
variables
:
HAFAH_IMAGE
:
$HAFAH_IMAGE_NAME
TEST_NAMES
:
"
not
get_transaction_hex
and
not
account_history_api
and
not
condenser_api
and
(get_transaction
or
get_account_history
or
enum_virtual_ops
or
get_ops_in_block)"
.comparison_tests
:
extends
:
.docker_image_builder_job
stage
:
test
...
...
postgrest.conf
View file @
1267358d
db
-
uri
=
"postgresql://h
ive
@/haf_block_log"
db
-
uri
=
"postgresql://h
af_app_admin
@/haf_block_log"
db
-
schema
=
"hafah_endpoints"
db
-
anon
-
role
=
"hafah_user"
db
-
root
-
spec
=
"home"
...
...
postgrest/hafah_endpoints.sql
View file @
1267358d
...
...
@@ -393,7 +393,7 @@ LANGUAGE 'plpgsql'
AS
$$
BEGIN
RETURN
hafah_endpoints
.
call_get_ops_in_block
(
$
1
,
json_typeof
(
$
1
))
->
'ops'
;
RETURN
hafah_endpoints
.
call_get_ops_in_block
(
$
1
,
json_typeof
(
$
1
));
END
$$
;
...
...
@@ -426,7 +426,7 @@ LANGUAGE 'plpgsql'
AS
$$
BEGIN
RETURN
hafah_endpoints
.
call_get_account_history
(
$
1
,
json_typeof
(
$
1
))
->
'history'
;
RETURN
hafah_endpoints
.
call_get_account_history
(
$
1
,
json_typeof
(
$
1
));
END
$$
;
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment