Skip to content

Commit

Permalink
fixed int tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Przybyl committed Oct 8, 2024
1 parent 99b93f7 commit b15e06e
Show file tree
Hide file tree
Showing 44 changed files with 181 additions and 536 deletions.
8 changes: 5 additions & 3 deletions pkg/test/filter_file_test.go → pkg/filter_file_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package test
//go:build int_test

package pkg_test

import (
"github.com/wttech/aemc/pkg/common/tplx"
Expand All @@ -22,15 +24,15 @@ func testFilterFile(t *testing.T, filterFile string, expectedFile string, data m
}

func TestFilterRoots(t *testing.T) {
testFilterFile(t, "vault/META-INF/vault/filter.xml", "output/filter_roots.xml",
testFilterFile(t, "vault/META-INF/vault/filter.xml", "int_test_content/filter_roots.xml",
map[string]any{
"FilterRoots": []string{"/apps/my_site", "/content/my_site"},
},
)
}

func TestExcludePatterns(t *testing.T) {
testFilterFile(t, "vault/META-INF/vault/filter.xml", "output/exclude_patterns.xml",
testFilterFile(t, "vault/META-INF/vault/filter.xml", "int_test_content/exclude_patterns.xml",
map[string]any{
"FilterRoots": []string{"/apps/my_site", "/content/my_site"},
"ExcludePatterns": []string{"/apps/my_site/cq:dialog(/.*)?", "/apps/my_site/rep:policy(/.*)?"},
Expand Down
4 changes: 3 additions & 1 deletion pkg/test/filter_root_test.go → pkg/filter_root_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package test
//go:build int_test

package pkg_test

import (
"github.com/wttech/aemc/pkg"
Expand Down
2 changes: 2 additions & 0 deletions pkg/instance_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build int_test

package pkg_test

import (
Expand Down
File renamed without changes.
File renamed without changes.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b15e06e

Please sign in to comment.