Skip to content

Add e2e tests - #165

Merged
Marian Koreniuk (themoriarti) merged 3 commits into
mainfrom
e2e
Jun 17, 2024
Merged

Marian Koreniuk (themoriarti) merged 3 commits into
mainfrom
e2e

Conversation

@kvaps

@kvaps Andrei Kvapil (kvaps) commented Jun 12, 2024 •

Copy link
Copy Markdown
Member

Add script that creates three VMs and installs Cozystack into them

Signed-off-by: Andrei Kvapil <[email protected]>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

After add MASQUERADE, it would be good to stop the virtual machines at the end of the test or add the possibility of configuration parameter for that.

Comment thread hack/e2e.sh
ip link set cozy-srv$i up
ip link set cozy-srv$i master cozy-br0
done

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

To be able to go outside add:

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.123.0/24 -j MASQUERADE

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I have to add check to test for this

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks, just added this to tests

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Now looks good.

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.

2 participants