Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36076

Write acceptance tests for external workspace manager

    • [GSoC] Sprint 2

      Write Acceptance Test Harness for the External Workspace Manager plugin.

      1. Test the Jenkins global config sections, External Workspace Definitions and External Workspace Templates. - e.g. fill in the text boxes, save, and verify if the information was saved correctly
      2. Test the Node configuration, External Workspace property - select the checkbox and fill in the text boxes, after saving, the information should be persisted
      3. Set-up a minimal config, with one node instance and create a basic pipeline job that runs the exwsAllocate and exws steps. Verify the console output for the logged messages. Verify if the External Workspaces run action outputs the appropriate information, e.g. selected disk pool, selected disk, complete path on disk.
      4. Set-up a bit more complex environment, with two node instances. Maybe if I'll point the localRootPath parameter to the same path on both of the nodes, I may be able to test a bit more complex scenario, in which I will build the project on one node, and test the project on a different node.

          [JENKINS-36076] Write acceptance tests for external workspace manager

          Oleg Nenashev added a comment -

          Action Item: alexsomai to write a list of tests to be implemented

          Oleg Nenashev added a comment - Action Item: alexsomai to write a list of tests to be implemented

          I've written some basic test scenarios that I could think of. They are mainly UI based.

          It may be a bit more difficult to test some real-world case scenarios, because the plugin needs a basic set-up, with multiple nodes and mounting points to disks. Unless I don't have a pre-made environment set-up with docker, I don't think I can write more complex test cases.

          Alexandru Somai added a comment - I've written some basic test scenarios that I could think of. They are mainly UI based. It may be a bit more difficult to test some real-world case scenarios, because the plugin needs a basic set-up, with multiple nodes and mounting points to disks. Unless I don't have a pre-made environment set-up with docker, I don't think I can write more complex test cases.

          Alexandru Somai added a comment - https://github.com/jenkinsci/acceptance-test-harness/pull/172

          Code changed in jenkins
          User: Alexandru Somai
          Path:
          src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalGlobalConfig.java
          src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalNodeConfig.java
          src/test/java/plugins/ExternalWorkspaceManagerPluginTest.java
          http://jenkins-ci.org/commit/acceptance-test-harness/40202cd6abc7f8f3675770382a151f1fbfe84da9
          Log:
          JENKINS-36076 Write basic acceptance test for External Workspace Manager Plugin

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alexandru Somai Path: src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalGlobalConfig.java src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalNodeConfig.java src/test/java/plugins/ExternalWorkspaceManagerPluginTest.java http://jenkins-ci.org/commit/acceptance-test-harness/40202cd6abc7f8f3675770382a151f1fbfe84da9 Log: JENKINS-36076 Write basic acceptance test for External Workspace Manager Plugin

          Code changed in jenkins
          User: Alexandru Somai
          Path:
          src/test/java/plugins/ExternalWorkspaceManagerPluginTest.java
          http://jenkins-ci.org/commit/acceptance-test-harness/ad1bdc51f8982f412c90f973a2a5022de1b2c7c6
          Log:
          JENKINS-36076 Add test case when sharing workspace between two jobs on different nodes

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alexandru Somai Path: src/test/java/plugins/ExternalWorkspaceManagerPluginTest.java http://jenkins-ci.org/commit/acceptance-test-harness/ad1bdc51f8982f412c90f973a2a5022de1b2c7c6 Log: JENKINS-36076 Add test case when sharing workspace between two jobs on different nodes

          Code changed in jenkins
          User: Alexandru Somai
          Path:
          src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalGlobalConfig.java
          src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalNodeConfig.java
          src/test/java/plugins/ExternalWorkspaceManagerPluginTest.java
          http://jenkins-ci.org/commit/acceptance-test-harness/081a0460dacc111932c3c8bee31a88691297c549
          Log:
          JENKINS-36076 Test integration with ws-cleanup plugin

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alexandru Somai Path: src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalGlobalConfig.java src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalNodeConfig.java src/test/java/plugins/ExternalWorkspaceManagerPluginTest.java http://jenkins-ci.org/commit/acceptance-test-harness/081a0460dacc111932c3c8bee31a88691297c549 Log: JENKINS-36076 Test integration with ws-cleanup plugin

          Code changed in jenkins
          User: Alexandru Somai
          Path:
          src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalGlobalConfig.java
          src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalNodeConfig.java
          src/test/java/plugins/ExternalWorkspaceManagerPluginTest.java
          http://jenkins-ci.org/commit/acceptance-test-harness/90f67951c331e6ee0cdfea675d34eaec5dccfc00
          Log:
          JENKINS-36076 Update tests with latest plugin changes

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alexandru Somai Path: src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalGlobalConfig.java src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalNodeConfig.java src/test/java/plugins/ExternalWorkspaceManagerPluginTest.java http://jenkins-ci.org/commit/acceptance-test-harness/90f67951c331e6ee0cdfea675d34eaec5dccfc00 Log: JENKINS-36076 Update tests with latest plugin changes

          Code changed in jenkins
          User: Alexandru Somai
          Path:
          src/test/java/plugins/ExternalWorkspaceManagerPluginTest.java
          http://jenkins-ci.org/commit/acceptance-test-harness/6d016012895d8ded05c8021707a18beaba96d952
          Log:
          JENKINS-36076 Update when running mvn command

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alexandru Somai Path: src/test/java/plugins/ExternalWorkspaceManagerPluginTest.java http://jenkins-ci.org/commit/acceptance-test-harness/6d016012895d8ded05c8021707a18beaba96d952 Log: JENKINS-36076 Update when running mvn command

          Code changed in jenkins
          User: Alexandru Somai
          Path:
          src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalGlobalConfig.java
          src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalNodeConfig.java
          http://jenkins-ci.org/commit/acceptance-test-harness/78338ed0a5c07ca9728879b1f6cb4264e49cb8bd
          Log:
          JENKINS-36076 Require the exact type of PageObject in PageArea

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alexandru Somai Path: src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalGlobalConfig.java src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalNodeConfig.java http://jenkins-ci.org/commit/acceptance-test-harness/78338ed0a5c07ca9728879b1f6cb4264e49cb8bd Log: JENKINS-36076 Require the exact type of PageObject in PageArea

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalGlobalConfig.java
          src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalNodeConfig.java
          src/test/java/plugins/ExternalWorkspaceManagerPluginTest.java
          http://jenkins-ci.org/commit/acceptance-test-harness/df009fc978eeb2894f02e7d3a5e1b720d2292226
          Log:
          Merge pull request #172 from alexsomai/ewm-acceptance-tests

          JENKINS-36076 Acceptance tests for External Workspace Manager Plugin

          Compare: https://github.com/jenkinsci/acceptance-test-harness/compare/07327699fbc4...df009fc978ee

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalGlobalConfig.java src/main/java/org/jenkinsci/test/acceptance/plugins/external_workspace_manager/ExternalNodeConfig.java src/test/java/plugins/ExternalWorkspaceManagerPluginTest.java http://jenkins-ci.org/commit/acceptance-test-harness/df009fc978eeb2894f02e7d3a5e1b720d2292226 Log: Merge pull request #172 from alexsomai/ewm-acceptance-tests JENKINS-36076 Acceptance tests for External Workspace Manager Plugin Compare: https://github.com/jenkinsci/acceptance-test-harness/compare/07327699fbc4...df009fc978ee

            alexsomai Alexandru Somai
            alexsomai Alexandru Somai
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: