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

test modified at timestamps #107

Open
wants to merge 1 commit into
base: alexeagle-patch-2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions examples/debian_snapshot/test_linux_amd64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,22 @@ commandTests:
- perl/now 5\.32\.1-4\+deb11u3 amd64 \[installed,local\]
- tzdata/now 2024a-0\+deb11u1 all \[installed,local\]
- nvidia-kernel-common/now 20151021\+13 amd64 \[installed,local\]
- name: "stat dpkg status"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please cp examples/debian_snapshot/test_linux* e2e/smoke/ so the e2e tests are in-sync with debian_snapshot. Thanks!

command: "stat"
args: [ "-c", "%Y", "/var/lib/dpkg/status" ]
expectedOutput: ["1672560000"]
- name: "whoami"
command: "whoami"
expectedOutput: [r00t]
- name: "naive ca-certs check"
command: "head"
args: ["-1", "/etc/ssl/certs/ca-certificates.crt"]
expectedOutput: [-----BEGIN CERTIFICATE-----]

fileExistenceTests:
- name: 'dpkg status exists'
path: '/var/lib/dpkg/status'
shouldExist: true
permissions: '-rw-r--r--'
uid: 0
gid: 0
12 changes: 12 additions & 0 deletions examples/debian_snapshot/test_linux_arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,22 @@ commandTests:
- perl/now 5\.32\.1-4\+deb11u3 arm64 \[installed,local\]
- tzdata/now 2024a-0\+deb11u1 all \[installed,local\]
- nvidia-kernel-common/now 20151021\+13 arm64 \[installed,local\]
- name: "stat dpkg status"
command: "stat"
args: [ "-c", "%Y", "/var/lib/dpkg/status" ]
expectedOutput: [ "1672560000" ]
- name: "whoami"
command: "whoami"
expectedOutput: [r00t]
- name: "naive ca-certs check"
command: "head"
args: ["-1", "/etc/ssl/certs/ca-certificates.crt"]
expectedOutput: [-----BEGIN CERTIFICATE-----]

fileExistenceTests:
- name: 'dpkg status exists'
path: '/var/lib/dpkg/status'
shouldExist: true
permissions: '-rw-r--r--'
uid: 0
gid: 0
12 changes: 12 additions & 0 deletions examples/ubuntu_snapshot/test_linux_amd64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ commandTests:
- ncurses-base/now 6\.4\+20240113\-1ubuntu1 all \[installed,local\]
- perl/now 5\.38\.2\-3 amd64 \[installed,local\]
- tzdata/now 2024a\-1ubuntu1 all \[installed,local\]
- name: "stat dpkg status"
command: "stat"
args: [ "-c", "%Y", "/var/lib/dpkg/status" ]
expectedOutput: [ "1672560000" ]
- name: "whoami"
command: "whoami"
expectedOutput: [r00t]

fileExistenceTests:
- name: 'dpkg status exists'
path: '/var/lib/dpkg/status'
shouldExist: true
permissions: '-rw-r--r--'
uid: 0
gid: 0
19 changes: 19 additions & 0 deletions examples/ubuntu_snapshot/test_linux_arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,25 @@ commandTests:
- ncurses-base/now 6\.4\+20240113\-1ubuntu1 all \[installed,local\]
- perl/now 5\.38\.2\-3 arm64 \[installed,local\]
- tzdata/now 2024a\-1ubuntu1 all \[installed,local\]
- name: "stat dpkg status"
command: "stat"
args: [ "-c", "%Y", "/var/lib/dpkg/status" ]
expectedOutput: [ "1672560000" ]
- name: "whoami"
command: "whoami"
expectedOutput: [r00t]

fileExistenceTests:
- name: 'dpkg status exists'
path: '/var/lib/dpkg/status'
shouldExist: true
permissions: '-rw-r--r--'
uid: 0
gid: 0
fileExistenceTests:
- name: 'dpkg status exists'
path: '/var/lib/dpkg/status'
shouldExist: true
permissions: '-rw-r--r--'
uid: 0
gid: 0