diff --git a/articles/contributing.html b/articles/contributing.html index fbf040f..49dc706 100644 --- a/articles/contributing.html +++ b/articles/contributing.html @@ -143,22 +143,28 @@
We use two tools to replace real AWS accounts: Minio, Localstack.
We use Minio for testing functions in
-this package (functions that start with aws_bucket
and
-aws_file
) for interacting with S3.
We use Minio for testing two sets of +functions in this package for interacting with S3:
+test-buckets.R
+test-files.R
+If you want to run tests while contributing to
-sixtyfour
, the tests that use Minio will just be skipped if
+
sixtyfour
tests that use Minio will just be skipped if
you don’t have Minio running.
To use Minio, first install it for your platform: MacOS, Windows, Linux.
Next, start Minio. Within this package is a make target
-minio_start
for starting Minio locally. That make target
-should only work on Linux and MacOS platforms. To start Minio on the
-command line see the docs links above for each platform.
minio_start
for starting Minio locally; it should only work
+on Linux and MacOS platforms.
Upon starting Minio it will display URLs for both the Minio API and WebUI - and your username/password to login to the WebUI. You can open up the WebUI as a nice visual dashboard of what’s going on.
@@ -174,9 +180,9 @@The following (collapsed) bullets list information for those who want -to know more about the minio setup, and that may want to tweak it or add -minio setup to other tests.
+The following information (collapsed) is for those who want to know +more about the minio setup, and may want to tweak it or add minio setup +to other tests.
Sys.setenv(AWS_PROFILE = "minio")
-buckets_empty() # empty buckets
-Sys.unsetenv("AWS_PROFILE")
Sys.unsetenv("AWS_PROFILE")
Internally we grab client objects for paws
and
s3fs
as needed and use AWS_PROFILE
env var to
toggle on/off using Minio.
For Minio we use the default credentials:
+minioadmin
(override with env var
+MINIO_USER
)minioadmin
(override with env var
+MINIO_PWD
)http://127.0.0.1:9000
(override with env var
+MINIO_ENDPOINT
)You can override these defaults by setting the env vars above to your +own values.
@@ -210,20 +225,32 @@We use Localstack for -testing some functions in this package.
+testing some functions in this package: +test-groups.R
+test-policies.R
+test-roles.R
+test-s3.R
+test-secrets_manager.R
+test-users.R
+test-vpc.R
+If you want to run tests while contributing to
-sixtyfour
, the tests that use Localstack will just be
-skipped if you don’t have Minio running.
sixtyfour
tests that use Localstack will just be skipped
+if you don’t have Localstack running.
To use Localstack, first install it for your platform https://docs.localstack.cloud/getting-started/installation/.
Next, start Localstack. Within this package is a make target
localstack_start
for starting Localstack locally. That make
-target should only work on Linux and MacOS platforms. To start
-Localstack on the command line see the docs links above for each
-platform. You’ll need Docker installed and running to run Localstack.
-There are probably non-Docker ways to run Localstack.
For a GUI interface to the locally running localstack you can install the Desktop client - which isn’t very good - at https://docs.localstack.cloud/getting-started/installation/#localstack-desktop. Better yet, login to the cloud Localstack site and you can interface @@ -267,6 +294,17 @@