Skip to content

add system sites e2e tests#2429

Open
nluaces wants to merge 7 commits into
skupperproject:mainfrom
nluaces:add-system-sites-e2e-tests
Open

add system sites e2e tests#2429
nluaces wants to merge 7 commits into
skupperproject:mainfrom
nluaces:add-system-sites-e2e-tests

Conversation

@nluaces
Copy link
Copy Markdown
Member

@nluaces nluaces commented May 1, 2026

e2e tests that implement the Hello World example in system sites (with manual reload).

@nluaces nluaces requested review from c-kruse and fgiorgetti as code owners May 1, 2026 21:04
@nluaces nluaces requested review from granzoto and hash-d as code owners May 4, 2026 12:56
@nluaces nluaces marked this pull request as draft May 6, 2026 12:32
@nluaces nluaces marked this pull request as ready for review May 7, 2026 19:07
Copy link
Copy Markdown
Member

@fgiorgetti fgiorgetti left a comment

Choose a reason for hiding this comment

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

It is working fine. I have added a couple of comments related to the image option for some of the module invocations, but I believe we should raise a separate issue to handle that, as it seems to affect all e2e tests.

skupper.v2.controller:
action: install
platform: "{{ platform }}"
failed_when: false
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I believe that failed_when should be removed here.
If the system-controller is already installed, the module will return OK, not changed.

ansible.builtin.shell:
cmd: "{{ platform }} run --name frontend -d --rm -p 127.0.0.1:7070:8080 quay.io/skupper/hello-world-frontend --backend http://host.containers.internal:8080"
changed_when: false
when: "'west' in inventory_hostname"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is the when clause needed in these 2 tasks? Considering it is already defined for the block?

path: "{{ playbook_dir }}/resources/east/"
platform: "{{ platform }}"
namespace: "{{ namespace_name }}"
when: "'east' in inventory_hostname"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same comment for the when clause here, maybe not needed.


- name: "[ {{ test_identifier }} ] - Start west namespace"
skupper.v2.system:
action: start
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The image option should be passed here (CLI image), using the one built by the CI.

block:
- name: "[ {{ test_identifier }} ] - Install system controller"
skupper.v2.controller:
action: install
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The image option should be passed here, using the one built through the CI.


- name: "[ {{ test_identifier }} ] - Start east namespace"
skupper.v2.system:
action: start
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same thing here. Pass the image option to the system module.


- name: "[ {{ test_identifier }} ] - Stop namespaces"
skupper.v2.system:
action: stop
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Pass the image option here (using the CLI image built through the CI).

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