-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: use virtual environment in functional tests #476
base: trunk
Are you sure you want to change the base?
Conversation
packages/atclient/src/connection.c
Outdated
void atclient_connection_set_read_timeout(atclient_connection *ctx, const uint32_t timeout_ms) { | ||
if (ctx == NULL) { | ||
atlogger_log(TAG, ATLOGGER_LOGGING_LEVEL_ERROR, "ctx is NULL\n"); | ||
return; | ||
} | ||
|
||
mbedtls_ssl_conf_read_timeout(&(ctx->ssl_config), timeout_ms); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this method already exist? I recall editing this in the changes for #475
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only use a few sets of keys, can you remove the excess ones
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done here
|
||
CONTAINER_NAME="virtualenv" | ||
|
||
sudo docker exec "$CONTAINER_NAME" supervisorctl start pkamLoad |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't put sudo in the script. Most systems should have configured docker so that it doesn't need super user permissions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in fb2e8a3
7c1256e
to
56e318f
Compare
2321e0a
to
3dfebc3
Compare
00b40bc
to
7feb7ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments that could be tidied later but otherwise LGTM
run: | | ||
mkdir -p ~/.atsign/keys/ | ||
echo "${{ secrets.ATKEYS_12ALPACA }}" > ~/.atsign/keys/@12alpaca_key.atKeys | ||
echo "${{ secrets.ATKEYS_12SNOWBOATING }}" > ~/.atsign/keys/@12snowboating_key.atKeys | ||
ls -la |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a stray debug line
- name: Add vip.ve.atsign.zone to /etc/hosts | ||
run: | | ||
echo "127.0.0.1 vip.ve.atsign.zone" | sudo tee -a /etc/hosts | ||
cat /etc/hosts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More debug stuff
sudo apt-get update | ||
sudo apt-get install -y docker-compose | ||
sudo ./start_virtualenv.sh | ||
sleep 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to test for the services being ready rather than sleeping?
closes #211
- What I did
Functional tests
ATDIRECTORY_HOST
andATDIRECTORY_PORT
options to the functional test's CMakeLists.txtint functional_tests_set_up_atkeys(atclient_atkeys *atkeys, const char *atsign);
andint functional_tests_pkam_auth(atclient *atclient, atclient_atkeys *atkeys, const char *atsign);
atclient
void atclient_connection_set_read_timeout(atclient_connection *ctx, const uint32_t timeout_ms);
inconnection.c
atclient_set_read_timeout
(inatclient.c
) to use the new function mentioned above- How to verify it
- Description for the changelog
ci: use virtual environment in functional tests