Skip to content
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

Test with localstack #58

Closed

Conversation

samuelpcabral
Copy link
Member

Hello @paguilera I want to send now this merge without create the new version because with this new changes we can test the library locally... so will be much easy for everyone who wants to collaborate.

My idea is create the local tests for dynamo and cloudwatch, then create and release the version 1.0.0

@MummanaSubramanya
Copy link

@samuelpcabral Can we have these tests running in Gtihub actions? That would be great

@samuelpcabral
Copy link
Member Author

@MummanaSubramanya Sure.. I have been working on this today.. I am still making some improvements.

Right after this PR is approved I will send the GitHub actions code 😁

Copy link
Collaborator

@paguilera paguilera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's some open questions. Things are coming along pretty well. I'm looking forward to seeing localstack implemented.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When trying to get things set up with this script, I'm seeing this set of error messages when everything else seem to come up successfully:

An error occurred (InternalFailure) when calling the CreateLogGroup operation: Service 'logs' is not enabled. Please check your 'SERVICES' configuration variable.

An error occurred (InternalFailure) when calling the CreateLogStream operation: Service 'logs' is not enabled. Please check your 'SERVICES' configuration variable.

What am I missing? Is the SERVICES configuration described in a README or CONTRIBUTING file?

This affects the Cloudwatch tests so I won't include this same comment there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @paguilera I include the logs in the secondo push that I sent in the branch... is the line 10 in docker-compose.yml, check if you have: "- SERVICES=s3,lambda,dynamodb,rds,sqs,logs"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests are failing for me locally with this error message for all tests:

ResourceNotFoundException: An error occurred (ResourceNotFoundException) when calling the PutItem operation: Cannot do operations on a non-existent table

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is because the localstack/docker-compose.yml reads the localstack/init-aws.sh,, check if you have the latest version of init-aws.sh.. should have the creation of two tables with command "awslocal dynamodb create-table"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any additional configuration that's needed for the logs services? See my comment for init-aws.sh for more info.

tests/robot/sqs.robot Show resolved Hide resolved
@samuelpcabral
Copy link
Member Author

Hi @paguilera The error seems strange to me, it seems like you have some things updated and others no, because I made two different pushes to the branch... let me do the push with github actions and make sure everything is up to date... I will send another message when is done..

@samuelpcabral
Copy link
Member Author

PR moved to #59

@samuelpcabral samuelpcabral deleted the test_localstack_linux branch August 22, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants