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

Cypress gwa cli #912

Merged
merged 86 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
30bc4da
upd controllers
ikethecoder Jul 3, 2023
af0e5c5
add openid as api auth
ikethecoder Jul 3, 2023
add25e2
add namespace creation
ikethecoder Jul 4, 2023
4ffeca3
fix build error
ikethecoder Jul 4, 2023
7be103d
fix required field for create namespace
ikethecoder Jul 4, 2023
ff83bb7
upd roles for tsoa user
ikethecoder Jul 4, 2023
ce74539
filter out inactive environments from drop down (#825)
Elson9 Jul 5, 2023
93bce6a
Fix BCDC Datasets out of sync (#837)
ikethecoder Jul 5, 2023
32dbad6
Merge branch 'dev' into feature/gwa-cli-v2
ikethecoder Jul 6, 2023
4742827
add description to namespace
ikethecoder Jul 7, 2023
34cab4a
use name for namespace
ikethecoder Jul 7, 2023
9de26a8
gwa-cli for namespace, login and config
nirajCITZ Jul 17, 2023
4a4eac5
upg http-proxy
ikethecoder Jul 17, 2023
b54d82a
move around proxy
ikethecoder Jul 17, 2023
e804de9
Update oauth2-proxy config
nirajCITZ Jul 18, 2023
347b0a3
Merge remote-tracking branch 'api-services-portal/feature/gwa-cli-v2'…
nirajCITZ Jul 18, 2023
03d7027
use displayName for namespace
ikethecoder Jul 19, 2023
569fb1a
have create namespace using application json
ikethecoder Jul 20, 2023
b7754d9
change from lodash to just-kebab-case for shared idp client id
ikethecoder Jul 21, 2023
afc5c12
change from lodash to just-kebab-case for shared idp client id
ikethecoder Jul 21, 2023
33bcfcf
service account failing with cannot read properties of null
ikethecoder Jul 25, 2023
dbafb35
order the namespaces in the api
ikethecoder Jul 25, 2023
586f1e1
upd feed worker put bubble up child results
ikethecoder Jul 25, 2023
8797891
upd feed worker put bubble up child results
ikethecoder Jul 25, 2023
f4fc4d4
Added scenarios for GWA-CLI and update existing scenarios as per new …
nirajCITZ Jul 25, 2023
55ab761
make issuer env details optional
ikethecoder Jul 26, 2023
f2b94c7
make issuer env details optional
ikethecoder Jul 26, 2023
805b881
upd the batch default array
ikethecoder Jul 26, 2023
2610fa8
upds for handling delete namespace
ikethecoder Jul 26, 2023
df24602
upd delete ns for issuers
ikethecoder Jul 26, 2023
aad41dd
chg delete ns put back gw deletion
ikethecoder Jul 26, 2023
1f2cb9f
Updated/added scenarios for GWA command and as per new namespace crea…
nirajCITZ Aug 2, 2023
184f49b
Merge remote-tracking branch 'api-services-portal/feature/gwa-cli-v2'…
nirajCITZ Aug 2, 2023
dbd65fa
Updated Cypress Tests as per GWA CLI and new namespace creation logic
nirajCITZ Aug 14, 2023
c5c8bc4
Added workflow to install binary file
nirajCITZ Aug 14, 2023
36af564
Update step in the workflow file
nirajCITZ Aug 14, 2023
7a3ed79
update steps in the workflow
nirajCITZ Aug 14, 2023
b6fb48d
Update steps to Build Executable Binary
nirajCITZ Aug 15, 2023
e266f95
Update in the workflow file
nirajCITZ Aug 15, 2023
c60719c
Update step of Checkout souce-repo in the workflow file
nirajCITZ Aug 15, 2023
0345101
Update step in the workflow file
nirajCITZ Aug 15, 2023
016c746
Update step to install go in the workflow file
nirajCITZ Aug 15, 2023
25f346f
Code cleanup, update test name, added test for keycloak role and inva…
nirajCITZ Aug 16, 2023
6c78fa0
Added scenarios for gwa generate config and update github action to b…
nirajCITZ Aug 21, 2023
c74e640
Update the workflow file to build gwa binary
nirajCITZ Aug 21, 2023
fd298bc
Add cypress as branch regex to trigger the execution on the feature b…
nirajCITZ Aug 21, 2023
e34da3f
update branch for GWA API step
nirajCITZ Aug 21, 2023
331f462
Update steps in the workflow to build and install gwa cli
nirajCITZ Aug 21, 2023
ac14ec6
Corrected steps for access permission
nirajCITZ Aug 22, 2023
6547e3a
Add GWA help step in workflow and update api.json test file
nirajCITZ Aug 23, 2023
adcabd7
Check for gwa command through cypress
nirajCITZ Aug 23, 2023
de6e674
Update workflow and e2e dockerfile
nirajCITZ Aug 23, 2023
d10aa97
Update workflow file
nirajCITZ Aug 23, 2023
affa2bc
Modified step to build go binary file
nirajCITZ Aug 24, 2023
1a08616
Corrected error in the workflow file
nirajCITZ Aug 24, 2023
587ebca
Updated step to build go binary file
nirajCITZ Aug 24, 2023
ff2e3a0
Update step to build go binary
nirajCITZ Aug 24, 2023
9b3f8d0
Commented the GWA help step
nirajCITZ Aug 24, 2023
4c413d8
Commented step to set up just and create issue in github
nirajCITZ Aug 24, 2023
0a540dc
update command to build go binary file in the workflow file
nirajCITZ Aug 24, 2023
4e63f46
Update steps to download and build go
nirajCITZ Aug 24, 2023
6634f6d
Added go tidy command
nirajCITZ Aug 24, 2023
61baf2f
Updated the build file in the workflow file
nirajCITZ Aug 24, 2023
d4a5813
Downgrade go to 1.16
nirajCITZ Aug 24, 2023
eb322d2
Update action go setup
nirajCITZ Aug 24, 2023
ca62aa4
Updated Github action workflow to install GWA CLI executable binary a…
nirajCITZ Aug 30, 2023
8a33311
Update the workflow file
nirajCITZ Aug 30, 2023
835d221
Update in the workflow step and removed unused code
nirajCITZ Aug 30, 2023
ba9743b
Uncomment test in cypress config file
nirajCITZ Aug 31, 2023
352919f
Change assertion type from equals to contains
nirajCITZ Aug 31, 2023
edd16d3
Increased time out in cy exec command
nirajCITZ Sep 1, 2023
f0e78c2
Remove wait statement inside cy exec command
nirajCITZ Sep 1, 2023
0a5c95b
Re order the spec files for execution in CI/CD
nirajCITZ Sep 4, 2023
ae9be16
Update Test scenarios/specs order and added test for zenhub#887
nirajCITZ Sep 5, 2023
831f1ce
Update steps for API Key request access and gwa generate confin
nirajCITZ Sep 6, 2023
5351982
Merge branch 'dev' into cypress-gwa-cli
ikethecoder Sep 7, 2023
22b471f
update workflow file to check cypress test on remote VM
nirajCITZ Sep 8, 2023
5964e87
1)Added scenarios to verify invalid namespace name
nirajCITZ Sep 13, 2023
7c95abf
Update API directory test data in the file
nirajCITZ Sep 15, 2023
c264a58
Remove commented code and debugger statements
nirajCITZ Sep 15, 2023
88190ba
remove branch name
nirajCITZ Sep 15, 2023
f0e0b5b
Added step to set GWA_VERSION variable in env file in github workflow
nirajCITZ Sep 15, 2023
8825c24
Update workflow file to download build from release
nirajCITZ Sep 17, 2023
80a9d11
Update workflow file to download binary from release page and update …
nirajCITZ Sep 18, 2023
6f8678f
Corrected the else if statement in workflow file
nirajCITZ Sep 18, 2023
0f76693
Merge remote-tracking branch 'api-services-portal/dev' into cypress-g…
nirajCITZ Sep 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 21 additions & 25 deletions .github/workflows/aps-cypress-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,32 @@ jobs:

- name: Checkout Portal
uses: actions/checkout@v2

- name: Checkout Source Repository
run: |
git clone https://github.com/bcgov/gwa-cli.git
cd gwa-cli

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.20.x'

- name: create .env file
- name: Determine Download file name
id: set_variable
run: |
cd gwa-cli
echo "GWA_API_HOST=api-services-portal-feature-gwa-cli-v2.apps.silver.devops.gov.bc.ca" >> .env
echo "GWA_CLIENT_ID=gwa-cli" >> .env

- name: Debug
run: echo ${{ github.workspace }}
echo ${{ runner.arch }}
if [ "${{ runner.arch }}" == "X64" ]; then
echo "::set-output name=my_variable::gwa_Linux_x86_64.tgz"
elif [ "${{ runner.arch }}" == "ARM64" ]; then
echo "::set-output name=my_variable::gwa_Linux_arm64.tgz"
else
echo "unsupported architecture"
fi

- name: Download Binar
uses: robinraju/release-downloader@v1.8
with:
repository: "bcgov/gwa-cli"
latest: true
fileName: ${{ steps.set_variable.outputs.my_variable }}
out-file-path: "${{ github.workspace }}/e2e"

- name: Build
- name: Unzip file
run: |
cd gwa-cli
go clean
go build -o ${{ github.workspace }}/e2e/gwa

- uses: actions/upload-artifact@v2
with:
name: binary-artifact
path: ${{ github.workspace }}/e2e
cd ${{ github.workspace }}/e2e
tar xvzf ${{ steps.set_variable.outputs.my_variable }}

- name: Build Docker Images
run: |
Expand Down
1 change: 1 addition & 0 deletions e2e/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ COPY cypress.config.ts /e2e
COPY tsconfig.json /e2e
COPY package.json /e2e
COPY package-lock.json /e2e
COPY *.yml /e2e
COPY entrypoint.sh /tmp
COPY gwa /usr/local/bin
ADD cypress /e2e/cypress
Expand Down
Loading