Skip to content

Commit

Permalink
Run SSA resource manager tests in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Sep 14, 2021
1 parent 69052e2 commit c5b3161
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
uses: fluxcd/pkg/actions/kubectl@main
with:
version: 1.21.2
- name: Run tests
- name: Run internal tests
run: make test-internal
- name: Run controller tests
run: make test
- name: Check if working tree is dirty
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ spec:
type: object
type: array
inventory:
description: The last successfully applied revision metadata.
description: Inventory contains the list of Kubernetes resource object references that have been successfully applied.
properties:
entries:
description: Entries of Kubernetes resource object references.
Expand Down
2 changes: 1 addition & 1 deletion docs/api/kustomize.md
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ ResourceInventory
</td>
<td>
<em>(Optional)</em>
<p>The last successfully applied revision metadata.</p>
<p>Inventory contains the list of Kubernetes resource object references that have been successfully applied.</p>
</td>
</tr>
</tbody>
Expand Down
17 changes: 17 additions & 0 deletions internal/ssa/main_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright 2021 Stefan Prodan
Copyright 2021 The Flux authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package ssa

import (
Expand Down
17 changes: 17 additions & 0 deletions internal/ssa/manager_apply_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright 2021 Stefan Prodan
Copyright 2021 The Flux authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package ssa

import (
Expand Down
17 changes: 17 additions & 0 deletions internal/ssa/manager_delete_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright 2021 Stefan Prodan
Copyright 2021 The Flux authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package ssa

import (
Expand Down
17 changes: 17 additions & 0 deletions internal/ssa/manager_diff_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright 2021 Stefan Prodan
Copyright 2021 The Flux authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package ssa

import (
Expand Down

0 comments on commit c5b3161

Please sign in to comment.