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

List GPG13 requirements #389

Merged
merged 4 commits into from
May 29, 2019
Merged

List GPG13 requirements #389

merged 4 commits into from
May 29, 2019

Conversation

albertomn86
Copy link
Contributor

Related issue
#388

The PR wazuh/wazuh#3348 needs to be merged before.

This PR adds the call for listing the GPG13 requirements:

# curl -u foo:bar -k -X GET "http://127.0.0.1:55000/rules/gpg13?pretty"

{
   "error": 0,
   "data": {
      "items": [
         "1.3",
         "10.1",
         "3.1",
         "3.2",
         "3.3",
         "3.5",
         "3.6",
         "3.7",
         "4.1",
         "4.10",
         "4.11",
         "4.12",
         "4.13",
         "4.14",
         "4.2",
         "4.3",
         "4.4",
         "4.6",
         "4.8",
         "7.1",
         "7.10",
         "7.13",
         "7.2",
         "7.5",
         "7.6",
         "7.8",
         "7.9",
         "71"
      ],
      "totalItems": 28
   }
}

@albertomn86 albertomn86 requested a review from crd1985 May 20, 2019 11:21
@davidjiglesias
Copy link
Member

davidjiglesias commented May 28, 2019

Updated and run mocha tests:

Rules
    GET/rules
      ✓ Request (277ms)
      ✓ Pagination (256ms)
      ✓ Retrieve all elements with limit=0 (257ms)
      ✓ Sort (263ms)
      ✓ Search (347ms)
      ✓ Filters: Invalid filter
      ✓ Filters: Invalid filter - Extra field
      ✓ Filters: status (263ms)
      ✓ Filters: group (285ms)
      ✓ Filters: level (1) (269ms)
      ✓ Filters: level (2) (362ms)
      ✓ Filters: path (264ms)
      ✓ Filters: file (264ms)
      ✓ Filters: pci (333ms)
      ✓ Filters: gdpr (259ms)
      ✓ Filters: gpg13 (253ms)
    GET/rules/groups
      ✓ Request (254ms)
      ✓ Pagination (255ms)
      ✓ Retrieve all elements with limit=0 (257ms)
      ✓ Sort (254ms)
      ✓ Search (256ms)
      ✓ Filters: Invalid filter
    GET/rules/pci
      ✓ Request (263ms)
      ✓ Pagination (257ms)
      ✓ Retrieve all elements with limit=0 (258ms)
      ✓ Sort (259ms)
      ✓ Search (258ms)
      ✓ Filters: Invalid filter
    GET/rules/gdpr
      ✓ Request (259ms)
      ✓ Pagination (258ms)
      ✓ Retrieve all elements with limit=0 (256ms)
      ✓ Sort (257ms)
      ✓ Search (256ms)
      ✓ Filters: Invalid filter
    GET/rules/gpg13
      ✓ Request (256ms)
      ✓ Pagination (273ms)
      ✓ Retrieve all elements with limit=0 (262ms)
      ✓ Sort (268ms)
      ✓ Search (284ms)
      ✓ Filters: Invalid filter
    GET/rules/files
      ✓ Request (204ms)
      ✓ Pagination (182ms)
      ✓ Retrieve all elements with limit=0 (174ms)
      ✓ Sort (190ms)
      ✓ Search (174ms)
      ✓ Filters: Invalid filter
      ✓ Filters: Invalid filter - Extra field
      ✓ Filters: status (166ms)
      ✓ Filters: download (174ms)
    GET/rules/:rule_id
      ✓ Request (276ms)
      ✓ Pagination (260ms)
      ✓ Retrieve all elements with limit=0 (255ms)
      ✓ Sort (280ms)
      ✓ Search (283ms)
      ✓ Filters: Invalid filter
      ✓ Params: Bad rule id
      ✓ Params: No rule (286ms)

57 passing (12s)

@davidjiglesias davidjiglesias self-assigned this May 28, 2019
@crd1985
Copy link
Contributor

crd1985 commented May 29, 2019

Pending wazuh/wazuh#3348 to merge

@crd1985 crd1985 merged commit 31c8dce into 3.10 May 29, 2019
@crd1985 crd1985 deleted the 388-add-gpg13 branch May 29, 2019 10:38
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.

3 participants