# Test_Apt_Update_Manager

Provides unit tests and examples for the Apt_Update_Manager lens.

Summary

Test_Apt_Update_Manager | Provides unit tests and examples for the Apt_Update_Manager lens.
Augeas Variables |
meta_release |
Augeas Tests |
Apt_Update_Manager.lns |
Augeas Variables |
release_upgrades |
Augeas Tests |
Apt_Update_Manager.lns |

### Augeas Variables

### meta_release

> let meta_release = "# default location for the meta-release file [METARELEASE] URI = http://changelogs.ubuntu.com/meta-release URI_LTS = http://changelogs.ubuntu.com/meta-release-lts URI_UNSTABLE_POSTFIX = -development URI_PROPOSED_POSTFIX = -proposed "

### Augeas Tests

### Apt_Update_Manager.lns

> test Apt_Update_Manager.lns get meta_release = { "#comment" = "default location for the meta-release file" } { } { "METARELEASE" { "URI" = "http://changelogs.ubuntu.com/meta-release" } { "URI_LTS" = "http://changelogs.ubuntu.com/meta-release-lts" } { "URI_UNSTABLE_POSTFIX" = "-development" } { "URI_PROPOSED_POSTFIX" = "-proposed" } }

### Augeas Variables

### release_upgrades

> let release_upgrades = "# Default behavior for the release upgrader. [DEFAULT] Prompt=lts "

### Augeas Tests

### Apt_Update_Manager.lns

> test Apt_Update_Manager.lns get release_upgrades = { "#comment" = "Default behavior for the release upgrader." } { } { "DEFAULT" { "Prompt" = "lts" } }

Parses files in /etc/update-manager

> let meta_release = "# default location for the meta-release file [METARELEASE] URI = http://changelogs.ubuntu.com/meta-release URI_LTS = http://changelogs.ubuntu.com/meta-release-lts URI_UNSTABLE_POSTFIX = -development URI_PROPOSED_POSTFIX = -proposed "

> test Apt_Update_Manager.lns get meta_release = { "#comment" = "default location for the meta-release file" } { } { "METARELEASE" { "URI" = "http://changelogs.ubuntu.com/meta-release" } { "URI_LTS" = "http://changelogs.ubuntu.com/meta-release-lts" } { "URI_UNSTABLE_POSTFIX" = "-development" } { "URI_PROPOSED_POSTFIX" = "-proposed" } }

> let release_upgrades = "# Default behavior for the release upgrader. [DEFAULT] Prompt=lts "

Close