Skip to content

Commit

Permalink
undo test
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-hpe committed Jan 3, 2024
1 parent 4d21554 commit 286e0a7
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 41 deletions.
7 changes: 3 additions & 4 deletions .github/parse_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

def main(args):
n = len(args)
print(args)
if n != 2:
print("Pass the log directory")
return 1
Expand All @@ -21,9 +20,9 @@ def main(args):
pass_count = file_content.count('PASS:')
fail_count = file_content.count('FAIL:')
print(
f"\nTestcases Ran: {test_count}\n"
f"Testcases Passed: {pass_count}\n"
f"Testcases Failed: {fail_count}\n")
f"\nTestcases Ran: {test_count}; "
f"Testcases Passed: {pass_count}; "
f"Testcases Failed: {fail_count}; ")
return 0

if __name__ == "__main__":
Expand Down
74 changes: 37 additions & 37 deletions .github/workflows/cicd-dev-acc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,50 @@ jobs:
test_description: Check for valid terraform provider
secrets: inherit

# test-datasouces:
# needs:
# - test-provider
# if: "${{ needs.test-provider.result == 'success' }}"
# uses: ./.github/workflows/reusable-dev-acc.yml
# with:
# test_case: TestAccDataSource
# test_description: All data source test
# secrets: inherit
test-datasouces:
needs:
- test-provider
if: "always() && ${{ needs.test-provider.result == 'success' }}"
uses: ./.github/workflows/reusable-dev-acc.yml
with:
test_case: TestAccDataSource
test_description: All data source test
secrets: inherit

# test-vmaas-instance:
# uses: ./.github/workflows/reusable-dev-acc.yml
# needs:
# - test-datasouces
# if: "${{ needs.test-provider.result == 'success' }}"
# with:
# test_case: TestVmaasInstance TestAccResourceInstance
# test_description: Instance test
# secrets: inherit
test-vmaas-instance:
uses: ./.github/workflows/reusable-dev-acc.yml
needs:
- test-datasouces
if: "always() && ${{ needs.test-provider.result == 'success' }}"
with:
test_case: TestVmaasInstance TestAccResourceInstance
test_description: Instance test
secrets: inherit

# test-vmaas-lb:
# uses: ./.github/workflows/reusable-dev-acc.yml
# needs:
# - test-vmaas-instance
# if: "${{ needs.test-provider.result == 'success' }}"
# with:
# test_case: TestVmaasLB TestAccResourceLB TestVmaasLoadBalancerPlan TestAccResourceLoadBalancerCreate
# test_description: Loadbalancer test
# secrets: inherit
test-vmaas-lb:
uses: ./.github/workflows/reusable-dev-acc.yml
needs:
- test-vmaas-instance
if: "always() && ${{ needs.test-provider.result == 'success' }}"
with:
test_case: TestVmaasLB TestAccResourceLB TestVmaasLoadBalancerPlan TestAccResourceLoadBalancerCreate
test_description: Loadbalancer test
secrets: inherit

# test-vmaas-network:
# uses: ./.github/workflows/reusable-dev-acc.yml
# needs:
# - test-vmaas-lb
# if: "${{ needs.test-provider.result == 'success' }}"
# with:
# test_case: TestVmaasNetworkPlan TestAccResourceNetworkCreate TestAccResourceRouter TestVmaasRouter TestAccResourceTier TestVmaasRouteBGPNeighborPlan
# test_description: Network test
# secrets: inherit
test-vmaas-network:
uses: ./.github/workflows/reusable-dev-acc.yml
needs:
- test-vmaas-lb
if: "always() && ${{ needs.test-provider.result == 'success' }}"
with:
test_case: TestVmaasNetworkPlan TestAccResourceNetworkCreate TestAccResourceRouter TestVmaasRouter TestAccResourceTier TestVmaasRouteBGPNeighborPlan
test_description: Network test
secrets: inherit

process-logs:
runs-on: ubuntu-20.04
needs:
- test-provider
- test-vmaas-network
if: "always()"
steps:
- name: Checkout workspace
Expand Down

0 comments on commit 286e0a7

Please sign in to comment.