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
Gherkin form based edit build config #9840
Gherkin form based edit build config #9840
Conversation
5d0183e
to
69b766f
Compare
/assign @divyanshiGupta @gajanan-more |
/cc @jerolimov |
frontend/packages/dev-console/integration-tests/features/build-config/edit-build-config.feature
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/integration-tests/features/build-config/edit-build-config.feature
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/integration-tests/features/build-config/edit-build-config.feature
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/integration-tests/features/build-config/edit-build-config.feature
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/integration-tests/features/build-config/edit-build-config.feature
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/integration-tests/features/build-config/edit-build-config.feature
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/integration-tests/features/build-config/edit-build-config.feature
Outdated
Show resolved
Hide resolved
6c85b01
to
a5c38ba
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.
/lgtm
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 good so far, added some small comments about cleanup yaml files and some alignments with the current implementation in WIP PR #9834
When user navigates to build tab | ||
And user clicks on kebab menu for "nodejs-ex-git1" build config | ||
And user clicks on Edit BuildConfig | ||
Then user will see the Git Repository url, Image configuration, Environment Variables |
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.
The name field should also be also shown:
Then user will see the Git Repository url, Image configuration, Environment Variables | |
Then user will see the Name, Git repository url, Image configuration, Environment Variables |
Btw. Isn't it easier later to implement this when you check things seperate?
Then user will see the Git Repository url, Image configuration, Environment Variables | |
Then user will see the "Name" field | |
And user will see the "Git repo URL" field | |
And user will see the "Images" section | |
And user will see the "Environment Variables" section |
This is really just a question as I don't implemented these page objects and actions later.
When user clicks on Show advanced options | ||
Then user will see the Triggers, Build Secret, Run Policy, Post-Commit Hooks |
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.
The user needs multiple clicks because that are multiple advanced options similar to the add page.
Maybe like this: ... Or you create multiple tests for each case?
When user clicks on Show advanced options | |
Then user will see the Triggers, Build Secret, Run Policy, Post-Commit Hooks | |
When user clicks on Advanced option "Triggers" | |
And user clicks on Advanced option "Secrets" | |
And user clicks on Advanced option "Run Policy" | |
And user clicks on Advanced option "Hooks" | |
Then user will see section "Triggers" | |
And user will see section "Build Secret" | |
And user will see section "Run Policy" | |
And user will see section "Hooks" |
Scenario: Edit Advanced git options of buildconfig which uses strategy Docker and Git as source: EBC-01-TC05 | ||
# user can use buildconfig-with-strategy-docker-source-git.yaml from testData/yamls/BuildConfig | ||
Given user has applied the yaml "buildconfig-with-strategy-docker-source-git.yaml" | ||
And user is at Edit Build Config page |
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.
And user is at Edit Build Config page | |
And user is at Edit Build Config page of deployment "flask-app-12" |
# user can use buildconfig-with-strategy-docker-source-dockerfile.yaml from testData/yamls/BuildConfig | ||
Given user has applied the yaml "buildconfig-with-strategy-docker-source-dockerfile.yaml" | ||
When user clicks on action menu of build config | ||
And user selects the option Edit BuildConfig |
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.
Above you used an sentence which brings you directly to this page. You should/could use it here as well or?
# user can use buildconfig-with-strategy-docker-source-dockerfile.yaml from testData/yamls/BuildConfig | |
Given user has applied the yaml "buildconfig-with-strategy-docker-source-dockerfile.yaml" | |
When user clicks on action menu of build config | |
And user selects the option Edit BuildConfig | |
# user can use buildconfig-with-strategy-docker-source-dockerfile.yaml from testData/yamls/BuildConfig | |
Given user has applied the yaml "buildconfig-with-strategy-docker-source-dockerfile.yaml" | |
And user is at Edit Build Config page of deployment "flask-app-12" |
And user goes to Environment tab | ||
Then user will see Name as "<name>" and and Value as "<value>" |
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.
There is no environment tab.
And user goes to Environment tab | |
Then user will see Name as "<name>" and and Value as "<value>" | |
Then user will see Name as "<name>" and and Value as "<value>" in Environment Variables |
creationTimestamp: '2021-05-04T07:39:42Z' | ||
generation: 2 |
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.
Drop this lines, they will be generated by kubernetes
creationTimestamp: '2021-05-04T07:39:42Z' | |
generation: 2 |
resourceVersion: '1303043788' | ||
selfLink: /apis/build.openshift.io/v1/namespaces/aut-form-edit-build-config/buildconfigs/flask-app-12 | ||
uid: e3927409-acab-11eb-8ed8-42010a8e0002 |
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.
Drop this lines, they will be generated by kubernetes
resourceVersion: '1303043788' | |
selfLink: /apis/build.openshift.io/v1/namespaces/aut-form-edit-build-config/buildconfigs/flask-app-12 | |
uid: e3927409-acab-11eb-8ed8-42010a8e0002 |
uid: cd73cce1-75b4-484e-9b35-f6c9dc3ed8b6 | ||
creationTimestamp: '2021-05-04T07:45:14Z' | ||
generation: 2 |
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.
Drop this lines, they will be generated by kubernetes
uid: cd73cce1-75b4-484e-9b35-f6c9dc3ed8b6 | |
creationTimestamp: '2021-05-04T07:45:14Z' | |
generation: 2 |
openshift.io/build-config.name: fruits-app-1 | ||
openshift.io/build.number: '1' | ||
openshift.io/build.pod-name: fruits-app-1-1-build | ||
resourceVersion: '338752' |
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.
Drop this lines, they will be generated by kubernetes
resourceVersion: '338752' |
- apiVersion: build.openshift.io/v1 | ||
kind: BuildConfig | ||
name: fruits-app-1 | ||
uid: 44291715-6933-4fac-82f1-481ea0fe7f29 |
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.
Drop this lines, they will be generated by kubernetes
uid: 44291715-6933-4fac-82f1-481ea0fe7f29 |
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.
When I tried YAML on cluster it threw an error saying this uid is reuired so I've not removed this one
a5c38ba
to
8580cf1
Compare
Thanks for applying my recommended changes and checking the yaml files. Restore the lgtm from @gajanan-more /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gajanan-more, jerolimov, sanketpathak The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@jerolimov: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
Epic: https://issues.redhat.com/browse/ODC-5008
Story: https://issues.redhat.com/browse/ODC-5968
Acceptance criteria:
Checks required for approving Epic gherkin scripts PR:
yarn run gherkin-lint
on frontend folder [Skip epic number tags related linter issues]